/* ============================================
   QUANT PORTFOLIO - Complete Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.3);
    --border: #2a2a3a;
    --overlay-bg: rgba(0, 0, 0, 0.85);
    --code-bg: #1e1e2e;
    --success: #10b981;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --nav-height: 70px;
    --container-width: 1200px;
    --transition: 0.3s ease;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #374151;
    --text-muted: #4b5563;
    --border: #e2e8f0;
    --code-bg: #1e1e1e;
    --accent: #1e3a8a;
    --accent-hover: #172554;
    --accent-glow: rgba(30, 58, 138, 0.3);
    --overlay-bg: rgba(30, 78, 216, 0.3);
}

[data-theme="light"] .code-keyword {
    color: #7c3aed;
}

[data-theme="light"] .code-window {
    background: #ffffff;
    border: 1px solid var(--border);
}

[data-theme="light"] .code-content {
    background: #f8fafc;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    gap: 2px;
}

.logo-bracket {
    color: var(--accent);
}

.logo-text {
    color: var(--text-primary);
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Mobile Menu Toggle - Hidden on Desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 10001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background-color: #0a0a0f;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
        gap: 32px;
        transform: translateX(-100%);
        visibility: hidden;
        transition: none;
        z-index: 10000;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.3s ease;
    }

    [data-theme="light"] .nav-menu {
        background-color: #ffffff;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 1;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 24px 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.gradient-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 10%;
    right: 10%;
}

.gradient-orb-2 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    bottom: 20%;
    left: 5%;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-greeting {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 16px;
    padding: 8px 16px;
    background: var(--accent-glow);
    border-radius: 4px;
    display: inline-block;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 24px;
    min-height: 2rem;
}

.typewriter {
    color: var(--accent);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 1; }
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #1a1a25;
}

[data-theme="light"] .btn-primary {
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
}

.code-window {
    background: var(--code-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca40; }

.code-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.code-content {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-content code {
    display: block;
    white-space: pre;
}

.code-keyword { color: #c678dd; }
.code-var { color: #e5c07b; }
.code-string { color: #98c379; }
.code-method { color: #61afef; }
.code-class { color: #e5c07b; }
.code-prop { color: #e06c75; }
.code-num { color: #d19a66; }
.code-comment { color: #5c6370; font-style: italic; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 24px;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.title-number {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 400;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: inline;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 280px;
    height: 280px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.image-decoration {
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent);
    border-radius: 12px;
    transform: translate(15px, 15px);
    z-index: -1;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
}

[data-theme="light"] .skill-category {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .skill-tag {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

[data-theme="light"] .skill-tag:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

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

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.category-icon svg {
    width: 22px;
    height: 22px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.timeline {
    position: relative;
    max-width: 800px;
}

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

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 50px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.timeline-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.timeline-company {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.timeline-date {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.timeline-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}

.timeline-list li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    background: var(--accent-glow);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

[data-theme="light"] .project-card {
    background: var(--bg-tertiary);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.project-card.featured .project-image {
    aspect-ratio: auto;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 1;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.project-link svg {
    width: 20px;
    height: 20px;
}

.project-content {
    padding: 24px;
}

.project-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: 1.3rem;
    margin: 8px 0 12px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.projects-more {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-heading {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-label {
    font-weight: 600;
    display: block;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
}

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

.footer-name {
    color: var(--accent);
}

.footer-credits {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .project-card.featured {
        grid-column: span 1;
        display: block;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .section {
        padding: 60px 16px;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 16px 40px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .nav, .theme-toggle, .scroll-indicator {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .section {
        padding: 40px 0;
    }
}

/* Profile Image */
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

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

/* =======================================
   FLOATING SOCIAL BAR
   ======================================= */
.social-bar {
    position: fixed;
    left: 50px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 100;
    transition: bottom 0.3s ease;
}

.social-link {
    color: var(--text-muted);
    transition: var(--transition);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-line {
    width: 1px;
    height: 90px;
    background: var(--text-muted);
    opacity: 0.4;
}

/* Hide floating bar on smaller screens to prevent text overlap */
@media (max-width: 1580px) {
    .social-bar {
        display: none;
    }
}

/* Contact icon styles for SVG */
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    color: var(--accent);
}

/* Department blocks for Experience section */
.department-block {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--accent);
}

.department-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.department-block .timeline-list {
    margin-top: 0;
    padding-left: 16px;
}

/* Research note box */
.research-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.research-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.research-note em {
    color: var(--text-primary);
}

/* Thesis block styling */
.thesis-block {
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.thesis-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.thesis-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.thesis-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

/* Research note variants */
.research-note.primary {
    background: var(--bg-tertiary);
}

.research-note.secondary {
    background: var(--bg-secondary);
    background: transparent;
    border: 1px dashed var(--border);
    opacity: 0.9;
    font-size: 0.8rem;
    padding: 10px 14px;
}

.research-note.secondary .research-label {
    font-size: 0.7rem;
}

.research-note a {
    color: var(--accent);
    text-decoration: none;
}

.research-note a:hover {
    text-decoration: underline;
}

/* Fix research note spacing */
.research-note + .research-note {
    margin-top: 10px;
}

.research-note + .timeline-tags {
    margin-top: 20px;
}

/* Make secondary research note more visible */
.research-note.secondary {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border) !important;
    opacity: 1 !important;
}

/* =======================
   NEW PROJECTS SECTION - Full Width Cards
   ======================= */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

a.project-card-full {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] a.project-card-full {
    background: var(--bg-tertiary);
}

a.project-card-full:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

a.project-card-full .project-content {
    flex: 1;
    z-index: 1;
}

a.project-card-full .project-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a.project-card-full .project-title {
    font-size: 1.5rem;
    margin: 12px 0 16px;
    color: var(--text-primary);
}

a.project-card-full .project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

a.project-card-full .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

a.project-card-full .project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: transparent;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

a.project-card-full:hover .project-tech span {
    border-color: var(--accent);
    color: var(--accent);
}

/* Project Overlay with GitHub Icon */
a.project-card-full .project-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

/* DELETEME */
a.project-card-full-OLD .project-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition);
    z-index: 2;
}

a.project-card-full:hover .project-overlay {
    opacity: 1;
}

a.project-card-full .project-overlay svg {
    color: var(--accent);
    transition: var(--transition);
}

a.project-card-full:hover .project-overlay svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    a.project-card-full {
        flex-direction: column;
        padding: 24px;
    }
}
    
    .project-links {
        width: 100%;
    }
    
    .project-card-full .project-link {
        width: 100%;
        justify-content: center;
    }
}


/* Light mode: fill GitHub cat on hover */
[data-theme="light"] a.project-card-full:hover .project-overlay svg {
    fill: var(--accent) !important;
}

[data-theme="light"] a.project-card-full:hover .project-overlay svg path {
    fill: var(--accent) !important;
}
