:root {
    --bg-dark: #0b0c10; 
    --bg-card: #1f2833;
    --text-main: #c5c6c7;
    --text-white: #ffffff;
    --accent-gold: #c6a87c;
    --accent-blue: #45a29e; 
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}
body {
    font-family: "Latin Modern Roman", "Computer Modern", serif;
    font-size: 17px;          /* ← increase from default ~16px */
    line-height: 1.65;
}



/* === Background Canvas === */
#lattice-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.4;
}

/* === Custom Cursor === */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;

    /* 🔑 THIS LINE */
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s;
    opacity: 0.5;

    /* 🔑 AND THIS LINE */
    transform: translate(-50%, -50%);
}


/* === Typography & Utilities === */
h1, h2, h3 { font-family: var(--font-heading); color: var(--text-white); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.3s; cursor: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.gold-text { color: var(--accent-gold); font-style: italic; }
.section { padding: 100px 0; }
.section-tag { color: var(--accent-gold); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
/* === Navbar === */
nav {
    position: fixed; width: 100%; top: 0; padding: 25px 0;
    z-index: 100; transition: 0.4s;
}
nav.scrolled { background: rgba(11, 12, 16, 0.9); backdrop-filter: blur(10px); padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 1.5rem; font-weight: 700; letter-spacing: 3px; color: var(--text-white); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.hover-link { font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; position: relative; }
.hover-link::after {
    content: ''; position: absolute; width: 0; height: 1px; bottom: -5px; left: 0;
    background: var(--accent-gold); transition: 0.3s;
}
.hover-link:hover { color: var(--accent-gold); }
.hover-link:hover::after { width: 100%; }
.menu-btn { display: none; color: var(--text-white); font-size: 1.5rem; }
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

/* === Hero === */
header { height: 100vh; display: flex; align-items: center; position: relative; }
.hero-text h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; }
.overline { color: var(--accent-blue); letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 15px; }
.intro { font-size: 1.1rem; max-width: 600px; margin-bottom: 40px; line-height: 1.8; opacity: 0.8; }

.btn { padding: 15px 35px; border-radius: 0; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; transition: 0.3s; display: inline-block; }
.btn-primary { background: var(--accent-gold); color: #000; border: 1px solid var(--accent-gold); }
.btn-primary:hover { background: transparent; color: var(--accent-gold); }
.btn-outline { border: 1px solid var(--text-main); margin-left: 15px; color: var(--text-white); }
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; opacity: 0.6; }
.scroll-indicator .line { width: 1px; height: 60px; background: var(--text-main); margin-top: 10px; }

/* === About Cards === */
.about-grid { display: grid; grid-template-columns: 1.57fr 1fr; gap: 40px; }
.about-card, .interests-card { background: rgba(255,255,255,0.03); padding: 40px; border: 1px solid rgba(255,255,255,0.05); }
.stats-row { display: flex; gap: 40px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.stat { display: flex; flex-direction: column; }
.stat .number { font-family: var(--font-heading); font-size: 2rem; color: var(--accent-gold); }
.stat .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.interest-list { list-style: none; margin-top: 20px; }
.interest-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.interest-list i { color: var(--accent-gold); }

.hero-image-wrapper {
    animation: heroFade 1.2s ease-out forwards;
}

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

/* === Research Cards === */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    padding: 40px 30px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; position: relative; overflow: hidden;
}
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 100%; background: var(--accent-gold); transform: scaleY(0); transition: 0.3s; transform-origin: bottom; }
.feature-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.05); }
.feature-card:hover::before { transform: scaleY(1); }
.card-icon { font-size: 2.5rem; color: var(--text-main); margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 15px; font-size: 1.3rem; }

/* === Publications === */
.pub-card { 
    border-bottom: 1px solid rgba(255,255,255,0.1); padding: 30px 0; 
    transition: 0.3s; 
}
.pub-card:hover { padding-left: 20px; border-color: var(--accent-gold); }
.pub-status { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-blue); margin-bottom: 10px; }
.pub-card h3 { font-size: 1.4rem; font-family: var(--font-body); margin-bottom: 10px; }
.pub-links a { font-size: 0.9rem; margin-right: 20px; display: inline-flex; align-items: center; gap: 5px; color: var(--text-main); }
.pub-links a:hover { color: var(--accent-gold); }
/* === Compact publications (publications page only) === */

.publications-page .pub-card {
    padding: 18px 0;
}

.publications-page .pub-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.publications-page .pub-status {
    font-size: 0.7rem;
    margin-bottom: 6px;
}

.publications-page .pub-links a {
    font-size: 0.8rem;
}

/* === Teaching === */
.teaching-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.teach-item { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 20px; background: rgba(255,255,255,0.02); border-left: 3px solid transparent; 
}
.teach-item:hover { border-left-color: var(--accent-gold); background: rgba(255,255,255,0.05); }
.year { font-weight: 700; color: var(--accent-gold); }
.role { opacity: 0.7; }

