@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;700;900&family=Noto+Serif:wght@400;700&family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

:root {
    --prussian-blue: #011638;
    --muted-teal: #74a57f;
    --cerulean: #2978a0;
    --powder-petal: #efd9ce;
    --soft-linen: #eef0eb;
    --header-height: 80px;
    --visual-width: 38.2%;
    --content-width: 61.8%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Noto Sans', sans-serif;
    background-color: var(--soft-linen);
    color: var(--prussian-blue);
    overflow: hidden; /* App container handles double scrolls */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
}

/* Background Grids */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at center, var(--soft-linen) 0%, #cbd0c4 100%);
    overflow: hidden;
}

.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(41, 120, 160, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 120, 160, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* ------------------------------------------
   PREMIUM STICKY HORIZONTAL TOP HEADER
   ------------------------------------------ */
.app-header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(1, 22, 56, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-brand img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(41,120,160,0.3));
}

.header-brand .tagline {
    font-size: 0.85rem;
    color: var(--muted-teal);
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.header-nav ul li a {
    color: rgba(238, 240, 235, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0;
}

.header-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--muted-teal);
    transition: width 0.3s ease;
}

.header-nav ul li a:hover,
.header-nav ul li a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(116, 165, 127, 0.5);
}

.header-nav ul li a:hover::after,
.header-nav ul li a.active::after {
    width: 100%;
}

/* Mobile Hamburger Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--soft-linen);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ------------------------------------------
   GOLDEN RATIO COLUMNS GRID
   ------------------------------------------ */
.golden-ratio-container {
    display: flex;
    width: 100vw;
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    overflow: hidden;
    position: relative;
}

/* LEFT SIDE: VISUAL REVOLVING GLOBE (38.2%) */
.visual-column {
    width: var(--visual-width);
    height: 100%;
    background: radial-gradient(circle at center, #012256 0%, #000c22 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible; /* Allows globe to bleed/overflow into content column */
    box-shadow: 15px 0 45px rgba(0, 0, 0, 0.45);
    z-index: 1; /* Stays beneath the translucent content column wrapper */
}

/* 3D Viewport wrapper with perspective for true Y-axis spatial rotation */
.globe-3d-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1600px;
    overflow: visible;
}

/* Outer HUD concentric decorative sweep scanner */
.hud-scanner-ring {
    position: absolute;
    width: 96vh;
    height: 96vh;
    right: -48vh;
    top: 50%;
    transform: translateY(-50%);
    border: 1px dashed rgba(41, 120, 160, 0.15);
    border-radius: 50%;
    pointer-events: none;
    animation: spinClockwise 45s linear infinite;
}

@keyframes spinClockwise {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ------------------------------------------
   MASSIVE 3D ROTATING DOT SPHERE GLOBE
   ------------------------------------------ */
.globe-3d-sphere {
    position: absolute;
    width: 90vh; /* Extends the whole height of the viewport */
    height: 90vh;
    right: -45vh; /* Overlaps exactly 50% of the sphere (25% total viewport) into right pane */
    top: calc(50% - 45vh); /* Robust vertical centering bypasses translateY overrides! */
    transform: rotateY(0deg);
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
    z-index: 5;
    pointer-events: none;
}

/* Shaded solid backdrop to give the dot sphere mass, volume and frosted glass refraction (Stays static) */
.globe-sphere-backdrop {
    position: absolute;
    width: 90vh; /* Extends the whole height of the viewport */
    height: 90vh;
    right: -45vh; /* Overlaps exactly 50% of the sphere (25% total viewport) into right pane */
    top: calc(50% - 45vh); /* Robust vertical centering */
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(41, 120, 160, 0.45) 0%, rgba(1, 22, 56, 0.95) 75%, #000c22 100%);
    box-shadow: 
        inset -60px -60px 120px rgba(0, 0, 0, 0.9),
        inset 25px 25px 60px rgba(255, 255, 255, 0.18),
        0 0 60px rgba(41, 120, 160, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 2; /* Sits directly behind the revolving 3D dot core */
}

/* Stylized geographic points placed dynamically inside the sphere boundary */
.globe-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--muted-teal);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(116, 165, 127, 0.8);
    transform-style: preserve-3d;
    /* Project dot coordinates onto 3D sphere surface at radius 42.5vh (half of 85vh) */
    transform: translate(-50%, -50%) rotateY(var(--ry)) rotateX(var(--rx)) translateZ(42.5vh);
    backface-visibility: visible;
}

