/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #050408; /* Deepest Indigo-Black */
    --text-main: #f3f4f6;
    --text-muted: #a1a1aa;
    
    /* LIQUID GLASS VARS */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.05);
    
    /* NEON ACCENTS */
    --accent-1: #8b5cf6; /* Violet */
    --accent-2: #6366f1; /* Indigo */
    --accent-glow: rgba(139, 92, 246, 0.4);
    
    /* Background Orbs */
    --orb-color-1: rgba(124, 58, 237, 0.25); /* Violet */
    --orb-color-2: rgba(79, 70, 229, 0.2); /* Indigo */
    --orb-color-3: rgba(236, 72, 153, 0.15); /* Pinkish */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- PURPLE HAZE BACKGROUND --- */
.liquid-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; background: var(--bg-color);
}

.light-orb {
    position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: 0.7;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -20%; left: -10%; width: 70vw; height: 70vw;
    background: var(--orb-color-1);
    animation-duration: 25s;
}
.orb-2 {
    bottom: -20%; right: -10%; width: 60vw; height: 60vw;
    background: var(--orb-color-2);
    animation-duration: 30s;
}
.orb-3 {
    top: 40%; left: 40%; width: 40vw; height: 40vw;
    background: var(--orb-color-3);
    animation-duration: 35s; opacity: 0.4;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.05); }
}

/* --- LIQUID GLASS NAVBAR --- */
.glass-nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 960px;
    
    /* The Liquid Effect: High Blur + Saturation Boost */
    background: rgba(255, 255, 255, 0.01); /* Almost invisible base */
    backdrop-filter: blur(25px) saturate(160%) brightness(1.1);
    -webkit-backdrop-filter: blur(25px) saturate(160%) brightness(1.1);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05); /* Inner rim light */
        
    border-radius: 24px;
    padding: 12px 30px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-logo { font-weight: 600; font-size: 1rem; letter-spacing: 0.5px; color: var(--text-main); text-shadow: 0 0 10px rgba(255,255,255,0.2); }
.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: white; text-shadow: 0 0 10px var(--accent-glow); }