/* === Personal === */
.personal-wrapper { text-align: center; border: 1px solid var(--accent-gold); padding: 60px; position: relative; }
.personal-wrapper::after { 
    content: ''; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; 
    border: 1px solid rgba(198, 168, 124, 0.3); pointer-events: none;

}

/* === Footer === */
footer { background: #000; padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-info h3 { font-size: 2rem; margin-bottom: 10px; }
.email-big { font-size: 2rem; color: var(--accent-gold); font-family: var(--font-heading); margin-top: 20px; display: block; }
.footer-socials { margin-top: 40px; display: flex; gap: 30px; }
.footer-socials a { text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }
.footer-bottom { margin-top: 80px; font-size: 0.8rem; opacity: 0.4; }

/* === Responsive === */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .teach-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .email-big { font-size: 1.5rem; }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    height: 100%; 
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-image-wrapper {
    flex: 1;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.quantum-frame {
    position: relative;
    padding: 15px; 
    border: 1px solid rgba(198, 168, 124, 0.3);
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.3) 100%); 
    backdrop-filter: blur(5px);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%) contrast(105%); 
    transition: all 0.5s ease;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(198, 168, 124, 0.1); 
}

.quantum-frame:hover .hero-img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.02); 
}

.frame-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-gold);
    z-index: 1;
    transition: all 0.5s ease;
    opacity: 0.7;
}

.top-left {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.bottom-right {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

.quantum-frame:hover .top-left { transform: translate(-5px, -5px); opacity: 1; }
.quantum-frame:hover .bottom-right { transform: translate(5px, 5px); opacity: 1; }


/* ======   (Responsive) ====== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 120px;
        gap: 50px;
    }

    .hero-text h1 { font-size: 3.5rem; }
    .hero-image-wrapper { max-width: 380px; margin: 0 auto;  }
    
    .scroll-indicator { display: none; }
}


a {
    color: var(--accent-gold);
}
.stat .degree {
    color: var(--text-white);
}

.about-announcement {
    margin-top: 30px;
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.announcement-icon {
    font-size: 1.6rem;
    color: var(--gold, #c9a14a);
    margin-top: 4px;
}

.announcement-content h4 {
    margin: 0 0 6px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.announcement-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Publications left-year timeline */

.pub-timeline-left {
    margin-top: 3rem;
}

.pub-year-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 2rem;
    position: relative;
    margin-bottom: 3rem;
}

/* Publications timeline — match website accent */

.pub-year-label {
    color: var(--accent-color, #c9a86a);
    font-size: 1.85rem;
    font-weight: 700;
    opacity: 0.95;
}

.pub-year-content {
    border-left: 2px solid var(--accent-color, #c9a86a);
    padding-left: 2rem;
    position: relative;
}

.pub-year-content::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 1.2rem;
    width: 12px;
    height: 12px;
    background: var(--accent-color, #c9a86a);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(201, 168, 106, 0.35);
}

.pub-year-content .pub-card {
    margin-bottom: 1.5rem;
}

.pub-year-content .pub-card:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .pub-year-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .pub-year-label {
        text-align: left;
        padding-top: 0;
    }

    .pub-year-content {
        padding-left: 1rem;
    }
}
/* ===== Light / Dark Theme Toggle ===== */

body[data-theme="light"] {
    --bg-dark: #f7f3ea;
    --bg-card: #ffffff;
    --text-main: #2b2b2b;
    --text-white: #111111;
    --accent-gold: #9b7653;
    --accent-blue: #2f716f;
}

/* Smooth transition */
body,
nav,
.about-card,
.interests-card,
.feature-card,
.personal-wrapper,
.pub-card,
footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Toggle button */
.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(198, 168, 124, 0.45);
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: 0.3s ease;
    cursor: none;
}

.theme-toggle:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Light mode cards */
body[data-theme="light"] .about-card,
body[data-theme="light"] .interests-card,
body[data-theme="light"] .feature-card {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Light mode navbar */
body[data-theme="light"] nav.scrolled {
    background: rgba(247, 243, 234, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Light mode dark sections */
body[data-theme="light"] .dark-glass {
    background: rgba(255, 255, 255, 0.45);
}

/* Light mode footer */
body[data-theme="light"] footer {
    background: #efe8db;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Light mode publication borders */
body[data-theme="light"] .pub-card {
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

/* Light mode timeline */
body[data-theme="light"] .pub-year-content {
    border-left-color: var(--accent-gold);
}

body[data-theme="light"] .pub-year-content::before {
    background: var(--accent-gold);
}

/* Light mode hero image frame */
body[data-theme="light"] .quantum-frame {
    background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(235,225,210,0.55));
    border-color: rgba(155, 118, 83, 0.35);
}

/* Mobile spacing */
@media (max-width: 768px) {
    .theme-toggle {
        width: 38px;
        height: 38px;
    }
}
