/* ============================================
   OURDOUACADEMY — STYLES
============================================= */

:root {
    --color-bg:         #0a0a0f;
    --color-bg-alt:     #111118;
    --color-surface:    #1a1a24;
    --color-border:     #2a2a3a;
    --color-gold:       #d4a853;
    --color-gold-light: #e8c97a;
    --color-gold-dark:  #b08930;
    --color-amber:      #f0a030;
    --color-text:       #eee8dd;
    --color-text-muted: #8a8494;
    --color-text-dim:   #5a5464;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Outfit', sans-serif;
    --font-urdu:    'Noto Nastaliq Urdu', serif;
    --section-padding: clamp(80px, 12vh, 160px);
    --container-width: min(1200px, 90vw);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-weight: 300; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--color-gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-gold-light); }

/* CANVAS 3D */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* NAV */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(20px, 5vw, 60px); background: transparent; transition: background 0.4s ease, backdrop-filter 0.4s ease; }
#navbar.scrolled { background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-urdu { font-family: var(--font-urdu); font-size: 1.8rem; color: var(--color-gold); line-height: 1; }
.logo-text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: var(--color-text-muted); font-size: 0.9rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--color-text); }
.nav-cta { background: var(--color-gold) !important; color: var(--color-bg) !important; padding: 10px 24px; border-radius: 6px; font-weight: 600 !important; transition: transform 0.3s ease, box-shadow 0.3s ease !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3); color: var(--color-bg) !important; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--color-text); transition: transform 0.3s ease, opacity 0.3s ease; }

/* HERO */
#hero { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(20px, 8vw, 120px); }
.hero-content { max-width: 800px; }
.hero-tag { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-gold); margin-bottom: 24px; opacity: 0; transform: translateY(20px); }
.hero-title { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin-bottom: 32px; }
.hero-title .line { display: block; font-size: clamp(3.5rem, 8vw, 7rem); opacity: 0; transform: translateY(40px); }
.hero-title .accent { color: var(--color-gold); font-style: italic; }
.hero-title .urdu-text { font-family: var(--font-urdu); font-size: clamp(2.5rem, 6vw, 5rem); color: var(--color-gold-dark); opacity: 0.7; margin-top: 8px; }
.hero-subtitle { font-size: clamp(1rem, 1.8vw, 1.25rem); color: var(--color-text-muted); max-width: 550px; margin-bottom: 40px; opacity: 0; transform: translateY(20px); }
.hero-btn { display: inline-block; background: var(--color-gold); color: var(--color-bg); padding: 16px 40px; border-radius: 8px; font-weight: 600; font-size: 1rem; letter-spacing: 0.03em; transition: transform 0.3s ease, box-shadow 0.3s ease; opacity: 0; transform: translateY(20px); border: none; cursor: pointer; }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(212, 168, 83, 0.35); color: var(--color-bg); }
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; }
.scroll-indicator span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-text-dim); }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--color-gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* SECTIONS */
.section { position: relative; z-index: 1; padding: var(--section-padding) clamp(20px, 5vw, 60px); }
.section-dark { background: var(--color-bg-alt); }
.section-header { text-align: center; margin-bottom: clamp(50px, 8vh, 100px); }
.section-tag { display: inline-block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-gold); margin-bottom: 16px; padding: 6px 16px; border: 1px solid rgba(212, 168, 83, 0.3); border-radius: 20px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.2; }
.section-title em { color: var(--color-gold); font-style: italic; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; max-width: var(--container-width); margin: 0 auto; }
.feature-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 40px 30px; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; opacity: 0; transform: translateY(30px); }
.feature-card:hover { transform: translateY(-8px); border-color: var(--color-gold-dark); box-shadow: 0 20px 60px rgba(212, 168, 83, 0.1); }
.feature-icon { font-family: var(--font-urdu); font-size: 2.5rem; color: var(--color-gold); margin-bottom: 20px; line-height: 1.4; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.6; }

/* LEVELS */
.levels-timeline { max-width: 700px; margin: 0 auto; position: relative; padding-left: 60px; }
.levels-timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--color-gold), var(--color-gold-dark), transparent); }
.level-item { position: relative; margin-bottom: 50px; opacity: 0; transform: translateX(-20px); }
.level-badge { position: absolute; left: -60px; top: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--color-gold); color: var(--color-bg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; z-index: 2; box-shadow: 0 0 20px rgba(212, 168, 83, 0.4); }
.level-content h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.level-content p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 8px; }
.level-duration { font-size: 0.8rem; color: var(--color-gold); text-transform: uppercase; letter-spacing: 0.1em; }

