:root {
    /* Color Palette */
    --bg-base: #0a0a0e;
    --bg-surface: #14141d;
    --bg-surface-elevated: #1e1e2d;
    
    --text-primary: #f2f2f7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-1: #6366f1; /* Indigo */
    --accent-2: #ec4899; /* Pink */
    --accent-3: #8b5cf6; /* Purple */
    
    --gradient-primary: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    --gradient-glow: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(236,72,153,0.2), rgba(139,92,246,0.2));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    
    /* Borders & Shadows */
    --radius-md: 12px;
    --radius-lg: 24px;
    --border-light: rgba(255, 255, 255, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Background Blobs for Modern Feel */
.blob-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}
.blob-bg-2 {
    top: auto;
    bottom: -10%;
    left: auto;
    right: -10%;
    animation-direction: reverse;
    opacity: 0.1;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Typography styles */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 10, 14, 0.6);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-lg);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span {
    color: var(--accent-2);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}
.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}
.nav-links li a:hover, .nav-links li a.active {
    color: var(--text-primary);
}
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}
.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

/* Section Common */
.section {
    min-height: 100vh;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}
.section-title .dot {
    color: var(--accent-1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}
.hero-content {
    flex: 1;
}
.greeting {
    font-family: var(--font-mono);
    color: var(--accent-1);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}
.name {
    font-size: 5rem;
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.roles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.role {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.role-separator {
    color: var(--text-muted);
}
.bio {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: var(--space-lg);
}
.hero-cta {
    display: flex;
    gap: var(--space-md);
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.image-placeholder {
    width: 400px;
    height: 400px;
    border-radius: 30%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.geometric-shape {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.15;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(1.1); opacity: 0.25; }
}

/* Timeline/Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--space-xl);
}
.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-1);
    border: 4px solid var(--bg-base);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}
.timeline-content {
    background: var(--bg-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(99, 102, 241, 0.4);
}
.timeline-date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-2);
    margin-bottom: var(--space-sm);
    background: rgba(236, 72, 153, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}
.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}
.timeline-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    font-style: italic;
}
.timeline-text {
    color: var(--text-muted);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}
.project-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-glass);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-card:hover::before {
    opacity: 1;
}
.project-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.project-category {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-3);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.project-title {
    font-size: 1.6rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}
.project-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    flex: 1;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.tag {
    font-size: 0.85rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}
.skill-category {
    background: var(--bg-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-glass);
}
.skill-category-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.skill-category-title::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.skill-chip {
    padding: 0.5rem 1.2rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}
.skill-chip:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: var(--space-lg) 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    background: rgba(10, 10, 14, 0.8);
}
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-lg);
}
.footer-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-2);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: calc(var(--nav-height) + var(--space-xl));
    }
    .hero-cta {
        justify-content: center;
    }
    .roles {
        justify-content: center;
    }
    .bio {
        margin: 0 auto var(--space-lg);
    }
    .image-placeholder {
        width: 300px;
        height: 300px;
    }
    .nav-links {
        display: none; /* In a real app, maybe a hamburger menu here, but keeping it simple layout for mobile */
    }
    .nav-content {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .name { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
    
    .timeline::before {
        left: 15px;
    }
    .timeline-item {
        padding-left: 45px;
    }
    .timeline-dot {
        left: 6px;
        width: 16px;
        height: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
    }
}
