/* --- DYNAMIC CONTACT HERO BASE --- */
.dynamic-contact-hero {
    padding: 140px 0 100px 0;
    background: #ffffff;
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* --- BACK LAYER FLOATING LIGHT ANIMATION --- */
.glow-particle-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}
.glow-bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: smoothFloat 8s infinite ease-in-out;
}
.bubble-1 {
    width: 400px; height: 400px;
    background: rgba(0, 82, 204, 0.06);
    top: -10px; right: 10%;
}
.bubble-2 {
    width: 300px; height: 300px;
    background: rgba(0, 223, 137, 0.04);
    bottom: 5%; left: 5%;
    animation-delay: 3s;
}

@keyframes smoothFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

.contact-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
    z-index: 5;
}

.contact-split-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* --- LEFT SIDE: INFO HUB & INTERACTIVE CARDS --- */
.contact-info-side { flex: 1.1; }

.contact-mini-tag {
    color: #0052cc;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: inline-block;
}

.contact-main-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: #090d16;
    line-height: 1.1;
    margin-bottom: 25px;
}
.blue-accent { color: #0052cc; }

.contact-lead-para {
    font-size: 1.15rem;
    color: #5e6c84;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Operational Action Cards */
.operational-channels {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.channel-card-link {
    text-decoration: none;
    display: block;
}

.channel-item {
    background: #f8fbff;
    border: 1px solid rgba(0, 82, 204, 0.03);
    border-radius: 24px;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Magnetic Hover Matrix for Quick Links */
.channel-card-link:hover .channel-item {
    background: #ffffff;
    border-color: #0052cc;
    transform: translateX(10px);
    box-shadow: 0 20px 40px rgba(0, 82, 204, 0.06);
}

.channel-icon {
    width: 55px; height: 55px;
    background: #ffffff;
    color: #0052cc;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.04);
    transition: all 0.4s ease;
}
.channel-card-link:hover .channel-icon {
    background: #0052cc;
    color: #ffffff;
}

.channel-data { flex-grow: 1; }
.channel-data span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
.channel-data strong {
    font-size: 1.15rem;
    color: #090d16;
    font-weight: 800;
}

.action-arrow-icon {
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.channel-card-link:hover .action-arrow-icon {
    color: #0052cc;
    transform: translateX(3px);
}

/* --- RIGHT SIDE: FORM CARD WITH FOCUS LIGHTING --- */
.contact-form-side { flex: 1; }

.premium-form-card {
    background: #ffffff;
    border: 1px solid rgba(0, 82, 204, 0.05);
    box-shadow: 0 40px 80px rgba(0, 82, 204, 0.05);
    border-radius: 40px;
    padding: 45px;
}

.form-header { margin-bottom: 30px; }
.form-header h3 { font-size: 1.6rem; font-weight: 850; color: #090d16; margin-bottom: 6px; }
.form-header p { font-size: 0.95rem; color: #64748b; }

.input-field-wrap { position: relative; margin-bottom: 20px; }
.input-field-wrap label { display: block; font-size: 0.85rem; font-weight: 700; color: #090d16; margin-bottom: 8px; }

.interactive-form input, 
.interactive-form select, 
.interactive-form textarea {
    width: 100%; padding: 14px 18px;
    background: #f8fbff;
    border: 1px solid rgba(0, 82, 204, 0.02);
    border-radius: 14px;
    font-size: 0.95rem; color: #090d16; font-weight: 600;
    outline: none; box-sizing: border-box;
    transition: background 0.3s;
}

/* Focus Glow Tracer Line */
.input-focus-line {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: #0052cc;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.interactive-form input:focus ~ .input-focus-line,
.interactive-form select:focus ~ .input-focus-line,
.interactive-form textarea:focus ~ .input-focus-line {
    width: 100%;
}
.interactive-form input:focus, .interactive-form select:focus, .interactive-form textarea:focus { background: #ffffff; }

.split-inputs { display: flex; gap: 20px; }
.split-inputs .input-field-wrap { flex: 1; }

.btn-submit-form {
    width: 100%; background: #090d16; color: #ffffff; border: none;
    padding: 18px; border-radius: 16px; font-size: 1rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-submit-form:hover {
    background: #0052cc;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 82, 204, 0.2);
}

/* Responsive Structural Adjustments */
@media (max-width: 992px) {
    .contact-split-layout { flex-direction: column; gap: 40px; }
    .contact-main-title { font-size: 2.5rem; }
    .split-inputs { flex-direction: column; gap: 0; }
}

/* --- OPERATIONAL LOCATIONS BASE STYLING --- */
.operational-locations-section {
    padding: 100px 0;
    background: #f8fbff; /* Contrast separation from white contact hero */
    position: relative;
    overflow: hidden;
}

.loc-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header Styling */
.loc-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
}

.loc-mini-tag {
    color: #0052cc;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
}

.loc-header h2 {
    font-size: 3.2rem;
    font-weight: 900;
    color: #090d16;
    line-height: 1.1;
    margin-bottom: 20px;
}

.loc-header .blue-text {
    color: #0052cc;
}

.loc-header p {
    font-size: 1.15rem;
    color: #5e6c84;
    line-height: 1.8;
}

/* --- LOCATIONS BENTO GRID SYSTEM --- */
.locations-bento-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.location-bento-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 50px;
    border: 1px solid rgba(0, 82, 204, 0.04);
    box-shadow: 0 20px 50px rgba(0, 82, 204, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Physics: Elevation with Depth Glow */
.location-bento-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 82, 204, 0.08);
    border-color: #0052cc;
}

/* Absolute Badges */
.loc-badge-status {
    position: absolute;
    top: 35px; right: 35px;
    background: rgba(0, 223, 137, 0.1);
    color: #00be74;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loc-badge-status.status-admin {
    background: rgba(0, 82, 204, 0.1);
    color: #0052cc;
}

/* Icon Bubbles with Rotation on Hover */
.loc-icon-bubble {
    width: 65px; height: 65px;
    background: #f0f7ff;
    color: #0052cc;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.location-bento-card:hover .loc-icon-bubble {
    background: #090d16;
    color: #ffffff;
    transform: scale(1.1) rotate(-8deg);
}

.location-bento-card h3 {
    font-size: 1.6rem;
    font-weight: 850;
    color: #090d16;
    margin-bottom: 6px;
}

.loc-company-tag {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

/* Details Structural List */
.loc-details-list {
    list-style: none;
    padding: 0; margin: 0 0 40px 0;
}

.loc-details-list li {
    font-size: 1.05rem;
    color: #5e6c84;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.loc-details-list li i {
    color: #0052cc;
    font-size: 1.1rem;
    margin-top: 4px;
}

/* Premium Direction Button Links */
.btn-location-direction {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #090d16;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 35px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-location-direction:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 82, 204, 0.2);
}

.btn-location-direction i {
    transition: transform 0.3s ease;
}
.location-bento-card:hover .btn-location-direction i {
    transform: rotate(45deg) scale(1.1); /* Arrow interaction on parent card hover */
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .locations-bento-layout { grid-template-columns: 1fr; gap: 30px; }
    .location-bento-card { padding: 35px; }
    .loc-header h2 { font-size: 2.3rem; }
}

/* --- IMMERSIVE MAP SECTION BASE --- */
.immersive-map-section {
    width: 100%;
    height: 600px; /* Perfect height standard for desktop dashboards */
    position: relative;
    background: #090d16;
    overflow: hidden;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Map Frame Zoom Physics */
.map-iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoomable-map-frame {
    filter: grayscale(0.2) contrast(1.05); /* Clean corporate modern tone mapping */
    transition: all 0.5s ease;
}

/* When parent container is hovered, map subtly expands to give depth feeling */
.immersive-map-section:hover .zoomable-map-frame {
    filter: grayscale(0) contrast(1.1);
    transform: scale(1.02); /* Clean fluid digital zoom effect */
}

/* --- FLOATING GLASSMORPHISM CARD OVERLAY --- */
.map-floating-glass-card {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px); /* Ultra premium iOS-style crystal blur */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 30px;
    width: 360px;
    box-shadow: 0 30px 60px rgba(9, 13, 22, 0.12);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.immersive-map-section:hover .map-floating-glass-card {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 82, 204, 0.15);
}

/* Live Operational Pulse Dot Animation */
.glass-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.glass-header h4 {
    font-size: 1.25rem;
    font-weight: 850;
    color: #090d16;
    margin: 0;
}

.live-pulse-dot {
    width: 10px;
    height: 10px;
    background: #00df89; /* Active production green color */
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.live-pulse-dot::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #00df89;
    animation: pulseRing 1.5s infinite ease-in-out;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.glass-address {
    font-size: 0.95rem;
    color: #5e6c84;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 25px;
}

.glass-address i {
    color: #0052cc;
    margin-right: 6px;
}

/* Navigation Call Button Inside Glass */
.glass-btn-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0052cc;
    color: #ffffff;
    text-decoration: none;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 82, 204, 0.2);
    transition: all 0.3s ease;
}

.glass-btn-route:hover {
    background: #090d16;
    box-shadow: 0 15px 30px rgba(9, 13, 22, 0.3);
}

/* --- BOTTOM ZOOM HINT BAR --- */
.map-zoom-hint-layer {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 5;
    background: #090d16;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    opacity: 0.85;
}

/* Responsive Grid Adaptation */
@media (max-width: 768px) {
    .immersive-map-section { height: 450px; }
    .map-floating-glass-card {
        position: relative;
        top: 0; left: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 20px 40px;
    }
    .map-zoom-hint-layer { display: none; }
}

/* ==========================================
   GLOBAL SCROLL ANIMATION SYSTEM
========================================== */

.reveal-left,
.reveal-right,
.reveal-up,
.reveal-scale {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-left {
    transform: translateX(-120px);
}

.reveal-right {
    transform: translateX(120px);
}

.reveal-up {
    transform: translateY(100px);
}

.reveal-scale {
    transform: scale(0.85);
}

.reveal-left.active,
.reveal-right.active,
.reveal-up.active,
.reveal-scale.active {
    opacity: 1;
    transform: translate(0,0) scale(1);
}

/* ==========================================
   CONTACT HERO ANIMATIONS
========================================== */

/* LEFT SIDE */
.contact-info-side {
    opacity: 0;
    transform: translateX(-120px);
    transition: all 1.2s cubic-bezier(0.16,1,0.3,1);
}
.contact-info-side.active {
    opacity: 1;
    transform: translateX(0);
}

/* RIGHT FORM */
.contact-form-side {
    opacity: 0;
    transform: translateX(120px);
    transition: all 1.2s cubic-bezier(0.16,1,0.3,1);
}
.contact-form-side.active {
    opacity: 1;
    transform: translateX(0);
}

/* TITLE */
.contact-main-title {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s ease;
}
.contact-main-title.active {
    opacity: 1;
    transform: translateY(0);
}

/* PARA */
.contact-lead-para {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease;
    transition-delay: .2s;
}
.contact-lead-para.active {
    opacity: 1;
    transform: translateY(0);
}

/* CHANNEL CARDS */
.channel-item {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1s cubic-bezier(0.16,1,0.3,1);
}

.channel-item.active {
    opacity: 1;
    transform: translateX(0);
}

.channel-item:nth-child(1) { transition-delay: .1s; }
.channel-item:nth-child(2) { transition-delay: .25s; }
.channel-item:nth-child(3) { transition-delay: .4s; }
.channel-item:nth-child(4) { transition-delay: .55s; }

/* FORM CARD */
.premium-form-card {
    opacity: 0;
    transform: translateY(100px) scale(.92);
    transition: all 1.2s cubic-bezier(0.16,1,0.3,1);
}

.premium-form-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* FORM INPUTS */
.input-field-wrap {
    opacity: 0;
    transform: translateY(50px);
    transition: all .8s ease;
}

.input-field-wrap.active {
    opacity: 1;
    transform: translateY(0);
}

.input-field-wrap:nth-child(1){transition-delay:.1s;}
.input-field-wrap:nth-child(2){transition-delay:.2s;}
.input-field-wrap:nth-child(3){transition-delay:.3s;}
.input-field-wrap:nth-child(4){transition-delay:.4s;}
.input-field-wrap:nth-child(5){transition-delay:.5s;}

/* BUTTON */
.btn-submit-form {
    opacity: 0;
    transform: translateY(40px);
    transition: all .9s ease;
}

.btn-submit-form.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   LOCATION SECTION ANIMATIONS
========================================== */

.loc-header {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s ease;
}

.loc-header.active {
    opacity: 1;
    transform: translateY(0);
}

/* LEFT CARD */
.location-bento-card:nth-child(odd) {
    opacity: 0;
    transform: translateX(-120px);
    transition: all 1.1s cubic-bezier(0.16,1,0.3,1);
}

/* RIGHT CARD */
.location-bento-card:nth-child(even) {
    opacity: 0;
    transform: translateX(120px);
    transition: all 1.1s cubic-bezier(0.16,1,0.3,1);
}

.location-bento-card.active {
    opacity: 1;
    transform: translateX(0);
}

/* INNER ELEMENTS */
.location-bento-card h3,
.location-bento-card .loc-company-tag,
.location-bento-card .loc-details-list li,
.location-bento-card .btn-location-direction {
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s ease;
}

.location-bento-card.active h3,
.location-bento-card.active .loc-company-tag,
.location-bento-card.active .loc-details-list li,
.location-bento-card.active .btn-location-direction {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   MAP SECTION ANIMATIONS
========================================== */

.map-floating-glass-card {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1.2s cubic-bezier(0.16,1,0.3,1);
}

.map-floating-glass-card.active {
    opacity: 1;
    transform: translateX(0);
}

.zoomable-map-frame {
    opacity: 0;
    transform: scale(1.15);
    transition: all 1.5s ease;
}

.zoomable-map-frame.active {
    opacity: 1;
    transform: scale(1);
}

.map-zoom-hint-layer {
    opacity: 0;
    transform: translateY(40px);
    transition: all .9s ease;
}

.map-zoom-hint-layer.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   AUTO SCROLL VIEW TIMELINE SUPPORT
========================================== */

@supports (animation-timeline: view()) {

    .contact-info-side,
    .contact-form-side,
    .contact-main-title,
    .contact-lead-para,
    .channel-item,
    .premium-form-card,
    .input-field-wrap,
    .btn-submit-form,
    .loc-header,
    .location-bento-card,
    .map-floating-glass-card,
    .zoomable-map-frame,
    .map-zoom-hint-layer {

        animation: autoReveal 1s ease forwards;
        animation-timeline: view();
        animation-range: entry 10% cover 35%;
    }

    @keyframes autoReveal {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

@media (max-width: 768px) {

    /* SAFE LAYOUT ONLY (NO OVERFLOW FIX BREAKING ANIMATION) */
    html, body {
        overflow-x: hidden !important;
    }

    .contact-container {
        padding: 0 16px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .contact-split-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }

    /* ONLY FIX POSITIONING — KEEP ANIMATION */
    .contact-info-side,
    .contact-form-side {
        width: 100% !important;
        max-width: 100% !important;
        flex: unset !important;

        /* IMPORTANT: reset ONLY initial offscreen shift */
        transform: translateX(0) !important;
    }

    /* TEXT SAFE */
    .contact-main-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .contact-lead-para {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
}