/* AUDIENCE */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: var(--container-width); margin: 0 auto; }
.audience-card { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 36px 28px; text-decoration: none; color: var(--color-text); overflow: hidden; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; display: block; }
.audience-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.audience-urdu { font-family: var(--font-urdu); font-size: 2.5rem; line-height: 1.4; display: block; margin-bottom: 14px; opacity: 0.7; transition: opacity 0.4s ease, transform 0.4s ease; }
.audience-card:hover .audience-urdu { opacity: 1; transform: scale(1.05); }
.audience-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--color-text); }
.audience-card p { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.5; }

.audience-diaspora  { border-left: 3px solid #2e8b57; } .audience-diaspora  .audience-urdu { color: #2e8b57; } .audience-diaspora:hover  { border-color: #2e8b57; }
.audience-couples   { border-left: 3px solid #c47a8a; } .audience-couples   .audience-urdu { color: #c47a8a; } .audience-couples:hover   { border-color: #c47a8a; }
.audience-travelers { border-left: 3px solid #c4725a; } .audience-travelers .audience-urdu { color: #c4725a; } .audience-travelers:hover { border-color: #c4725a; }
.audience-muslims   { border-left: 3px solid #1a6b42; } .audience-muslims   .audience-urdu { color: #1a6b42; } .audience-muslims:hover   { border-color: #1a6b42; }
.audience-professionals { border-left: 3px solid #2a5a8c; } .audience-professionals .audience-urdu { color: #2a5a8c; } .audience-professionals:hover { border-color: #2a5a8c; }
.audience-students  { border-left: 3px solid #6a5aaa; } .audience-students  .audience-urdu { color: #6a5aaa; } .audience-students:hover  { border-color: #6a5aaa; }
.audience-media     { border-left: 3px solid #c44060; } .audience-media     .audience-urdu { color: #c44060; } .audience-media:hover     { border-color: #c44060; }
.audience-poetry    { border-left: 3px solid #d4a853; } .audience-poetry    .audience-urdu { color: #d4a853; } .audience-poetry:hover    { border-color: #d4a853; }

/* PRICING ONE-SHOT */
.pricing-single { max-width: 520px; margin: 0 auto; }
.pricing-card-main { background: var(--color-surface); border: 2px solid var(--color-gold); border-radius: 20px; padding: 48px 36px; text-align: center; position: relative; box-shadow: 0 0 60px rgba(212, 168, 83, 0.1); opacity: 0; transform: translateY(30px); }
.pricing-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--color-gold); color: var(--color-bg); padding: 5px 22px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.pricing-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--color-text); margin-top: 10px; margin-bottom: 12px; }
.pricing-desc { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.6; }
.pricing-amount { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: var(--color-gold); margin-bottom: 28px; }
.pricing-amount span { font-size: 1.1rem; font-weight: 300; color: var(--color-text-muted); }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 10px 0; color: var(--color-text-muted); font-size: 0.92rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-left: 26px; position: relative; }
.pricing-features li::before { content: '✦'; position: absolute; left: 0; color: var(--color-gold); font-size: 0.7rem; }
.pricing-btn { width: 100%; padding: 16px 0; background: var(--color-gold); color: var(--color-bg); border: none; font-family: var(--font-body); font-size: 1rem; font-weight: 700; border-radius: 10px; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pricing-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(212, 168, 83, 0.35); }

/* PUNJABI UPSELL */
.punjabi-teaser { max-width: 520px; margin: 0 auto; text-align: center; border: 1px solid rgba(212, 168, 83, 0.2); border-radius: 16px; padding: 36px; }
.punjabi-teaser h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; margin: 12px 0; }
.punjabi-teaser p { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.punjabi-teaser a { color: var(--color-gold); font-size: 0.95rem; font-weight: 600; border-bottom: 1px solid rgba(212, 168, 83, 0.4); padding-bottom: 2px; }
.punjabi-teaser a:hover { border-bottom-color: var(--color-gold); }

/* FOOTER */
#footer { position: relative; z-index: 1; background: var(--color-bg); border-top: 1px solid var(--color-border); padding: 60px clamp(20px, 5vw, 60px) 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: var(--container-width); margin: 0 auto 40px; }
.footer-brand .logo-urdu { font-size: 2.2rem; }
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-tagline { color: var(--color-text-dim); font-size: 0.9rem; margin-top: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-text-muted); margin-bottom: 8px; }
.footer-col a { color: var(--color-text-dim); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--color-border); }
.footer-bottom p { font-size: 0.8rem; color: var(--color-text-dim); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 10, 15, 0.97); flex-direction: column; justify-content: center; align-items: center; gap: 30px; z-index: 99; }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .mobile-menu-btn { display: flex; z-index: 101; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .levels-timeline { padding-left: 50px; }
    .levels-timeline::before { left: 18px; }
    .level-badge { left: -50px; width: 40px; height: 40px; font-size: 0.8rem; }
    .audience-grid { grid-template-columns: 1fr 1fr; }
    .pricing-single { max-width: 100%; }
}

@media (max-width: 480px) {
    .audience-grid { grid-template-columns: 1fr; }
}

/* GRAIN */
body::after { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; pointer-events: none; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); }
/* ============================================
   WHERE URDU TAKES YOU — Interactive Map Section
   Insert between #courses and #audience in index.html
   ============================================ */

