/* ========================================================================
   DESIGN SUVIDHA — 3D SCROLL-TRIGGERED ANIMATION WEBSITE
   Full immersive dark theme with gaming-style scroll effects
   ======================================================================== */

/* --- CSS Custom Properties --- */
:root {
    --primary: hsl(263, 70%, 58%);
    --primary-glow: hsla(263, 70%, 58%, 0.35);
    --secondary: hsl(188, 86%, 53%);
    --secondary-glow: hsla(188, 86%, 53%, 0.3);
    --accent-pink: hsl(330, 85%, 60%);
    --accent-green: hsl(155, 70%, 50%);

    --bg-dark: hsl(232, 28%, 5%);
    --bg-darker: hsl(232, 25%, 3%);
    --bg-card: hsla(232, 25%, 7%, 0.94);
    --bg-card-hover: hsla(232, 25%, 10%, 0.98);
    --bg-glass: hsla(232, 25%, 8%, 0.85);

    --text-white: hsl(0, 0%, 97%);
    --text-light: hsl(230, 20%, 78%);
    --text-muted: hsl(230, 20%, 68%);

    --border-glass: hsla(230, 20%, 35%, 0.45);
    --border-glass-hover: hsla(263, 70%, 58%, 0.6);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 100px;

    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --transition-quick: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-dramatic: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* --- GLOBAL FIXED FRAME BACKGROUND (plays through entire scroll) --- */
.global-frame-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}
.global-frame-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    filter: saturate(1.25);
    transition: opacity 0.1s linear;
}
.global-frame-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(13, 15, 26, 0.4) 0%, rgba(10, 11, 19, 0.88) 100%);
}

/* --- Particles --- */
.particle-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* --- Scroll Progress Bar --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent-pink));
    z-index: 10000;
    transition: none;
}

/* --- HEADER / NAV (Sticky) --- */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    padding: 14px 0;
    background: hsla(232, 28%, 5%, 0.7);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}
.header-nav.scrolled { padding: 8px 0; background: hsla(232, 28%, 5%, 0.92); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo-img { height: 42px; }
.nav-menu { display: flex; gap: 8px; }
.nav-link {
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: var(--radius-full);
    transition: var(--transition-quick);
}
.nav-link:hover, .nav-link.active { color: var(--text-white); background: hsla(263, 70%, 58%, 0.12); }
.nav-link.cta-link { color: var(--secondary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-decoration: none;
}
.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), hsl(280, 80%, 55%));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 35px var(--primary-glow); }
.btn-glass {
    background: hsla(230, 20%, 20%, 0.3);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}
.btn-glass:hover { border-color: var(--primary); background: hsla(263, 70%, 58%, 0.12); transform: translateY(-3px); }

/* --- Mobile Nav --- */
.mobile-nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-nav-toggle .bar { width: 24px; height: 2px; background: var(--text-white); border-radius: 2px; transition: var(--transition-quick); }
.mobile-nav-drawer { display: none; }

/* ============================================================
   SCENE SYSTEM — Each section is a 3D scroll-triggered scene
   ============================================================ */
.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    perspective: 1200px;
    overflow: hidden;
}
.scene-inner {
    width: 100%;
    padding: 120px 0;
}

/* --- HERO SCENE --- */
.scene-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-video-bg-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(1.2) brightness(0.8) contrast(1.1);
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(13, 15, 26, 0.25) 0%, rgba(10, 11, 19, 0.82) 100%);
}
.scene-hero .scene-inner {
    position: relative;
    z-index: 2;
}
.hero-center-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.hero-mega-title {
    font-size: 62px;
    font-weight: 800;
    line-height: 1.08;
    color: var(--text-white);
    letter-spacing: -0.03em;
    text-align: center;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 17px;
    color: var(--text-light);
    max-width: 650px;
    line-height: 1.7;
    text-align: center;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.glow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: hsla(263, 70%, 58%, 0.1);
    border: 1px solid hsla(263, 70%, 58%, 0.25);
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
}
.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }

