/* -----------------------------------------------------------
   1. VARIABLES & THEME CONFIGURATION
----------------------------------------------------------- */
:root {
    /* Core Palette - "Cyberpunk/AI" Aesthetic */
    --bg-dark: #0a0a0e;       /* Almost black */
    --bg-card: #13131f;       /* Dark Blue-Grey */
    --accent-primary: #00f2ea; /* Neon Cyan */
    --accent-secondary: #ff0055; /* Neon Pink/Red (for contrast) */
    
    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace; /* For code snippets */

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(10px);
    --glow: 0 0 20px rgba(0, 242, 234, 0.15);
}

/* -----------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
----------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
h1 { font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -2px; } /* Responsive text size */
h2 { font-size: 2.5rem; color: var(--text-main); }
h3 { font-size: 1.5rem; }
p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; max-width: 65ch; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* Utility Classes */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.highlight { color: var(--accent-primary); }
.text-gradient {
    background: linear-gradient(90deg, var(--accent-primary), #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -----------------------------------------------------------
   3. NAVIGATION BAR (Sticky & Glassy)
----------------------------------------------------------- */
nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s;
    background: rgba(10, 10, 14, 0.8); /* Semi-transparent */
    backdrop-filter: var(--glass-blur); /* The Blur Effect */
    border-bottom: 1px solid var(--glass-border);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.5rem; font-weight: 700; font-family: var(--font-heading); letter-spacing: -0.5px; }
.logo-symbol { color: var(--accent-primary); margin-right: 5px; }

.nav-links { display: flex; gap: 40px; }
.nav-item { font-size: 0.9rem; font-weight: 500; position: relative; }
.nav-number { color: var(--accent-primary); font-family: var(--font-mono); margin-right: 5px; font-size: 0.8rem; }

/* Hover Line Effect */
.nav-item::after {
    content: '';
    position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0;
    background: var(--accent-primary);
    transition: width 0.3s;
}
.nav-item:hover::after, .nav-item.active::after { width: 100%; }

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.bar { width: 25px; height: 2px; background-color: var(--text-main); }

/* -----------------------------------------------------------
   4. COMPONENT: BUTTONS
----------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Primary Button (Neon Fill) */
.btn-primary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}
.btn-primary::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--accent-primary);
    transition: 0.3s;
    z-index: -1;
}
.btn-primary:hover { color: var(--bg-dark); box-shadow: var(--glow); }
.btn-primary:hover::before { width: 100%; }

/* -----------------------------------------------------------
   5. COMPONENT: CARDS (Projects & Skills)
----------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin: 50px 0; }

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.card:hover {
    transform: translateY(-10px); /* Lift up effect */
    border-color: var(--accent-primary);
}

.card h3 { color: var(--text-main); margin-bottom: 10px; }
.card-category { font-family: var(--font-mono); color: var(--accent-primary); font-size: 0.8rem; margin-bottom: 15px; display: block; }

/* Tech Stack Tags */
.tech-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 4px 10px;
    margin: 5px 5px 0 0;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    color: var(--text-muted);
}

/* -----------------------------------------------------------
   6. HERO SECTION ANIMATIONS
----------------------------------------------------------- */
.hero {
    min-height: 90vh;
    display: flex; align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content { z-index: 2; position: relative; }

/* The "Hello" intro text */
.intro-mono { 
    font-family: var(--font-mono); 
    color: var(--accent-primary); 
    margin-bottom: 20px; 
    display: block;
}

/* Neural Network Canvas */
#particles-canvas {
    position: fixed; /* Stays in place when scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Puts it behind all content */
    background: var(--bg-dark); /* Fallback background */
}

/* -----------------------------------------------------------
   7. FOOTER
----------------------------------------------------------- */
footer {
    text-align: center;
    padding: 50px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    
    /* Show Hamburger */
    .menu-toggle { display: flex; z-index: 1001; }
    
    /* Hide Nav Links by default */
    .nav-links { 
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: 70%;
        background-color: #112240; /* Darker Drawer */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%); /* Hidden to the right */
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -10px 0 30px -10px rgba(0,0,0,0.5);
    }
    
    /* Show Nav Links when active */
    .nav-links.active { transform: translateX(0); }
    
    .nav-item { margin: 20px 0; font-size: 1.2rem; }
}

/* Typewriter Cursor Animation */
.cursor {
    display: inline-block;
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* -----------------------------------------------------------
   8. EXPERIENCE TIMELINE (New Addition)
----------------------------------------------------------- */
.timeline {
    position: relative;
    padding-left: 30px; /* Space for the line */
    border-left: 2px solid rgba(0, 242, 234, 0.2); /* The faint cyan line */
}

.timeline-item {
    position: relative;
    margin-bottom: 50px; /* Space between jobs */
}

/* The Glowing Dot */
.timeline-dot {
    position: absolute;
    left: -36px; /* Align perfectly on the line */
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary); /* The NEON GLOW */
    transition: 0.3s;
}

/* Make dot fill up on hover */
.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* The Glass Card for Content */
.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px 25px;
    border-radius: 8px;
    transition: 0.3s;
}

.timeline-content:hover {
    transform: translateX(10px); /* Subtle slide right */
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--text-main);
    font-size: 1.2rem;
}

.timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
}