/* ==========================================================================
   NexaWeb — 3D Cyber Contact Page Styles (GSAP + Three.js Ready)
   ========================================================================== */

:root {
    --nx-c-bg: #070a14;
    --nx-c-surface: rgba(15, 23, 42, 0.7);
    --nx-c-surface-hover: rgba(30, 41, 69, 0.85);
    --nx-c-border: rgba(99, 102, 241, 0.22);
    --nx-c-border-hover: rgba(6, 182, 212, 0.6);
    --nx-c-primary: #4f46e5;
    --nx-c-cyan: #06b6d4;
    --nx-c-emerald: #10b981;
    --nx-c-violet: #8b5cf6;
    --nx-c-text-muted: #94a3b8;
    --nx-c-glow: 0 0 35px rgba(79, 70, 229, 0.35);
}

.nx-contact-body {
    background-color: var(--nx-c-bg);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* -------------------------------------------------------------
   0. Ambient Three.js Canvas / Background Mesh
   ------------------------------------------------------------- */
.nx-3d-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

.nx-ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.nx-glow-1 {
    top: 5%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.5) 0%, transparent 70%);
}

.nx-glow-2 {
    top: 40%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
}

.nx-glow-3 {
    bottom: 10%;
    left: 20%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, transparent 70%);
}

/* -------------------------------------------------------------
   1. 3D Cyber Hero Section
   ------------------------------------------------------------- */
.nx-contact-hero {
    position: relative;
    z-index: 1;
    padding: 170px 0 90px;
    text-align: center;
}

.nx-hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    border-radius: 999px;
    background: rgba(30, 41, 69, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
    margin-bottom: 26px;
    backdrop-filter: blur(10px);
}

.nx-hero-pill-badge .sparkle {
    color: #f59e0b;
    font-size: 14px;
    animation: nx-spin-pulse 3s infinite linear;
}

@keyframes nx-spin-pulse {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.25); }
    100% { transform: rotate(360deg) scale(1); }
}

.nx-hero-pill-badge span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nx-contact-hero-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.12;
    color: #ffffff;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
}

.nx-contact-hero-title .highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
}

.nx-contact-hero-desc {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--nx-c-text-muted);
    max-width: 820px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* 4 Floating Metrics Strip */
.nx-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    perspective: 1000px;
}

.nx-metric-card {
    background: linear-gradient(145deg, rgba(20, 27, 45, 0.7) 0%, rgba(10, 14, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nx-metric-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.2);
}

.nx-metric-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nx-metric-label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

/* -------------------------------------------------------------
   2. Interactive 3D Channel Cards (Direct Access)
   ------------------------------------------------------------- */
.nx-channels-section {
    position: relative;
    z-index: 1;
    padding: 60px 0 100px;
}

.nx-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.nx-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.nx-section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.22;
}

.nx-channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    perspective: 1200px;
}

.nx-channel-card {
    position: relative;
    background: linear-gradient(145deg, rgba(23, 32, 54, 0.75) 0%, rgba(12, 17, 32, 0.85) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 24px;
    padding: 34px 26px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none !important;
    backdrop-filter: blur(14px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.nx-channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nx-channel-card:hover {
    border-color: rgba(6, 182, 212, 0.7);
    box-shadow: 
        0 25px 50px -10px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(6, 182, 212, 0.25);
}

.nx-channel-card:hover::before {
    opacity: 1;
}

/* 3D Floating Icon Box */
.nx-channel-icon-box {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 22px;
    transform: translateZ(30px);
    transition: transform 0.35s ease;
}

.nx-channel-card:hover .nx-channel-icon-box {
    transform: translateZ(45px) scale(1.1) rotate(5deg);
}

.nx-icon-phone {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
}

.nx-icon-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

.nx-icon-email {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.45);
}

.nx-icon-map {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.45);
}

/* Live Status Badge */
.nx-channel-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 14px;
}

.nx-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.nx-channel-card h4 {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.25;
}

