:root {
    /* Colors - Dark Mode (Default) */
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-color: #ff6b52; /* Coral/Orange */
    --card-bg: #151515;
    --nav-bg: rgba(26, 26, 26, 0.9);
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'Alex Brush', cursive;
}

[data-theme="light"] {
    /* Colors - Light Mode */
    --bg-color: #f4f4f4;
    --text-color: #1a1a1a;
    --text-muted: #5a5a5a;
    --accent-color: #d84b36; /* Darker Coral/Orange */
    --card-bg: #ffffff;
    --nav-bg: rgba(244, 244, 244, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.hidden {
    display: none !important;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-family: var(--font-logo);
    font-size: 2.5rem;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

.nav-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: var(--accent-color);
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 2rem;
    width: 100%;
    position: relative;
}

.hero-left {
    z-index: 1;
}

.hero-big-text {
    font-family: var(--font-body);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color);
    margin-right: -100px;
    position: relative;
    z-index: 1;
}

.hero-center {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    z-index: 10;
    height: 100%;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: 11;
    pointer-events: none;
}

.hero-image-transparent {
    width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.hero-right {
    z-index: 5;
    padding-left: 2rem;
}

.hero-role {
    margin-bottom: 2rem;
    border-top: 2px solid var(--accent-color);
    padding-top: 0.5rem;
    display: inline-block;
}

.hero-bio h3 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-contact {
    margin-top: 3rem;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-title h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-desc p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Publications Section */
.publications-section {
    padding: 8rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.subtitle {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.pub-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .pub-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.pub-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.pub-year {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.pub-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.pub-journal {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
}

/* Footer */
.footer {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--card-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.email-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    opacity: 0.8;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
        padding-top: 4rem;
    }
    .hero-big-text {
        font-size: 3.5rem;
        margin-right: 0;
    }
    .hero-right {
        padding-left: 0;
    }
    .hero-role {
        margin: 0 auto 2rem auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 2rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        backdrop-filter: blur(10px);
        padding: 1rem 0 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    [data-theme="light"] .nav-menu {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .nav-controls {
        margin-top: 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-big-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-big-text {
        font-size: 2rem;
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-image-transparent {
    animation: slowZoom 20s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-big-text {
    animation: fadeUp 1.2s ease-out forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
