/* --- CSS Variables & Design Tokens (Light AI Aesthetic) --- */
:root {
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #1a1a24;
    --text-secondary: #5a5a6e;
    
    /* Tech Accents (Blue & Purple for Light Mode) */
    --neon-cyan: #0984e3; /* Deep tech blue */
    --neon-purple: #6c5ce7; /* Deep tech purple */
    
    /* Fonts & Spacing */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-main: 'Inter', sans-serif;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

canvas#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 1; /* Slightly higher opacity for light mode */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* --- Typography --- */
h1, h2, h3, .logo, .btn {
    font-family: var(--font-heading);
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-primary);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--neon-purple);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin-bottom: 30px;
}

.typewriter-text {
    color: var(--neon-cyan);
}

.cursor {
    color: var(--neon-purple);
    animation: blink 1s step-end infinite;
}

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

/* --- Buttons --- */
.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-glow {
    background: var(--neon-cyan);
    color: #fff;
    box-shadow: 0 8px 20px rgba(9, 132, 227, 0.25);
}

.btn-glow:hover {
    background: #0773c7;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(9, 132, 227, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}
@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* --- Projects Section --- */
.projects {
    padding: 120px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 60px;
    color: var(--text-primary);
    display: inline-block;
    border-bottom: 3px solid var(--neon-purple);
    padding-bottom: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

.project-card {
    text-decoration: none;
    position: relative;
    background: var(--surface-color);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    padding: 40px 30px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform-style: preserve-3d;
    transition: box-shadow 0.3s, border-color 0.3s;
    border-radius: 12px;
}

.project-card:hover {
    border-color: rgba(9, 132, 227, 0.2);
    box-shadow: 0 15px 40px rgba(9, 132, 227, 0.1);
}

.project-content {
    transform: translateZ(30px); /* Pops content out on tilt */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tags span {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    background: rgba(9, 132, 227, 0.08);
    border: 1px solid rgba(9, 132, 227, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
}

.project-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 15px;
    margin-top: auto;
}

.view-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    font-weight: 700;
    transition: color 0.3s;
}

.project-card:hover .view-link {
    color: var(--neon-purple);
}

/* --- Capabilities Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.skill-group h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--neon-cyan);
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.skill-tags span {
    background: var(--surface-color);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}
.skill-tags span:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-2px);
}

/* --- Experience Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(0,0,0,0.05);
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-item {
    padding: 20px 0 20px 60px;
    position: relative;
}
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--neon-purple);
    border-radius: 50%;
    left: 13px;
    top: 25px;
    z-index: 1;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.4);
}
.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}
.timeline-company {
    display: block;
    color: var(--neon-cyan);
    font-weight: 600;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
.timeline-content ul {
    list-style-type: none;
    color: var(--text-secondary);
}
.timeline-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}
.timeline-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
}

/* --- Footer --- */
.footer {
    padding: 100px 0 40px;
    position: relative;
    z-index: 10;
}

.footer-info {
    text-align: center;
    margin-bottom: 80px;
}

.footer-info h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.mt-4 {
    margin-top: 20px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { margin: 0 !important; margin-bottom: 15px !important; text-align: center; }
    
    /* Reduce padding for mobile */
    .skills, .experience, .projects, .footer, .detail-hero { padding: 60px 0 !important; }
    
    /* Adjust timeline padding */
    .timeline-item { padding: 15px 0 15px 40px; }
    .timeline::after { left: 10px; }
    .timeline-dot { left: 3px; top: 20px; width: 14px; height: 14px; }
}
