:root {
    --bg-color: #050510;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-blue: #00f0ff;
    /* Neon Cyan */
    --accent-purple: #bd00ff;
    /* Neon Purple */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Overlay to darken background */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(5, 5, 16, 0.7), rgba(0, 0, 0, 0.9));
    z-index: -1;
    pointer-events: none;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: width 0.2s, height 0.2s;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    background: linear-gradient(90deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    pointer-events: none;
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    background: rgba(10, 10, 25, 0.85);
    backdrop-filter: blur(16px);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    pointer-events: auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.05em;
    color: var(--accent-blue);
}

.glass-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.mobile-toggle {
    display: none;
}

.glass-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.glass-nav a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-blue);
    transition: width 0.3s;
}

.glass-nav a:not(.btn-contact):hover::after {
    width: 100%;
}

.btn-contact {
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
}

.btn-contact:hover {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.4);
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.tagline {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bio {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.highlight {
    color: var(--accent-blue);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    padding: 0.8rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: 0.3s;
    text-decoration: none;
}

.social-links a i {
    font-size: 1.2rem;
}

.social-links a:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* Glass Cards Generic */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* Experience */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 4rem 0 3rem;
    color: var(--accent-blue);
    position: relative;
    z-index: 1;
    background: transparent;
    text-shadow: 0 0 10px #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    left: 50%;
    transform: translateX(-50%);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--glass-border), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center dates */
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.timeline-date {
    position: relative;
    /* relative flow for centering */
    top: auto;
    left: auto;
    width: 45%;
    text-align: right;
    padding-right: 2rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.timeline-content {
    width: 45%;
    margin-left: auto;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: #fff;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.timeline-content .caption {
    font-size: 0.85rem;
    color: #888;
}

.timeline-content .caption a {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Alternating timeline for desktop */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-date {
    right: 0;
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
    left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

/* Group styling */
.timeline-group {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-group .timeline-item {
    margin-bottom: 1rem;
}

/* Parent styling - make it stand out */
.timeline-parent .timeline-content {
    border: 1px solid var(--accent-blue);
    background: rgba(0, 240, 255, 0.05);
}

.timeline-parent .timeline-date {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Sub-item styling - make them look connected/smaller */
.timeline-sub .timeline-content {
    padding: 1.5rem;
    transform: scale(0.95);
    border-left: 3px solid var(--accent-purple);
}

.timeline-sub .timeline-content:hover {
    transform: scale(0.98) translateY(-5px);
}

.timeline-sub .timeline-date {
    font-size: 0.9rem;
    opacity: 0.8;
}



.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.grid-item {
    text-align: center;
    padding: 3rem 2rem;
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid-item h3 {
    margin-bottom: 1rem;
}

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

/* Publications */
.publication-list {
    max-width: 800px;
    margin: 0 auto;
}

.pub-item {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.pub-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-purple);
    font-family: var(--font-heading);
}

.pub-details h3 {
    margin-bottom: 0.5rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.link-arrow:hover {
    gap: 0.8rem;
}

/* Contact */
.contact-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-purple), #9600cc);
    color: white;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(189, 0, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(189, 0, 255, 0.5);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main>section {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    /* JS will toggle this */
}

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

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .glass-nav {
        padding: 0.8rem 1.5rem;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-primary);
    }

    .glass-nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 25, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s ease-in-out;
    }

    .glass-nav ul.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Simplified mobile handling */
    /* Add mobile menu logic if requested, keeping simple for now */

    .timeline::before {
        left: 0;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 2rem;
    }

    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        position: relative;
        left: 0;
        width: 100%;
        text-align: left;
        margin-bottom: 0.5rem;
        padding: 0;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin: 0;
    }
}