/* Theme Toggle */
.theme-btn { background: transparent; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.theme-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.hidden { display: none; }

/* --- HERO SECTION --- */
.hero-section { min-height: 80vh; display: flex; align-items: center; justify-content: center; }

.hero-container {
    display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: center;
    max-width: 960px; width: 100%;
    padding: 40px;
    
    /* Glass Panel Styling */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-image img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-text h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; line-height: 1.1; }
.highlight { 
    background: linear-gradient(90deg, #a78bfa, #60a5fa); 
    -webkit-background-clip: text; background-clip: text; color: transparent; 
    font-weight: 800;
}
.intro-lead { font-size: 1.1rem; color: var(--text-main); margin-bottom: 20px; font-weight: 500; }
.intro-bio { font-size: 1rem; color: var(--text-muted); margin-bottom: 30px; max-width: 550px; }

.hero-links { display: flex; gap: 20px; align-items: center; }

/* Liquid Button */
.btn-liquid {
    position: relative; padding: 12px 24px;
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px; color: white; text-decoration: none;
    overflow: hidden; font-weight: 500; font-size: 0.9rem;
    transition: 0.3s;
}
.btn-liquid:hover { border-color: transparent; box-shadow: 0 0 20px var(--accent-glow); }
.btn-liquid::before {
    content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: -1;
}
.btn-liquid:hover::before { top: 0; }

.link-text { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.link-text:hover { color: white; }

/* --- SECTIONS --- */
section { padding: 100px 20px; }
.section-pad { max-width: 960px; margin: 0 auto; }
.section-title { font-size: 1.8rem; margin-bottom: 40px; font-weight: 600; color: var(--text-main); }

/* --- CARDS --- */
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }

.glass-card {
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--glass-border);
    border-radius: 20px; overflow: hidden; 
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}
.glass-card:hover { 
    transform: translateY(-5px); 
    background: rgba(255,255,255,0.06); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-image { height: 150px; width: 100%; opacity: 0.8; }
.gradient-1 { background: linear-gradient(135deg, #4c1d95, #1f2937); }
.gradient-2 { background: linear-gradient(135deg, #0e7490, #1f2937); }
.gradient-3 { background: linear-gradient(135deg, #831843, #1f2937); }

.card-content { padding: 25px; }
.card-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; }
.card-content a,
.card-content a:visited {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-2);
}
.card-content a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}
.tags span { font-size: 0.75rem; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,0.08); margin-right: 5px; color: var(--text-muted); }

/* --- PUBLICATIONS --- */
.pub-list { display: flex; flex-direction: column; gap: 15px; }
.glass-item { 
    padding: 25px; border-radius: 16px; 
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
    display: flex; gap: 20px; align-items: baseline;
    transition: 0.3s;
}
.glass-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }
.year { font-weight: 600; color: var(--accent-1); min-width: 45px; font-size: 0.9rem; }
.pub-details h4 { font-size: 1rem; margin-bottom: 5px; }
.pub-details p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 5px; }
.link-small { font-size: 0.85rem; color: white; text-decoration: none; opacity: 0.6; border-bottom: 1px solid var(--accent-2); }
.link-small:hover { opacity: 1; }

/* --- ABOUT MINI --- */
.about-mini { padding: 40px; border-radius: 24px; border: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(10px); }
.about-mini h3 { margin-bottom: 20px; font-size: 1.4rem; }
.about-mini p { color: var(--text-muted); margin-bottom: 30px; max-width: 700px; }

.social-links-row { display: flex; gap: 15px; flex-wrap: wrap; }
.social-pill { 
    padding: 10px 20px; border: 1px solid var(--glass-border); border-radius: 30px;
    text-decoration: none; color: var(--text-muted); font-size: 0.9rem; transition: 0.3s;
    background: rgba(255,255,255,0.02);
}
.social-pill:hover { border-color: var(--accent-1); color: white; background: var(--accent-1); box-shadow: 0 0 15px var(--accent-glow); }

footer {
    position: relative;
    text-align: center;
    padding: 60px 20px 72px;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.5;
}

.cam-whisper {
    position: absolute;
    right: clamp(16px, 4vw, 48px);
    bottom: 28px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.01);
    opacity: 0.25;
    text-decoration: none;
    transition: opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.cam-whisper:hover {
    opacity: 0.65;
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.2);
}

body.light-mode .cam-whisper {
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .cam-whisper:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

/* --- LIGHT MODE (Crisp & Airy) --- */
body.light-mode {
    --bg-color: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    
    --orb-color-1: rgba(139, 92, 246, 0.15);
    --orb-color-2: rgba(99, 102, 241, 0.15);
    --orb-color-3: rgba(236, 72, 153, 0.1);
}

body.light-mode .glass-nav {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

body.light-mode .nav-links a { color: #64748b; }
body.light-mode .nav-links a:hover { color: var(--accent-2); }

body.light-mode .glass-card, 
body.light-mode .glass-item,
body.light-mode .about-mini,
body.light-mode .hero-container {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
body.light-mode .hero-image img { border-color: rgba(0,0,0,0.05); }
body.light-mode .btn-liquid { color: var(--text-main); border-color: rgba(0,0,0,0.1); }
body.light-mode .btn-liquid:hover { color: white; border-color: transparent; }

body.light-mode .card-image { opacity: 1; }
body.light-mode .card-image.gradient-1 { background: linear-gradient(135deg, #e9d5ff, #f3f4f6); }
body.light-mode .card-image.gradient-2 { background: linear-gradient(135deg, #cffafe, #f3f4f6); }
body.light-mode .card-image.gradient-3 { background: linear-gradient(135deg, #fce7f3, #f3f4f6); }

body.light-mode .card-content a,
body.light-mode .card-content a:visited {
    color: var(--accent-2);
}

body.light-mode .link-small,
body.light-mode .link-small:visited {
    color: var(--accent-2);
    opacity: 1;
    border-bottom-color: rgba(99, 102, 241, 0.5);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; padding: 30px; gap: 30px; }
    .hero-image { margin: 0 auto; width: 180px; }
    .hero-text h1 { font-size: 2rem; }
    .hero-links { justify-content: center; }
    .nav-links { display: none; }
}