/* Service Pricing Tags */
.svc-price-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* --- STATS SCENE --- */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    min-width: 180px;
}
.stat-pill:hover { border-color: var(--primary); transform: translateY(-6px) scale(1.04); box-shadow: 0 12px 40px var(--primary-glow); }
.sp-num { font-size: 34px; font-weight: 800; color: var(--text-white); }
.sp-lbl { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* --- CINEMATIC BREAK SECTIONS --- */
.scene-break {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.scene-break::before {
    content: attr(data-break-text);
    font-size: 96px;
    font-weight: 800;
    color: var(--text-white);
    text-shadow: 0 0 25px var(--primary-glow);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    opacity: 0.9;
}
.scene-break::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 20%;
    width: 60px;
    height: 3px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* --- SECTION HEADERS --- */
.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 10px;
}
.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.section-subtitle { font-size: 16px; color: var(--text-muted); max-width: 580px; margin: 0 auto; }

/* --- SERVICES V2 (Large Cards with Number) --- */
.services-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.svc-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: var(--transition-dramatic);
    position: relative;
    overflow: hidden;
}
.svc-card:hover { border-color: var(--border-glass-hover); transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px var(--primary-glow); }
.svc-num {
    font-size: 64px;
    font-weight: 800;
    color: hsla(263, 70%, 58%, 0.08);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}
.svc-card h3 { font-size: 22px; font-weight: 800; color: var(--text-white); margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.svc-price {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: hsla(188, 86%, 53%, 0.08);
    border: 1px solid hsla(188, 86%, 53%, 0.2);
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary);
}

/* --- PRICING --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.pricing-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: var(--transition-dramatic);
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card:hover { border-color: var(--border-glass-hover); transform: translateY(-8px); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 40px var(--primary-glow); }
.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}
.pricing-header { margin-bottom: 20px; }
.pack-title { font-size: 22px; font-weight: 800; color: var(--text-white); }
.pack-target { font-size: 13px; color: var(--text-muted); }
.pricing-price-block { margin-bottom: 24px; }
.original-price { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.active-price-row { display: flex; align-items: baseline; gap: 2px; margin: 4px 0; }
.currency { font-size: 22px; font-weight: 800; color: var(--secondary); }
.price-val { font-size: 44px; font-weight: 800; color: var(--text-white); line-height: 1; }
.period { font-size: 14px; color: var(--text-muted); margin-left: 4px; }
.save-tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); background: hsla(155, 70%, 50%, 0.12); color: var(--accent-green); font-size: 11px; font-weight: 800; }
.pack-features { margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.pack-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-light); }
.bullet { color: var(--accent-green); font-weight: 800; flex-shrink: 0; }
.pricing-cta-row { margin-top: auto; }

/* --- PORTFOLIO (Video Campaigns) --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 50px; }
.portfolio-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-dramatic);
}
.portfolio-item:hover { border-color: var(--border-glass-hover); transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.portfolio-media { position: relative; aspect-ratio: 9/16; background: var(--bg-darker); }
.case-video-player { width: 100%; height: 100%; object-fit: cover; }
.portfolio-category-badge { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: var(--radius-full); background: hsla(263, 70%, 58%, 0.8); color: white; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; backdrop-filter: blur(6px); }
.portfolio-info { padding: 20px; }
.client-name { font-size: 11px; font-weight: 800; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.portfolio-item-title { font-size: 17px; font-weight: 700; color: var(--text-white); margin: 6px 0 12px; }
.portfolio-metrics { display: flex; gap: 24px; }
.metric { display: flex; flex-direction: column; }
.m-val-big { font-size: 22px; font-weight: 800; color: var(--text-white); }
.m-lbl { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }

/* --- WEBSITE PORTFOLIO --- */
.web-portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 50px; }
.web-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-dramatic);
}
.web-card:hover { border-color: var(--border-glass-hover); transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 25px var(--primary-glow); }
.web-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-darker); }
.web-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.web-card:hover .web-thumb img { transform: scale(1.08); }
.web-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.web-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--secondary); }
.web-body h3 { font-size: 17px; font-weight: 700; color: var(--text-white); }
.visit-link { font-size: 13px; font-weight: 700; color: var(--primary); transition: var(--transition-quick); }
.visit-link:hover { color: var(--secondary); transform: translateX(4px); }