/* Sourcing origin beacons */
.globe-dot.beacon-dot {
    width: 10px;
    height: 10px;
    background: var(--cerulean);
    box-shadow: 0 0 15px var(--cerulean), 0 0 5px #fff;
}

/* Sharjah FZE HQ Node */
.globe-dot.hub-dot {
    width: 14px;
    height: 14px;
    background: #fff;
    box-shadow: 0 0 25px var(--cerulean), 0 0 8px #fff;
    z-index: 10;
}

.beacon-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 8px var(--cerulean);
    white-space: nowrap;
}

/* ------------------------------------------
   FLYING DYNAMIC TELEMETRY CALLOUTS
   ------------------------------------------ */
.globe-flyout-box {
    position: absolute;
    top: 50%;
    /* Inactive State: Sits inside the right content pane (hidden) */
    left: 100%;
    transform: translate(120px, -50%) scale(0.9);
    width: 320px;
    background: rgba(1, 22, 56, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(41, 120, 160, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(41,120,160,0.25);
    color: var(--soft-linen);
    font-family: 'Share Tech Mono', monospace;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.3s, left 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

/* Active State: Flies smoothly from content pane onto the globe! */
.globe-flyout-box.active {
    opacity: 1;
    visibility: visible;
    left: 30%; /* Positioned directly on the visible left portion of the globe sphere */
    transform: translate(-50%, -50%) scale(1);
}

.flyout-header {
    font-size: 0.7rem;
    color: var(--muted-teal);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.flyout-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(41,120,160,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 0.4rem;
}

.flyout-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(238,240,229,0.85);
}

/* RIGHT SIDE: TRANS_LUCENT CONTENT COLUMN (61.8%) */
.scrollable-content-column {
    width: var(--content-width);
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: rgba(238, 240, 235, 0.82); /* Semi-translucent for overlaying globe */
    backdrop-filter: blur(15px); /* Premium frosted-glass look */
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    z-index: 2; /* Renders ON TOP of the visual-column globe to show translucent overlap */
    padding: 4rem 5rem 8rem 5rem;
}

.page-section {
    padding-bottom: 6rem;
    border-bottom: 1px solid rgba(1, 22, 56, 0.08);
    margin-bottom: 6rem;
}

.page-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 4rem;
}

/* ------------------------------------------
   TYPOGRAPHY & CONTENT STYLING
   ------------------------------------------ */
.title {
    font-size: 3.5rem;
    color: var(--prussian-blue);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    font-weight: 700;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--cerulean);
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-shadow: 0 1px 1px #fff;
}

p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: rgba(1, 22, 56, 0.85);
}

.highlight {
    color: var(--muted-teal);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background-color: var(--cerulean);
    color: var(--soft-linen);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    box-shadow: 0 6px 15px rgba(41, 120, 160, 0.15);
}

