:root {
    /* Color Palette - Deep Space & Neon */
    --bg-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --surface-color-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00f2ff;
    /* Cyan Neon */
    --accent-secondary: #7000ff;
    /* Purple Neon */
    --gradient-primary: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --backdrop-blur: blur(10px);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.lead {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: var(--glass-border);
    padding: var(--spacing-sm) 0;
    transition: var(--transition-medium);
}

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

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Hero Section */
#section-intro {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.1) 0%, transparent 50%);
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

/* Cards (Glassmorphism) */
.card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: var(--transition-fast);
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow);
}

/* Timeline (Grid Layout) */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.timeline-item {
    position: relative;
    padding-left: var(--spacing-md);
    border-left: 2px solid var(--surface-color-hover);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    display: block;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-color);
    border: var(--glass-border);
}

.project-content {
    padding: var(--spacing-md);
}

/* Contact Section */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.social-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented if needed, or simple stack */
    }

    /* Simple mobile nav for now */
    .navbar .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-links {
        display: flex;
        gap: var(--spacing-sm);
        font-size: 0.9rem;
    }
}