/* =========================================
   1. CORE VARIABLES & SETUP
========================================= */
:root {
    /* Colors */
    --bg-dark: #050a14;
    --bg-panel: #0a0f20;
    --primary-cyan: #00F0FF;
    --primary-dim: rgba(0, 240, 255, 0.15);
    --primary-glow: rgba(0, 240, 255, 0.4);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    /* Glassmorphism */
    --glass-bg: rgba(20, 30, 45, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;

    /* Typography */
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --nav-height: 80px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor (Hidden on Touch Devices by default) */
#cursor, #cursor-blur { display: none; }

/* Only show custom cursor on devices that support hover (Desktop) */
@media (hover: hover) and (pointer: fine) {
    * { cursor: none; }
    #cursor, #cursor-blur { display: block; position: fixed; pointer-events: none; border-radius: 50%; z-index: 9999; }
    #cursor { width: 8px; height: 8px; background: var(--primary-cyan); mix-blend-mode: difference; transition: transform 0.1s; }
    #cursor-blur { width: 40px; height: 40px; border: 1px solid var(--primary-cyan); transition: transform 0.2s, opacity 0.2s; }
    
    /* Hover States for Cursor */
    a:hover ~ #cursor-blur, button:hover ~ #cursor-blur { transform: scale(1.5); background: var(--primary-dim); border-color: transparent; }
}

/* =========================================
   2. PRELOADER
========================================= */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #020408;
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
}
.spinner { animation: rotate 2s linear infinite; width: 50px; height: 50px; }
.path { stroke: var(--primary-cyan); stroke-linecap: round; animation: dash 1.5s ease-in-out infinite; }
.loading-text { margin-top: 20px; font-family: var(--font-head); color: var(--primary-cyan); letter-spacing: 2px; font-size: 0.85rem; }

@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash { 0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; } }

/* =========================================
   3. BACKGROUND & UTILITIES
========================================= */
#ocean-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.6; }
.bubbles-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05; z-index: -1; pointer-events: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Section Styling */
.panel { padding: 80px 0; position: relative; }
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 12px;
}

/* Typography Utilities */
.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3rem); /* Fluid sizing */
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.dot { color: var(--primary-cyan); }
.section-subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 40px; }

/* =========================================
   4. NAVIGATION (Mobile Optimized)
========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    height: var(--nav-height);
    display: flex; align-items: center;
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: var(--container-width); margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 10px; z-index: 102; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: 1px; }
.highlight { color: var(--primary-cyan); }

/* Mobile Menu Trigger (Hamburger) */
.menu-trigger { display: block; z-index: 102; cursor: pointer; }
.hamburger span {
    display: block; width: 25px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s;
}

/* Navigation Links - Mobile State (Hidden by default) */
.nav-links {
    position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
    background: #0a0f1a;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
    transition: 0.4s ease-in-out;
    z-index: 101;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
/* Class to add via JS to open menu */
.nav-links.active { right: 0; }

.nav-item {
    text-decoration: none; font-family: var(--font-head); font-size: 1.5rem; color: #fff;
    opacity: 0.8; transition: 0.3s;
}
.nav-item span { color: var(--primary-cyan); font-size: 1rem; margin-right: 10px; }
.nav-item:hover { color: var(--primary-cyan); opacity: 1; letter-spacing: 2px; }

/* Desktop Navigation Override */
@media (min-width: 992px) {
    .menu-trigger { display: none; }
    .nav-links {
        position: static; flex-direction: row; height: auto; width: auto; background: transparent; box-shadow: none; gap: 30px;
    }
    .nav-item { font-size: 0.9rem; }
    .nav-item:hover { letter-spacing: normal; }
}

/* =========================================
   5. HERO SECTION (UPDATED)
========================================= */
.hero-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    justify-content: center; /* Centers content vertically */
    align-items: center;     /* Centers content horizontally */
    position: relative;      /* Needed to pin the scroll prompt to bottom */
    padding: 0 20px;         /* Safety padding for mobile */
    /* Remove padding-top: 100px so it centers perfectly mathematically */
}

.hero-grid {
    display: flex; 
    flex-direction: column; 
    gap: 40px; 
    width: 100%;
    max-width: var(--container-width); /* Ensures it doesn't get too wide */
    margin: 0 auto;
}

.label-tag {
    font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 2px;
    color: var(--primary-cyan); padding: 5px 12px;
    border: 1px solid var(--primary-dim); background: rgba(0,240,255,0.05);
    display: inline-block; margin-bottom: 20px;
}

.glitch-header {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
    line-height: 1.1; margin-bottom: 20px;
}

.hero-desc { 
    font-size: 1rem; 
    color: var(--text-muted); 
    margin-bottom: 30px; 
    max-width: 500px; 
}

.cta-group { display: flex; flex-direction: column; gap: 15px; width: 100%; }

.btn-primary, .btn-secondary {
    padding: 15px 30px; font-family: var(--font-head); font-weight: 700;
    border: none; transition: all 0.3s; text-align: center;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    cursor: pointer; /* Added cursor pointer */
}

