/* Disable image dragging & right-click save */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Reset and global font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* Base layout */
html,
body {
    background-color: #171616;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;

    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

main {
    flex: 1;
    width: 100%;
    padding: 50px 20px;
}

/* ===== HEADER SECTION ===== */
.contact-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #3B3CE3, #171616);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffcc00;
}

.contact-header p {
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.6;
}

/* ===== CONTACT CARDS ===== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.contact-card {
    background: #1f1f1f;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(59, 60, 227, 0.6);
}

.contact-card i {
    font-size: 2rem;
    color: #3B3CE3;
    margin-bottom: 12px;
}

.contact-card h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: #ffcc00;
}

.contact-card a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    margin-top: 5px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #3B3CE3;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: #1f1f1f;
    max-width: 800px;
    margin: 50px auto;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #ffcc00;
}

.form-group {
    margin-bottom: 18px;
    width: 100%;
}

.form-group input,
.form-group textarea {
    min-width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #3B3CE3;
    background: #171616;
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Send button */
.send-btn {
    width: 100%;
    padding: 15px 0;
    background: linear-gradient(135deg, #17bfff, #3a86ff);
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.send-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 60, 227, 0.6);
}

/* ===== POPUP OVERLAY ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.popup {
    background: #1e1e28;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: popupFade 0.3s ease-in-out;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lottie-box {
    width: 180px;
    height: 180px;
    margin-bottom: 0.5rem;
}

.popup h2 {
    font-size: 1.25rem;
    margin: 0;
    color: #fff;
}

.hidden {
    display: none !important;
}

/* Primary button inside popup */
.btn-primary {
    padding: 0.75rem 1.8rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(145deg, #17bfff, #3a86ff);
    color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(23, 191, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(23, 191, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 10px rgba(23, 191, 255, 0.3);
}

/* Popup animation */
@keyframes popupFade {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    main {
        padding: 30px 15px;
    }

    .contact-header h2 {
        font-size: 1.6rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .contact-form h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .send-btn {
        font-size: 0.95rem;
    }
}