.map-section {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    min-height: 90vh;
}

.map-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Map SVG */
.map-svg-wrap {
    position: relative;
    width: 100%;
    margin-top: 48px;
}

.map-svg-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Pakistan provinces */
.province {
    fill: rgba(212, 168, 83, 0.08);
    stroke: rgba(212, 168, 83, 0.25);
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.4s ease, stroke 0.4s ease;
}

.province:hover,
.province.active {
    fill: rgba(212, 168, 83, 0.2);
    stroke: rgba(212, 168, 83, 0.7);
    stroke-width: 1.5;
}

/* India outline */
.india-outline {
    fill: rgba(212, 168, 83, 0.03);
    stroke: rgba(212, 168, 83, 0.1);
    stroke-width: 0.8;
    stroke-dasharray: 4 3;
}

/* City/Region markers */
.map-marker {
    cursor: pointer;
}

.map-marker .marker-dot {
    fill: #d4a853;
    transition: r 0.3s ease;
}

.map-marker .marker-pulse {
    fill: none;
    stroke: #d4a853;
    stroke-width: 1;
    opacity: 0;
    animation: markerPulse 3s ease-out infinite;
}

.map-marker:hover .marker-dot {
    r: 6;
}

.map-marker .marker-label {
    fill: rgba(255, 255, 255, 0.6);
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.map-marker.active .marker-label {
    fill: #d4a853;
}

/* Diaspora markers */
.diaspora-marker .marker-dot {
    fill: rgba(212, 168, 83, 0.5);
}

.diaspora-marker .marker-pulse {
    animation-delay: 1s;
}

.diaspora-line {
    stroke: rgba(212, 168, 83, 0.08);
    stroke-width: 0.5;
    stroke-dasharray: 3 6;
}

/* Region labels on map */
.region-label {
    fill: rgba(255, 255, 255, 0.12);
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 18px;
    pointer-events: none;
    transition: fill 0.4s ease;
}

.province:hover + .region-label,
.province.active + .region-label {
    fill: rgba(212, 168, 83, 0.4);
}

@keyframes markerPulse {
    0% { r: 4; opacity: 0.6; }
    100% { r: 18; opacity: 0; }
}

/* Info card */
.map-info {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    width: 320px;
    background: rgba(10, 10, 15, 0.92);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 12px;
    padding: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    backdrop-filter: blur(20px);
    z-index: 10;
}

.map-info.visible {
    opacity: 1;
    pointer-events: auto;
}

.map-info-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
}

.map-info-close:hover {
    color: #d4a853;
}

.map-info-urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 2.2em;
    color: #d4a853;
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    margin-bottom: 8px;
}

.map-info-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: #fff;
    margin-bottom: 8px;
}

.map-info-hook {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 6px;
}

.map-info-phrase {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85em;
    color: rgba(212, 168, 83, 0.7);
    font-style: italic;
    margin-bottom: 20px;
}

.map-info-stat {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
}

.map-info-link {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9em;
    color: #d4a853;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 168, 83, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s;
}

.map-info-link:hover {
    border-color: #d4a853;
}

/* Legend */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.35);
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.map-legend-dot.pakistan {
    background: #d4a853;
}

.map-legend-dot.india {
    background: rgba(212, 168, 83, 0.3);
    border: 1px dashed rgba(212, 168, 83, 0.4);
}