.btn-primary { background: var(--primary-cyan); color: #000; box-shadow: 0 4px 20px rgba(0,240,255,0.2); }
.btn-primary:hover { background: #fff; box-shadow: 0 4px 25px rgba(0,240,255,0.4); transform: translateY(-2px); }

.btn-secondary { background: transparent; border: 1px solid var(--primary-cyan); color: var(--primary-cyan); }
.btn-secondary:hover { background: var(--primary-dim); color: #fff; }

/* --- SCROLL PROMPT STYLING (NEW) --- */
.scroll-prompt {
    position: absolute;
    bottom: 30px; /* Pins it to the bottom */
    left: 50%;
    transform: translateX(-50%); /* Centers it horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-prompt span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--primary-cyan);
    font-family: var(--font-head);
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 1px solid var(--primary-cyan);
    border-radius: 12px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 6px;
    background: var(--primary-cyan);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* --- RESPONSIVE LAYOUT --- */
/* Hero Stats - Hidden on Small Mobile */
.hero-stats-card { display: none; }

@media (min-width: 768px) {
    .cta-group { flex-direction: row; }
    .btn-primary, .btn-secondary { width: auto; }
    
    .hero-stats-card {
        display: block;
        width: 100%; max-width: 400px; margin: 0 auto;
    }
    
    /* Center the card header text */
    .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; font-family: var(--font-head); color: var(--primary-cyan); }
    .pulse-dot { width: 8px; height: 8px; background: #0f0; border-radius: 50%; box-shadow: 0 0 8px #0f0; animation: pulse 1.5s infinite; }
    .stat-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 5px; }
    .stat-label { color: var(--text-muted); }
    .stat-val { color: #fff; font-weight: 700; }
    .mini-graph { width: 100%; height: 60px; margin-top: 15px; }
}

@media (min-width: 1024px) {
    .hero-grid { 
        display: grid; 
        grid-template-columns: 1.5fr 1fr; /* Text on left, Stats on right */
        align-items: center; 
    }
    .hero-stats-card { margin: 0; }
}

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
/* =========================================
   6. TIMELINE (About)
========================================= */
.timeline-container {
    position: relative; padding: 20px 0;
    border-left: 2px solid var(--glass-border); margin-left: 10px;
}
.timeline-item { margin-bottom: 40px; position: relative; padding-left: 30px; }
.timeline-marker {
    position: absolute; left: -6px; top: 0; width: 10px; height: 10px;
    background: var(--primary-cyan); border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-cyan);
}
.year { font-family: var(--font-head); color: var(--primary-cyan); font-weight: 700; margin-bottom: 5px; }
.timeline-content h3 { font-size: 1.2rem; margin-bottom: 10px; color: #fff; }
.timeline-content p { color: var(--text-muted); font-size: 0.9rem; }

@media (min-width: 768px) {
    .timeline-container { border-left: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-left: 0; }
    .timeline-item { padding-left: 0; border-top: 2px solid var(--glass-border); padding-top: 20px; }
    .timeline-marker { left: 0; top: -6px; }
}

/* =========================================
   7. SERVICES GRID
========================================= */
.services-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Auto-stacking */
    gap: 25px; margin-top: 40px;
}
.service-card {
    transition: transform 0.3s, border-color 0.3s;
    display: flex; flex-direction: column; align-items: flex-start;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--primary-cyan); }
.card-icon { font-size: 2.5rem; margin-bottom: 15px; }
.service-card h3 { font-family: var(--font-head); margin-bottom: 10px; font-size: 1.3rem; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.read-more { font-size: 0.8rem; font-weight: 700; text-decoration: none; color: var(--primary-cyan); letter-spacing: 1px; display: inline-flex; align-items: center; }

/* =========================================
   8. NETWORK MAP
========================================= */
.network-panel { min-height: 400px; }
.network-map {
    position: relative; width: 100%; height: 300px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg') no-repeat center center;
    background-size: contain; opacity: 0.4;
    margin-top: 40px;
}
.marker {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0; /* hide inline text spacing */
}

/* Location pin (circle) */
.marker::before {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-cyan);
    display: block;
}

/* Pin pointer (triangle) */
.marker::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--primary-cyan);
    margin-top: -2px;
}

/* Location name label */
.marker span {
    margin-top: 6px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(0,0,0,0.75);
    color: #fff;
    border-radius: 3px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* =========================================
   9. NEW CONTACT SECTION (Mobile Optimized)
========================================= */
.contact-panel { padding-bottom: 100px; }

/* Grid Layout for Contact Cards */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to stack 1 column */
    gap: 20px;
    margin-top: 40px;
}

/* Individual Contact Card Styling */
.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Hover effect for Desktop */
@media (hover: hover) {
    .contact-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary-cyan);
        background: rgba(255, 255, 255, 0.05);
    }
}

.contact-card h4 {
    font-family: var(--font-head); font-size: 1.1rem;
    margin-bottom: 10px; color: #fff; letter-spacing: 1px;
}

.contact-card p {
    color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px;
    line-height: 1.5; flex-grow: 1;
}

/* Circular Icon Box */
.icon-box {
    width: 50px; height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px; color: var(--primary-cyan);
}
.icon-box svg { width: 24px; height: 24px; fill: currentColor; }

/* Buttons inside cards */
.action-btn {
    display: inline-block; padding: 12px 0; width: 100%;
    border-radius: 50px; text-decoration: none;
    font-weight: 600; font-size: 0.9rem;
    transition: all 0.3s ease; letter-spacing: 0.5px;
}

/* Tablet & Desktop Adjustments for Contact */
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .contact-card { padding: 40px 30px; }
    .icon-box { width: 60px; height: 60px; margin-bottom: 20px; }
    .icon-box svg { width: 28px; height: 28px; }
}

/* =========================================
   10. FOOTER
========================================= */
footer {
    padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center; background: #020408;
}
.footer-logo { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.copyright { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