/* --- TESTIMONIALS --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 50px; }
.testi-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: var(--transition-dramatic);
}
.testi-card:hover { border-color: var(--border-glass-hover); transform: translateY(-6px); }
.stars { color: #fbbf24; font-size: 16px; margin-bottom: 12px; }
.testi-card p { font-size: 14px; color: var(--text-light); font-style: italic; margin-bottom: 16px; line-height: 1.6; }
.testi-author { display: flex; flex-direction: column; }
.testi-author strong { font-size: 14px; color: var(--text-white); }
.testi-author span { font-size: 12px; color: var(--text-muted); }

/* --- BRANCHES --- */
.presence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 50px; }
.presence-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: var(--transition-dramatic);
}
.presence-card:hover { border-color: var(--border-glass-hover); transform: translateY(-6px); }
.presence-glow-icon { font-size: 40px; margin-bottom: 14px; }
.branch-name { font-size: 20px; font-weight: 800; color: var(--text-white); margin-bottom: 14px; }
.branch-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.d-item { font-size: 13.5px; color: var(--text-light); }
.d-item a { color: var(--secondary); font-weight: 600; }

/* --- CONTACT --- */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-desc { font-size: 15px; color: var(--text-muted); margin: 16px 0 24px; }
.contact-bullet-points { display: flex; flex-direction: column; gap: 12px; }
.point-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-light); }
.point-bullet { color: var(--accent-green); font-weight: 800; font-size: 18px; }
.form-wrapper {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(15px);
}
.form-title { font-size: 22px; font-weight: 800; color: var(--text-white); margin-bottom: 24px; }
.form-group-custom { margin-bottom: 18px; position: relative; }
.form-label-txt { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-input-field, .form-text-field, .form-select-field {
    width: 100%;
    padding: 13px 16px;
    background: hsla(232, 25%, 8%, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-family: var(--font-family);
    font-size: 14px;
    transition: var(--transition-quick);
}
.form-input-field:focus, .form-text-field:focus, .form-select-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-select-field { cursor: pointer; }
.form-text-field { resize: vertical; min-height: 80px; }
.error-msg { display: none; font-size: 11px; color: var(--accent-pink); margin-top: 4px; }
.error-msg.visible { display: block; }
.submit-btn { margin-top: 8px; position: relative; }
.loader { display: none; width: 18px; height: 18px; border: 2px solid white; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-feedback-message { display: none; padding: 14px; border-radius: var(--radius-md); margin-top: 14px; font-size: 14px; font-weight: 600; }
.form-feedback-message.success { background: hsla(155, 70%, 50%, 0.1); border: 1px solid hsla(155, 70%, 50%, 0.3); color: var(--accent-green); }
.form-feedback-message.error { background: hsla(330, 85%, 60%, 0.1); border: 1px solid hsla(330, 85%, 60%, 0.3); color: var(--accent-pink); }

/* --- FOOTER --- */
.footer-layout { border-top: 1px solid var(--border-glass); padding: 60px 0 0; background: hsla(232, 25%, 3%, 0.9); position: relative; z-index: 10; }
.footer-container { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 48px; }
.footer-logo-img { height: 36px; margin-bottom: 14px; }
.brand-bio { font-size: 13px; color: var(--text-muted); max-width: 300px; }
.footer-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.footer-heading { font-size: 13px; font-weight: 800; color: var(--text-white); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: var(--transition-quick); }
.footer-links a:hover { color: var(--secondary); transform: translateX(4px); }
.footer-bottom { border-top: 1px solid var(--border-glass); margin-top: 40px; padding: 20px 0; }
.footer-bottom-container { display: flex; justify-content: space-between; align-items: center; }
.copyright-txt { font-size: 12px; color: var(--text-muted); }
.footer-socials { display: flex; gap: 12px; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border-glass); border-radius: 50%; font-size: 11px; font-weight: 800; color: var(--text-muted); transition: var(--transition-quick); }
.social-icon:hover { border-color: var(--primary); color: var(--text-white); }

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 8000;
    backdrop-filter: blur(10px);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }

/* --- WHATSAPP CHATBOT --- */
.whatsapp-chatbot-container { position: fixed; bottom: 24px; left: 24px; z-index: 8500; }
.whatsapp-chat-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    position: relative;
}
.whatsapp-chat-trigger:hover { transform: scale(1.1); }
.wa-icon { width: 28px; height: 28px; color: white; }
.chat-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: chatPulse 2s ease-out infinite;
}
@keyframes chatPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.whatsapp-chat-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-smooth);
}
.whatsapp-chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #075E54; }
.agent-profile { display: flex; align-items: center; gap: 10px; }
.agent-avatar-container { position: relative; }
.agent-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: white; }
.online-indicator { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: #25D366; border: 2px solid #075E54; }
.agent-name { font-size: 13px; font-weight: 700; color: white; display: block; }
.agent-status { font-size: 11px; color: rgba(255,255,255,0.7); }
.chat-close-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.chat-panel-body { padding: 16px; max-height: 280px; overflow-y: auto; background: hsla(232, 25%, 6%, 0.8); }
.chat-bubble { padding: 10px 14px; border-radius: 12px; margin-bottom: 8px; }
.chat-bubble.received { background: hsla(230, 20%, 15%, 0.8); border: 1px solid var(--border-glass); }
.chat-bubble p { font-size: 13px; color: var(--text-light); }
.chat-options-stack { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.chat-opt-btn {
    padding: 10px 14px;
    background: hsla(263, 70%, 58%, 0.08);
    border: 1px solid hsla(263, 70%, 58%, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition-quick);
    text-align: left;
}
.chat-opt-btn:hover { background: hsla(263, 70%, 58%, 0.18); border-color: var(--primary); color: var(--text-white); }
.chat-panel-footer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border-glass); }
.chat-panel-footer input { flex-grow: 1; padding: 10px 14px; background: hsla(232, 25%, 8%, 0.7); border: 1px solid var(--border-glass); border-radius: var(--radius-full); color: var(--text-white); font-size: 13px; font-family: var(--font-family); }
.chat-panel-footer input:focus { outline: none; border-color: var(--primary); }
.chat-panel-footer button { width: 40px; height: 40px; border-radius: 50%; background: #25D366; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.send-icon { width: 18px; height: 18px; color: white; }

/* ============================================================
   3D SCROLL ANIMATION STATES
   Elements start hidden/transformed and animate in on scroll
   ============================================================ */
[data-anim] {
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}
[data-anim="fade-up"] { transform: translateY(60px); }
[data-anim="zoom-in"] { transform: scale(0.85); }
[data-anim="tilt-in-left"] { transform: perspective(800px) rotateY(8deg) translateX(-80px); }
[data-anim="tilt-in-right"] { transform: perspective(800px) rotateY(-8deg) translateX(80px); }
[data-anim="scale-up"] { transform: scale(0.9) translateY(40px); }
[data-anim="stagger-up"] { transform: translateY(50px); }

/* When element is visible (JS adds this class) */
[data-anim].anim-visible {
    opacity: 1;
    transform: none;
}

/* Stagger children animation delay */
[data-anim="stagger-up"].anim-visible .stat-pill:nth-child(1) { transition-delay: 0s; }
[data-anim="stagger-up"].anim-visible .stat-pill:nth-child(2) { transition-delay: 0.1s; }
[data-anim="stagger-up"].anim-visible .stat-pill:nth-child(3) { transition-delay: 0.2s; }
[data-anim="stagger-up"].anim-visible .stat-pill:nth-child(4) { transition-delay: 0.3s; }
[data-anim="stagger-up"] .stat-pill { opacity: 0; transform: translateY(30px); transition: var(--transition-dramatic); }
[data-anim="stagger-up"].anim-visible .stat-pill { opacity: 1; transform: translateY(0); }

/* 3D Card Tilt on Hover */
.card-3d { transition: var(--transition-dramatic); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-mega-title { font-size: 46px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .services-grid-v2 { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .presence-grid { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .scene-break::before { font-size: 50px; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-nav-toggle { display: flex; }
    .mobile-nav-drawer {
        position: fixed;
        inset: 0;
        background: hsla(232, 28%, 5%, 0.96);
        backdrop-filter: blur(20px);
        z-index: 8999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
    }
    .mobile-nav-drawer.active { opacity: 1; visibility: visible; }
    .mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 20px; }
    .mobile-link { font-size: 20px; font-weight: 700; color: var(--text-white); }
    .hero-mega-title { font-size: 36px; }
    .section-title { font-size: 30px; }
    .scene-inner { padding: 80px 0; }
    .scene-break::before { font-size: 36px; }
    .stats-row { flex-direction: column; align-items: center; }
    .web-portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-mega-title { font-size: 28px; }
    .section-title { font-size: 24px; }
    .scene-break::before { font-size: 24px; letter-spacing: 0.08em; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
}

.mobile-link.highlight-link {
    color: var(--secondary);
    border: 1px solid var(--secondary-glow);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: hsla(188, 86%, 53%, 0.05);
    text-align: center;
    margin-top: 10px;
}
