:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.06);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent: #10b981; /* Glowing green */
    --accent-glow: rgba(16, 185, 129, 0.4);
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background effects */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.5;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
}

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

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2em;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}

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

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.icon {
    width: 20px;
    height: 20px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-links svg {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-links a:hover svg {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-3px);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.primary-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

.abstract-shape {
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, var(--accent-glow), var(--accent-blue-glow));
    animation: morph 8s ease-in-out infinite;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.inner-shape {
    position: absolute;
    top: 10%; left: 10%; right: 10%; bottom: 10%;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

.orbiting-dot {
    position: absolute;
    width: 15px; height: 15px;
    background: var(--accent);
    border-radius: 50%;
    top: -5px; left: 50%;
    box-shadow: 0 0 15px var(--accent);
    animation: orbit 10s linear infinite;
    transform-origin: 50% 150px;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    background: var(--card-hover);
    border-color: rgba(255,255,255,0.15);
}

/* Sections */
section {
    padding: 6rem 0;
}

.about-card p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-card strong {
    color: var(--text-primary);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--card-border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 15px;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content {
    padding: 2rem;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.job-header h4 {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
}

.job-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.job-meta .date {
    font-weight: 600;
    color: var(--text-primary);
}

.job-bullets {
    list-style-type: none;
}

.job-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.job-bullets li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.condensed-roles {
    cursor: pointer;
}

.condensed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.condensed-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.condensed-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.condensed-body.open {
    max-height: 500px;
    margin-top: 1.5rem;
    opacity: 1;
}

.condensed-header.open .chevron {
    transform: rotate(180deg);
}

.early-role {
    padding: 1rem 0;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.early-role strong {
    color: var(--text-primary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    padding: 2rem;
}

.skill-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.skill-icon svg {
    width: 24px;
    height: 24px;
}

.skill-category h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.skill-category p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Cards Grid (Talks) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.talk-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.talk-card:hover {
    transform: translateY(-5px);
}

.tag {
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pub-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.talk-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.talk-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.talk-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Flex utils */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--card-border);
    margin-top: 4rem;
}

.text-center {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up {
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile nav */
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .location {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-meta {
        align-items: flex-start;
    }
    
    .flex-between {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .text-right {
        text-align: left;
    }
}