.map-legend-dot.diaspora {
    background: rgba(212, 168, 83, 0.5);
    box-shadow: 0 0 6px rgba(212, 168, 83, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .map-info {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: translateY(100%);
        border-radius: 16px 16px 0 0;
        max-height: 60vh;
        overflow-y: auto;
    }

    .map-info.visible {
        transform: translateY(0);
    }

    .map-legend {
        flex-wrap: wrap;
        gap: 16px;
    }

    .region-label {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .map-section {
        padding: 60px 0 40px;
    }
}
/* ============================================
   MOBILE FIXES — ajouter à la fin de styles.css
   ============================================ */

/* --- MOBILE: up to 480px --- */
@media (max-width: 480px) {

    /* Reduce section padding significantly */
    .section {
        padding: 50px 16px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    /* Hero: fix Urdu text overlap */
    .hero-title .urdu-text {
        font-size: 2rem;
        margin-top: 4px;
        opacity: 0.6;
    }

    .hero-title .line {
        font-size: clamp(2.8rem, 12vw, 4rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    #hero {
        padding: 0 20px;
    }

    /* Scroll indicator: less space */
    .scroll-indicator {
        bottom: 20px;
    }

    /* Feature cards: tighter */
    .feature-card {
        padding: 28px 22px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.88rem;
    }

    /* Features grid: less gap */
    .features-grid {
        gap: 16px;
    }

    /* Timeline: tighter spacing */
    .levels-timeline {
        padding-left: 45px;
    }

    .level-item {
        margin-bottom: 30px;
    }

    .level-badge {
        left: -45px;
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .level-content h3 {
        font-size: 1.2rem;
    }

    .level-content p {
        font-size: 0.88rem;
    }

    /* Audience cards: tighter */
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .audience-card {
        padding: 28px 22px;
    }

    .audience-urdu {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .audience-card h3 {
        font-size: 1.05rem;
    }

    /* Section titles smaller */
    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .section-tag {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    /* Pricing: tighter */
    .pricing-card-main {
        padding: 36px 24px;
    }

    .pricing-amount {
        font-size: 2.8rem;
    }

    .pricing-name {
        font-size: 1.3rem;
    }

    .pricing-features li {
        font-size: 0.85rem;
        padding: 8px 0 8px 22px;
    }

    /* Punjabi teaser */
    .punjabi-teaser {
        padding: 28px 20px;
    }

    .punjabi-teaser h2 {
        font-size: 1.3rem;
    }

    /* Footer: tighter */
    #footer {
        padding: 40px 16px 20px;
    }

    .footer-grid {
        gap: 24px;
        margin-bottom: 24px;
    }
}

/* --- TABLET: 481px to 768px --- */
@media (min-width: 481px) and (max-width: 768px) {

    .section {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero-title .urdu-text {
        font-size: 2.5rem;
    }

    .audience-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .audience-card {
        padding: 28px 20px;
    }

    .feature-card {
        padding: 30px 24px;
    }

    .level-item {
        margin-bottom: 35px;
    }
}

/* --- MAP MOBILE FIXES --- */
@media (max-width: 768px) {

    .map-section {
        padding: 50px 8px;
    }

    /* Make map labels slightly bigger on mobile */
    .city-label {
        font-size: 9px;
    }

    .province-label {
        font-size: 10px !important;
    }

    .diaspora-label {
        font-size: 8px;
    }

    /* Info card: slide up from bottom on mobile */
    .map-info {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: translateY(100%);
        border-radius: 16px 16px 0 0;
        max-height: 55vh;
        overflow-y: auto;
        padding: 28px 24px;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .map-info.visible {
        transform: translateY(0);
        opacity: 1;
    }

    .map-info-urdu {
        font-size: 1.8em;
    }

    .map-info-name {
        font-size: 1.2em;
    }

    .map-legend {
        gap: 20px;
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- THREE.JS PERFORMANCE ON MOBILE --- */
@media (max-width: 768px) {
    #bg-canvas {
        /* Reduce rendering quality on mobile for performance */
        image-rendering: auto;
    }
}

/* --- TOUCH DEVICES: remove hover effects --- */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
        border-color: var(--color-border);
        box-shadow: none;
    }

    .audience-card:hover {
        transform: none;
        box-shadow: none;
    }

    .audience-card:hover .audience-urdu {
        opacity: 0.7;
        transform: none;
    }

    .pricing-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .hero-btn:hover {
        transform: none;
        box-shadow: none;
    }

    /* Use active state instead for touch feedback */
    .feature-card:active,
    .audience-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .pricing-btn:active,
    .hero-btn:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
}


@media (max-width: 480px) {
    /* Features: 2 colonnes */
.features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-card {
    padding: 22px 16px;
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 1rem;
}

.feature-card p {
    font-size: 0.82rem;
}

/* Audience: 2 colonnes, description cachée */
.audience-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.audience-card {
    padding: 22px 16px;
}

.audience-urdu {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.audience-card h3 {
    font-size: 0.95rem;
}

.audience-card p {
    font-size: 0.75rem;
   line-height: 1.4;
   margin-top: 6px;
   color: rgba(255, 255, 255, 0.4);
   display: block;
}
}