.btn:hover {
    background-color: var(--prussian-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(1, 22, 56, 0.2);
}

.btn-sm {
    padding: 0.6rem 1.3rem;
    font-size: 0.85rem;
}

/* Premium Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 22, 56, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--soft-linen);
    width: 90%;
    max-width: 780px;
    max-height: 80vh;
    border-radius: 20px;
    padding: 3.5rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 30px 70px rgba(1, 22, 56, 0.35);
    transform: scale(0.95) translateY(45px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.4rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--prussian-blue);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--cerulean);
}

/* 3D Dashboard Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 2.2rem;
    box-shadow: 0 10px 30px rgba(1, 22, 56, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 40px rgba(1, 22, 56, 0.05), 0 10px 20px rgba(41, 120, 160, 0.08);
    border-color: rgba(41, 120, 160, 0.25);
}

.product-image {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(1, 22, 56, 0.04);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.product-card h3 {
    font-size: 1.2rem;
    color: var(--prussian-blue);
    margin-bottom: 0.75rem;
}

/* Sourcing block */
.sourcing-block {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

/* Glassmorphic Inquiry Form */
.inquiry-form-container {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 20px 40px rgba(1, 22, 56, 0.03);
}

.inquiry-form-container h3 {
    font-size: 1.6rem;
    color: var(--prussian-blue);
    margin-bottom: 0.5rem;
}

.inquiry-form-container p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--prussian-blue);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(1, 22, 56, 0.15);
    background: rgba(255, 255, 255, 0.8);
    color: var(--prussian-blue);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--cerulean);
    background: #fff;
    box-shadow: 0 0 10px rgba(41, 120, 160, 0.15);
}

.form-group.full-width {
    grid-column: span 2;
}

/* Contact layout specs */
.contact-card-full {
    grid-column: 1 / -1;
    min-height: auto;
}

.contact-card-inner {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

.contact-card-visual {
    flex: 1;
    max-width: 40%;
}

.contact-card-visual .product-image {
    margin-bottom: 0;
    height: 180px;
}

.contact-card-info {
    flex: 1.5;
}

/* Disclaimers caution banner */
.disclaimer-box {
    font-size: 0.85rem;
    color: rgba(1, 22, 56, 0.7);
    background: rgba(255, 255, 255, 0.4);
    border-left: 4px solid var(--muted-teal);
    padding: 1.75rem;
    border-radius: 8px;
    margin-top: 3.5rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.disclaimer-box h4 {
    color: var(--muted-teal);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* ------------------------------------------
   RESPONSIVE LAYOUT MATRIX
   ------------------------------------------ */
@media (max-width: 1024px) {
    .app-header {
        padding: 0 2rem;
    }
    .scrollable-content-column {
        padding: 3rem 2.5rem 6rem 2.5rem;
    }
    /* Mobile Hamburger Trigger & Animated States */
    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Glassmorphic Sliding Dropdown Drawer Navigation (ID-specific to ensure override) */
    #headerNav {
        display: none !important;
    }

    #headerNav.active {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(1, 22, 56, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 1050 !important;
    }

    #headerNav ul {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2.2rem !important;
        display: flex !important;
    }

    #headerNav ul li a {
        font-size: 1.25rem !important;
        letter-spacing: 2px !important;
    }

    /* Inquiry Form Mobile Graceful Collapse */
    .inquiry-form-container {
        padding: 1.75rem 1.5rem;
        margin-top: 2rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .form-group.full-width {
        grid-column: span 1;
    }

    .golden-ratio-container {
        flex-direction: row !important;
        height: calc(100vh - var(--header-height)) !important;
        overflow: hidden !important;
    }
    
    /* Completely Eliminate Visual Globe Column on Mobile / Tablets */
    .visual-column {
        display: none !important;
    }
    
    /* Let the Content Column Occupy the Entire Width and Handle Scrolling */
    .scrollable-content-column {
        width: 100% !important;
        height: 100% !important;
        overflow-y: auto !important;
        background: var(--soft-linen) !important;
        padding: 2.5rem 1.5rem 6rem 1.5rem !important;
    }
    
    .app-header {
        position: fixed;
    }
}

@media (max-width: 600px) {
    .app-header {
        padding: 0 1.5rem;
    }
    .header-brand .tagline {
        display: none; /* Hide tagline on micro screens */
    }

    .title {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1.15rem;
        margin-bottom: 1.75rem;
    }
    .contact-card-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
    .contact-card-visual {
        max-width: 100%;
        width: 100%;
    }
}
