:root {
    --dark: #1a3a3a;
    --teal: #3e8686;
    --accent: #00d4ff;
    --glass: rgba(255, 255, 255, 0.9);
}

.contact-modern-page {
    background: #f0f4f4;
    padding-bottom: 80px;
}

.contact-hero {
    position: relative;
    padding: 120px 20px 200px; /* Desktop ke liye perfect */
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Glassmorphism for the contact cards */
.contact-quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 60px;
    position: relative;
    z-index: 5;
}

.q-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 24px;
    color: var(--dark);
    transition: 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.q-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.q-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 15px;
}

.gradient-text {
    background: linear-gradient(to right, #00d4ff, #80eaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Form positioning */
.form-wrapper {
    max-width: 1000px;
    margin: -100px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ============================================ */
/* ✅ RESPONSIVE FIXES (SIRF MOBILE KE LIYE)     */
/* ============================================ */

@media (max-width: 768px) {
    /* 1. FIX: Mobile par background fixed kaam nahi karta, is liye override kiya */
    .contact-hero {
        background-attachment: scroll !important; 
        padding: 80px 15px 120px !important; /* Padding kam ki taake content upar aaye */
    }

    /* 2. FIX: Cards ko 1 column (ek ke neeche ek) kiya */
    .contact-quick-cards {
        grid-template-columns: 1fr; 
        gap: 15px;
        margin-top: 40px;
    }

    /* 3. Card ki padding kam ki taake screen par fit aaye */
    .q-card {
        padding: 25px;
    }

    /* 4. Form ko upar pull karne wala margin adjust kiya */
    .form-wrapper {
        margin-top: -60px;
        padding: 0 15px;
    }

    /* 5. Text sizes chote kiye */
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }

    /* 6. Background ke blobs chhupa diye taake screen na toote */
    .hero-bg-shapes {
        display: none; 
    }
}

/* Choti screens (jaise iPhone SE) ke liye extra tweaks */
@media (max-width: 480px) {
    .contact-hero {
        padding: 60px 10px 100px !important;
    }
    .hero-text h1 {
        font-size: 1.7rem;
    }
    .q-card {
        padding: 20px;
    }
}