/* ========================================
   CSS Variables & Base Styles
   ======================================== */

:root {
    /* Colors */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-card: #141416;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-primary: #22d3ee;
    --accent-secondary: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);

    --border-color: #27272a;
    --border-subtle: rgba(255, 255, 255, 0.06);

    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 15vh, 150px);
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

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

/* ========================================
   Particle Background
   ======================================== */

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   Custom Cursor
   ======================================== */

.cursor,
.cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-follower {
    width: 35px;
    height: 35px;
    border: 1px solid var(--text-primary);
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor.hover {
    width: 12px;
    height: 12px;
}

.cursor-follower.hover {
    width: 50px;
    height: 50px;
    border-color: var(--accent-primary);
}

@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.terminal-prompt {
    color: var(--accent-primary);
    margin-right: 4px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-link:hover {
    color: var(--text-primary);
}

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

@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

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

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 101;
        padding: 5px;
    }

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

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

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

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

.nav-toggle {
    display: none;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    position: relative;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    z-index: 1;
}

/* Terminal Window */
.hero-terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    max-width: 600px;
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-body {
    padding: 20px 24px;
}

.terminal-line {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-name {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    position: relative;
}

.hero-name:hover .typing-text {
    animation: glitch 0.3s ease infinite;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: none;
    }
    20% {
        text-shadow: -2px 0 var(--accent-primary), 2px 0 var(--accent-secondary);
    }
    40% {
        text-shadow: 2px 0 var(--accent-primary), -2px 0 var(--accent-secondary);
    }
    60% {
        text-shadow: -1px 0 var(--accent-secondary), 1px 0 var(--accent-primary);
    }
    80% {
        text-shadow: 1px 0 var(--accent-secondary), -1px 0 var(--accent-primary);
    }
}

.cursor-blink {
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

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

/* Hero Tagline */
.hero-tagline {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 300;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 400;
}

/* Hero Interests */
.hero-interests {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.interest-tag {
    display: inline-block;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: var(--accent-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-left: 8px;
    transition: all var(--transition-base);
}

.interest-tag:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .hero-interests {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .interest-tag {
        margin-left: 0;
        margin-top: 4px;
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(34, 211, 238, 0.4);
}

.btn-ghost {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

/* Fade Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

@media (max-width: 768px) {
    .hero {
        padding: 0 20px;
        min-height: calc(100vh - 60px);
        padding-top: 80px;
    }

    .hero-terminal {
        max-width: 100%;
    }

    .hero-name {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 12px;
        flex-wrap: wrap;
    }

    .stat-divider {
        display: none;
    }

    .stat {
        min-width: 80px;
    }

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

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

    .scroll-indicator {
        display: none;
    }
}

/* ========================================
   Section Styles
   ======================================== */

section {
    padding: var(--section-padding) 40px;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.section-title.center {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

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

.title-text {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

.title-line {
    flex: 1;
    max-width: 300px;
    height: 1px;
    background: var(--border-color);
}

@media (max-width: 768px) {
    section {
        padding: var(--section-padding) 24px;
    }
}

/* ========================================
   About Section
   ======================================== */

.about-content {
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Headshot */
.about-photo {
    position: relative;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    filter: grayscale(20%);
    transition: all var(--transition-base);
}

.headshot:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.photo-border {
    position: absolute;
    top: 12px;
    left: 12px;
    right: -12px;
    bottom: -12px;
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    z-index: -1;
    transition: all var(--transition-base);
}

.photo-wrapper:hover .photo-border {
    top: 8px;
    left: 8px;
}

.about-intro {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.about-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-credentials {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.credential-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-base);
}

.credential-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
}

.credential-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
}

.credential-icon svg {
    width: 100%;
    height: 100%;
}

.credential-content {
    display: flex;
    flex-direction: column;
}

.credential-title {
    font-weight: 500;
    color: var(--text-primary);
}

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

@media (max-width: 1000px) {
    .about-content {
        grid-template-columns: 200px 1fr;
        gap: 32px;
    }

    .about-credentials {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-photo {
        max-width: 250px;
        margin: 0 auto;
    }

    .about-credentials {
        grid-column: auto;
    }
}

/* ========================================
   Work/Timeline Section
   ======================================== */

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

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

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-marker {
    background: var(--accent-primary);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
    border-color: var(--border-subtle);
    transform: translateX(8px);
}

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

.timeline-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

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

.yc-badge {
    display: inline-block;
    background: rgba(255, 102, 0, 0.15);
    color: #ff6600;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.return-badge {
    display: inline-block;
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-primary);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

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

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

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

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 24px;
    }

    .timeline-marker {
        left: -24px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ========================================
   Research Section
   ======================================== */

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.research-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.research-card:hover {
    border-color: var(--border-subtle);
    transform: translateY(-4px);
}

.research-card:hover::before {
    transform: scaleX(1);
}

.research-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-secondary);
    margin-bottom: 16px;
}

.research-icon svg {
    width: 100%;
    height: 100%;
}

.research-lab {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.research-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.research-advisor {
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

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

.research-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.research-status.active::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.research-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition-fast);
}

.research-link:hover {
    gap: 8px;
}

/* ========================================
   Projects Section
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: all var(--transition-base);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.project-card:hover {
    border-color: var(--border-subtle);
    transform: translateY(-4px);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-icon {
    width: 44px;
    height: 44px;
    color: var(--accent-primary);
}

.project-icon svg {
    width: 100%;
    height: 100%;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-primary);
}

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

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

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

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 20px;
    }
}

/* Mobile section spacing */
@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }

    .section-title {
        flex-wrap: wrap;
        margin-bottom: 40px;
    }

    .title-line {
        display: none;
    }

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

    .research-card {
        padding: 24px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-marker {
        left: -20px;
        width: 10px;
        height: 10px;
    }

    .timeline-content {
        padding: 16px;
    }

    .contact-terminal {
        margin: 0 -10px;
    }

    .social-links {
        gap: 16px;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }
}

/* ========================================
   Contact Section
   ======================================== */

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    text-align: left;
}

.contact-terminal .terminal-body {
    padding: 24px;
}

.terminal-output {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-primary);
    display: block;
    margin-top: 8px;
    transition: color var(--transition-fast);
}

.email-link:hover {
    color: var(--accent-secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all var(--transition-base);
}

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

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

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 40px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

@media (max-width: 768px) {
    .footer {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ========================================
   Reveal Animations
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   Selection & Scrollbar
   ======================================== */

/* ========================================
   Scramble Text Effect
   ======================================== */

.scramble-char {
    color: var(--accent-primary);
}

/* ========================================
   3D Tilt Cards
   ======================================== */

.research-card,
.project-card,
.credential-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.research-card:hover,
.project-card:hover,
.credential-card:hover {
    will-change: transform;
}

::selection {
    background: rgba(34, 211, 238, 0.3);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   Glitch Effect (for hover states)
   ======================================== */

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-1 0.3s linear;
    color: var(--accent-primary);
    z-index: -1;
}

.glitch:hover::after {
    animation: glitch-2 0.3s linear;
    color: var(--accent-secondary);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.8; transform: translate(-2px, 2px); }
    40% { opacity: 0.8; transform: translate(2px, -2px); }
    60% { opacity: 0.8; transform: translate(-1px, 1px); }
    80% { opacity: 0.8; transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.8; transform: translate(2px, -2px); }
    40% { opacity: 0.8; transform: translate(-2px, 2px); }
    60% { opacity: 0.8; transform: translate(1px, -1px); }
    80% { opacity: 0.8; transform: translate(-1px, 1px); }
}