.nx-channel-card p {
    font-size: 13px;
    color: var(--nx-c-text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
    flex-grow: 1;
}

.nx-channel-link {
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.25s ease, color 0.25s ease;
}

.nx-channel-card:hover .nx-channel-link {
    color: #ffffff;
    gap: 12px;
}

/* -------------------------------------------------------------
   3. Master Consultation & Smart Lead Capture Hub
   ------------------------------------------------------------- */
.nx-hub-section {
    position: relative;
    z-index: 1;
    padding: 40px 0 120px;
}

.nx-hub-container {
    background: linear-gradient(145deg, rgba(16, 23, 42, 0.7) 0%, rgba(10, 14, 26, 0.85) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 36px;
    padding: 60px 50px;
    box-shadow: 
        0 30px 80px -20px rgba(0, 0, 0, 0.75),
        0 0 50px rgba(79, 70, 229, 0.15);
    backdrop-filter: blur(16px);
}

/* Left Column: Why Nexaweb & Live Time */
.nx-hub-info {
    padding-right: 20px;
}

.nx-hub-info h3 {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.18;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.nx-hub-info h3 span {
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nx-hub-info > p {
    font-size: 16px;
    color: var(--nx-c-text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
}

/* 4 Feature Pillars */
.nx-pillar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 38px;
}

.nx-pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.nx-pillar-item:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(6px);
}

.nx-pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.nx-pillar-text h5 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.nx-pillar-text p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

/* Live Bangalore Clock Card */
.nx-live-clock-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.nx-clock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: nx-beacon-pulse 2s infinite;
}

.nx-clock-info {
    font-size: 13px;
    color: #ffffff;
}

.nx-clock-info strong {
    color: #34d399;
}

/* Right Column: 3D Form Wrapper */
.nx-form-column-wrap {
    perspective: 1000px;
}

.nx-form-column-wrap .nx-smart-form-shell {
    background: linear-gradient(145deg, rgba(20, 27, 45, 0.85) 0%, rgba(10, 14, 26, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.75),
        0 0 40px rgba(79, 70, 229, 0.2);
    border-radius: 28px;
    padding: 42px 38px;
    backdrop-filter: blur(14px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.nx-form-column-wrap .nx-smart-form-shell:hover {
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 
        0 30px 75px -15px rgba(0, 0, 0, 0.85),
        0 0 55px rgba(6, 182, 212, 0.25);
}

/* -------------------------------------------------------------
   4. 3D FAQ Accordion Section
   ------------------------------------------------------------- */
.nx-faq-section {
    position: relative;
    z-index: 1;
    padding: 40px 0 100px;
}

.nx-faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nx-faq-item {
    background: linear-gradient(145deg, rgba(20, 27, 45, 0.65) 0%, rgba(10, 14, 26, 0.75) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nx-faq-item.is-active {
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(145deg, rgba(26, 35, 58, 0.85) 0%, rgba(15, 21, 38, 0.95) 100%);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.18);
}

.nx-faq-trigger {
    width: 100%;
    padding: 22px 28px;
    background: none;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
}

.nx-faq-trigger .icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 14px;
    transition: transform 0.35s ease, background 0.35s ease;
    flex-shrink: 0;
}

.nx-faq-item.is-active .nx-faq-trigger .icon-circle {
    transform: rotate(180deg);
    background: rgba(79, 70, 229, 0.4);
    color: #ffffff;
}

.nx-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding: 0 28px;
}

.nx-faq-item.is-active .nx-faq-content {
    padding: 0 28px 24px 28px;
}

.nx-faq-content p {
    font-size: 15px;
    color: var(--nx-c-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* -------------------------------------------------------------
   5. Cyberpunk Studio Map Section
   ------------------------------------------------------------- */
.nx-map-section {
    position: relative;
    z-index: 1;
    padding: 40px 0 120px;
}

.nx-map-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 
        0 25px 70px -15px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(79, 70, 229, 0.2);
    height: 480px;
    background: #0b0f19;
}

.nx-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) contrast(90%);
}

/* HUD Floating Studio Overlay Card */
.nx-map-hud-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 20px;
    padding: 24px 28px;
    max-width: 380px;
    backdrop-filter: blur(14px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.nx-map-hud-card h5 {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-map-hud-card h5 i {
    color: #ef4444;
}

.nx-map-hud-card p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 16px;
}

.nx-map-hud-card .btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nx-map-hud-card .btn-directions:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

/* -------------------------------------------------------------
   6. Responsive Layout Optimization
   ------------------------------------------------------------- */
@media (max-width: 1199px) {
    .nx-channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nx-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .nx-hub-container {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .nx-hub-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .nx-contact-hero {
        padding: 130px 0 60px;
    }

    .nx-map-wrapper {
        height: 380px;
    }

    .nx-map-hud-card {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .nx-channels-grid {
        grid-template-columns: 1fr;
    }

    .nx-metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .nx-metric-card {
        padding: 18px 12px;
    }

    .nx-metric-num {
        font-size: 28px;
    }

    .nx-form-column-wrap .nx-smart-form-shell {
        padding: 26px 18px;
    }
}
