:root {
    --bg-dark: #0a192f;
    --bg-card: #112240;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --accent: #64ffda;
    
    --font-sans: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    
    --max-width: 1000px;
    --nav-height: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for the fixed header */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    /* FIX: Added padding-top so the Fixed Navbar doesn't cover content */
    padding-top: 80px; 
    padding-bottom: 80px;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- Typography --- */
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); font-size: 0.85rem; }
.small { font-size: 0.75rem; }
.text-center { text-align: center; }

/* --- Navbar (FIXED / FLOATING) --- */
.navbar {
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(2,12,27,0.7);
}

.nav-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.logo { 
    font-weight: 700; 
    font-size: 1.4rem; 
    letter-spacing: 1px; 
    color: var(--accent);
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.85rem; color: var(--text-main); font-family: var(--font-mono); }
.nav-links a:hover { color: var(--accent); }

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    padding: 8px 16px;
    border-radius: 4px;
    margin-left: 10px;
}
.btn-outline:hover { background: rgba(100, 255, 218, 0.1); }

/* --- Hamburger --- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2000; /* Higher than mobile menu */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--accent);
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 25px;
}

section { 
    padding: 5px 0;
}

/* --- Hero --- */
.hero { 
    min-height: 80vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    padding-top: 0;
}

h1 {
    font-size: clamp(40px, 8vw, 70px);
    font-weight: 700;
    color: #e6f1ff;
    line-height: 1.1;
    margin-bottom: 10px;
}

.subtitle {
    font-size: clamp(28px, 5vw, 60px);
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
}

.bio {
    max-width: 500px;
    font-size: 1rem;
    color: var(--text-muted);
}

/* --- Components --- */
.section-title {
    display: flex;
    align-items: center;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: #e6f1ff;
    margin-bottom: 30px;
    font-weight: 700;
    white-space: nowrap; 
    flex-shrink: 0;
}

.section-title::after {
    content: "";
    display: block;
    flex-grow: 1;
    height: 1px;
    background: #233554;
    margin-left: 20px;
    min-width: 20px;
    max-width: 300px;
}

/* --- Experience Cards --- */
.job-card {
    margin-bottom: 35px;
    padding: 20px; 
    border-radius: 4px;
    transition: 0.2s;
}

.job-card:hover { background-color: #112240; }

.job-header h4 { font-size: 1.2rem; color: #e6f1ff; font-weight: 600; margin-bottom: 5px; }
.small-role { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 5px; font-style: italic; }
.at { color: var(--accent); }
.date { display: block; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 10px; }

.job-card p { color: var(--text-muted); margin-bottom: 15px; max-width: 700px; font-size: 0.95rem; }

.tech-stack { display: flex; gap: 10px; flex-wrap: wrap; }
.tech-stack span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(100, 255, 218, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

/* --- Skills Grid --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 30px;
}

.skill-column h4 { 
    margin-bottom: 15px; 
    color: #e6f1ff; 
    font-size: 1rem; 
}

.skill-column ul li {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}
.skill-column ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Contact Section --- */
.big-title { 
    font-size: clamp(35px, 5vw, 50px); 
    color: #e6f1ff; 
    font-weight: 700; 
    margin: 15px 0; 
}
.bio-narrow { max-width: 500px; margin: 0 auto 40px auto; color: var(--text-muted); }

.btn-main {
    display: inline-block;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 15px 25px;
    font-size: 0.9rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* --- Floating Footer (FIXED) --- */
footer {
    position: fixed; /* Must be fixed to float */
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 900;
}

.socials a { 
    margin-right: 20px; 
    font-family: var(--font-mono); 
    font-size: 0.85rem; 
    color: var(--text-muted);
}
.socials a:hover { color: var(--accent); }

/* --- Mobile Logic --- */
@media (max-width: 768px) {
    /* SCROLL FIX: Extra padding so content isn't hidden behind the taller mobile footer */
    body { padding-bottom: 160px; }

    .hamburger { display: block; }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* MOBILE MENU DRAWER */
    .nav-links {
        position: fixed;
        left: 100%;
        top: 0;
        flex-direction: column;
        background-color: #112240;
        width: 100%;
        height: 100vh;
        
        /* FIX: Center content perfectly */
        display: flex;
        justify-content: center;
        align-items: center; /* Fixes "fucked" alignment */
        
        text-align: center;
        transition: 0.3s;
        z-index: 1500;
        gap: 25px; /* Clean gap between links */
        padding: 0; /* Remove default padding */
        margin: 0;
    }

    .nav-links.active { left: 0; }
    
    .nav-links li { margin: 10px 0; }
    .nav-links a { font-size: 1.3rem; }
    
    /* Center the button in the drawer */
    .btn-outline { 
        margin-left: 0; 
        display: inline-block; 
        margin-top: 15px; 
    }

    /* FOOTER FIX: Centered and stacked nicely */
    footer {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .socials a { margin: 0 10px; }
}