:root {
    --bg-dark: #0a0f1c;
    --bg-card: rgba(30, 41, 59, 0.4);
    --primary: #06b6d4;
    --secondary: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 80px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Background FX --- */
.animated-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: radial-gradient(circle at 50% 50%, #111827 0%, #020617 100%);
}
.map-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 90%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 90%);
}
.particle {
    position: absolute; background: var(--primary); border-radius: 50%; opacity: 0.4; pointer-events: none;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    
    /* Default State: Visible */
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto; 
}

/* Scrolled State: Hidden */
nav.scrolled-hidden {
    background: transparent; 
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

/* Hide Links when scrolled */
nav.scrolled-hidden ul {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none; 
}

/* Hover State: Reveal */
nav:hover, nav.menu-active {
    background: rgba(10, 15, 28, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: var(--glass-border) !important;
    pointer-events: auto !important;
}

nav:hover ul, nav.menu-active ul {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important; 
}

/* Links Styling */
nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
    transition: all 0.4s ease;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}
nav a:hover { color: var(--primary); }

/* --- NORTH ARROW --- */
.nav-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 1003;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.north-compass {
    position: relative; width: 45px; height: 45px;
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.3s ease;
}
.north-compass:hover { transform: scale(1.1); }
.compass-ring {
    position: absolute; width: 100%; height: 100%;
    border: 2px dashed var(--primary); border-radius: 50%;
    animation: spin-slow 10s linear infinite; opacity: 0.7;
}
.compass-n {
    position: absolute; top: -8px; font-family: var(--font-heading);
    font-size: 0.7rem; font-weight: 800;
    color: var(--primary); background: var(--bg-dark); padding: 0 2px; z-index: 2;
}
.compass-needle {
    width: 8px; height: 28px;
    background: linear-gradient(to bottom, #ef4444 50%, #f8fafc 50%);
    clip-path: polygon(50% 0%, 0% 50%, 50% 100%, 100% 50%);
    z-index: 1; transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
.nav-brand:hover .compass-needle { transform: rotate(360deg); }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- MOBILE BURGER --- */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    pointer-events: auto;
}


/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    nav { height: 70px; }
    .mobile-toggle { display: block; }
      nav ul.mobile-visible {
        pointer-events: auto !important;
    }
    /* Mobile Menu */
    nav ul {
        position: fixed; top: 0; left: 0; width: 250px; height: 100vh;
        background: rgba(10, 15, 28, 0.98);
        backdrop-filter: blur(15px);
        border-right: 1px solid rgba(6, 182, 212, 0.2);
        
        display: flex; flex-direction: column;
        padding-top: 100px; padding-left: 2rem; gap: 2rem;
        
        /* Hidden State */
        transform: translateX(-100%);
        opacity: 1; 
        pointer-events: auto;
        z-index: 1001;
        
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Open State */
    nav ul.mobile-visible { transform: translateX(0); }
    
    /* Force Nav Visible when Menu Open */
    nav.menu-active { background: rgba(10, 15, 28, 0.95) !important; }
    nav.menu-active ul { transform: translateX(0) !important; opacity: 1 !important; }
}

/* --- SECTIONS & CONTENT --- */
section { padding: 6rem 8%; max-width: 1400px; margin: 0 auto; }
h2 { font-family: var(--font-heading); font-size: 2.5rem; text-align: center; margin-bottom: 3rem; color: var(--text-main); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-content h1 { font-family: var(--font-heading); font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; margin-bottom: 1rem; color: #fff; }
.tagline { font-size: 1.2rem; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; }
.subtitle { color: var(--text-muted); max-width: 700px; margin: 0 auto 3rem; }

/* Buttons */
.cta-button, .form-button {
    display: inline-block; padding: 1rem 2.5rem; background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff; text-decoration: none; font-weight: 700; border-radius: 50px; transition: 0.3s;
    margin-top: 1rem;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(6, 182, 212, 0.5); }

/* Cards */
.gis-content, .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.gis-feature, .skill-card, .contact-container {
    background: var(--bg-card); backdrop-filter: blur(10px); border: var(--glass-border); border-radius: 16px; padding: 2rem;
}
.gis-feature:hover, .skill-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.gis-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.gis-feature h4, .skill-card h3 { color: var(--primary); margin-bottom: 0.5rem; font-family: var(--font-heading); }
.skill-card li { color: var(--text-muted); list-style: none; padding-left: 1rem; position: relative; margin-bottom: 0.5rem; }
.skill-card li::before { content: '▹'; position: absolute; left: 0; color: var(--primary); }

/* Contact & Footer */
.contact-container { text-align: center; max-width: 700px; margin: 0 auto; }
footer { text-align: center; padding: 3rem; background: #020617; color: var(--text-muted); border-top: var(--glass-border); }

