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

:root {
    --purple: #7c3aed;
    --pink: #ec4899;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --orange: #f97316;
    --green: #10b981;
    --dark: #0f0f1a;
    --dark-2: #1a1a2e;
    --dark-3: #25253d;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    animation: bodyFadeIn 0.6s ease 0.1s forwards;
}

@keyframes bodyFadeIn {
    to { opacity: 1; }
}

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

/* ===== Language Toggle ===== */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}

.lang-option {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    transition: color 0.3s ease;
}

.lang-option.active {
    color: var(--pink);
}

.lang-divider {
    color: var(--gray);
    font-size: 0.8rem;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    cursor: pointer;
    animation: logo-glow 5s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes logo-glow {
    0%, 80%, 100% { filter: brightness(1) drop-shadow(0 0 0px transparent); }
    88% { filter: brightness(1.35) drop-shadow(0 0 10px rgba(236, 72, 153, 0.5)); }
    94% { filter: brightness(1.15) drop-shadow(0 0 5px rgba(236, 72, 153, 0.25)); }
}

@keyframes hint-appear {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes hint-cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.nav-logo::after {
    content: '▸ triple click';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--pink);
    -webkit-text-fill-color: var(--pink);
    background: var(--dark-3);
    -webkit-background-clip: unset;
    background-clip: unset;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(236, 72, 153, 0.3);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    animation: hint-appear 0.6s ease forwards;
    animation-delay: 4s;
}

.nav-logo::before {
    content: '▌';
    position: absolute;
    bottom: -28px;
    left: calc(50% + 48px);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--pink);
    -webkit-text-fill-color: var(--pink);
    background: transparent;
    -webkit-background-clip: unset;
    background-clip: unset;
    opacity: 0;
    pointer-events: none;
    animation: hint-appear 0.6s ease forwards, hint-cursor-blink 0.8s step-end infinite;
    animation-delay: 4s, 4.6s;
}

.nav-logo.egg-found::after,
.nav-logo.egg-found::before {
    animation: none;
    opacity: 0;
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--purple);
    top: -10%;
    right: -5%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--pink);
    bottom: -10%;
    left: -5%;
    animation-delay: -3s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--cyan);
    top: 40%;
    left: 30%;
    animation-delay: -5s;
}

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

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--cyan);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #f0abfc 25%, #818cf8 50%, #22d3ee 75%, #fff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nameShimmer 6s ease-in-out infinite;
}

@keyframes nameShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 24px;
    min-height: 2.2em;
}

.typewriter-cursor {
    animation: cursorBlink 1s step-end infinite;
    color: var(--pink);
    font-weight: 300;
}

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

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4), 0 0 20px rgba(236, 72, 153, 0.2);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--pink);
    color: var(--pink);
    transform: translateY(-2px);
}

.btn-email::before {
    content: none !important;
}

.btn-email {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-email:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--gray);
    border-bottom: 2px solid var(--gray);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--dark-2);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.3), transparent);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 4px;
    margin: 16px auto 0;
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.about-photo-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 24px;
    padding: 3px;
    background: var(--gradient-2);
    position: relative;
    animation: photoGlow 4s ease-in-out infinite alternate;
}

@keyframes photoGlow {
    0% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.2), 0 0 60px rgba(124, 58, 237, 0.1); }
    100% { box-shadow: 0 0 30px rgba(236, 72, 153, 0.35), 0 0 80px rgba(124, 58, 237, 0.2); }
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 22px;
    display: block;
}

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

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

.stat-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 28px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.3);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 4px;
}

/* ===== Timeline (Experience) ===== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--purple), var(--pink), var(--cyan));
}

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

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 24px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-2);
    border: 3px solid var(--dark-2);
    z-index: 1;
}

.timeline-card {
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, transparent 40%, var(--purple), var(--pink));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.15);
    border-color: transparent;
    background: var(--dark-3);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--pink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 8px;
}

.timeline-card h4 {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 400;
    margin-top: 4px;
}

.timeline-card p {
    color: var(--gray);
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.timeline-tags span {
    background: rgba(124, 58, 237, 0.15);
    color: var(--purple);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== Education ===== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.edu-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-3);
    transition: height 0.4s ease;
}

.edu-card:hover::before {
    height: 4px;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

.edu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(79, 172, 254, 0.1);
    border-color: rgba(79, 172, 254, 0.2);
}

.edu-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.edu-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(0, 242, 254, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.edu-card:hover .edu-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.25), rgba(0, 242, 254, 0.25));
}

.edu-svg {
    width: 28px;
    height: 28px;
    color: var(--cyan);
}

.edu-date {
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 1px;
}

.edu-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-top: 12px;
}

.edu-card h4 {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 400;
    margin-top: 6px;
}

/* ===== Talks & Conferences ===== */
.talks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.talk-card {
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.talk-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 12px 36px rgba(236, 72, 153, 0.1);
}

.talk-type {
    display: inline-block;
    background: var(--gradient-2);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.talk-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.talk-topic {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.talk-meta {
    font-size: 0.8rem;
    color: var(--cyan);
    font-weight: 500;
}

/* ===== Publications ===== */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.pub-card {
    display: flex;
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.pub-card:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(124, 58, 237, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.pub-accent {
    flex: 0 0 5px;
    min-height: 100%;
}

.pub-content {
    flex: 1;
    padding: 24px 28px;
}

.pub-venue {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pub-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 10px 0 8px;
    line-height: 1.4;
}

.pub-content p {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.pub-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pub-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pub-tags span {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.pub-link {
    color: var(--pink);
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.pub-card:hover .pub-link {
    opacity: 0.8;
}

.pub-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray);
    padding: 3px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.pub-card-wip {
    cursor: default;
    opacity: 0.85;
}

.pub-card-wip:hover {
    opacity: 1;
}

/* ===== NLP Lab ===== */
.nlp-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 40px;
}

.nlp-playground {
    max-width: 800px;
    margin: 0 auto;
}

.nlp-input-area {
    margin-bottom: 32px;
}

.nlp-input-area textarea {
    width: 100%;
    background: var(--dark-3);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    color: var(--light);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    min-height: 100px;
}

.nlp-input-area textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.nlp-input-area textarea::placeholder {
    color: var(--gray);
}

.nlp-examples {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    flex-wrap: wrap;
}

.nlp-examples > span {
    font-size: 0.85rem;
    color: var(--gray);
}

.nlp-example-btn {
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--purple);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.nlp-example-btn:hover {
    background: rgba(124, 58, 237, 0.25);
    transform: translateY(-1px);
}

.nlp-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    border: none;
}

.nlp-results {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.nlp-results.active {
    display: flex;
    animation: fadeSlideUp 0.5s ease;
}

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

.nlp-result-card {
    background: var(--dark-3);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 16px;
    padding: 24px;
    animation: fadeSlideUp 0.5s ease backwards;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nlp-result-card:hover {
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.06);
}

.nlp-result-card:nth-child(1) { animation-delay: 0.1s; }
.nlp-result-card:nth-child(2) { animation-delay: 0.2s; }
.nlp-result-card:nth-child(3) { animation-delay: 0.3s; }
.nlp-result-card:nth-child(4) { animation-delay: 0.4s; }

.nlp-result-card h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tokens */
.nlp-tokens-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nlp-token {
    padding: 5px 12px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    animation: tokenPop 0.3s ease backwards;
}

.nlp-token.noun { background: rgba(124, 58, 237, 0.2); color: #a78bfa; }
.nlp-token.verb { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.nlp-token.adj { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.nlp-token.other { background: rgba(148, 163, 184, 0.12); color: var(--gray); }
.nlp-token.entity { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.nlp-token.number { background: rgba(16, 185, 129, 0.2); color: #34d399; }

@keyframes tokenPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Sentiment */
.sentiment-display {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sentiment-emoji {
    font-size: 2.5rem;
}

.sentiment-bar-bg {
    flex: 1;
    height: 12px;
    background: var(--dark);
    border-radius: 10px;
    overflow: hidden;
}

.sentiment-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease, background 0.5s ease;
    width: 0;
}

.sentiment-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 100px;
    text-align: right;
}

/* NER */
.ner-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ner-entity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    animation: tokenPop 0.3s ease backwards;
}

.ner-entity .ner-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.ner-entity.org { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.ner-entity.tech { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.ner-entity.num { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.ner-entity.misc { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.stat-mini {
    text-align: center;
    padding: 16px 8px;
    background: var(--dark);
    border-radius: 12px;
}

.stat-mini-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-mini-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
}

/* Word Frequency Chart */
.freq-chart {
    grid-column: 1 / -1;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.freq-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.freq-word {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--light);
    min-width: 80px;
    text-align: right;
}

.freq-bar-bg {
    flex: 1;
    height: 8px;
    background: var(--dark);
    border-radius: 4px;
    overflow: hidden;
}

.freq-bar {
    height: 100%;
    background: var(--gradient-3);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.freq-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    min-width: 20px;
}

/* ===== NLP Lab Tabs ===== */
.lab-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.lab-tab {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lab-tab:hover {
    border-color: rgba(236, 72, 153, 0.4);
    color: var(--light);
}

.lab-tab.active {
    background: var(--gradient-2);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.lab-panel {
    display: none;
}

.lab-panel.active {
    display: block;
    animation: fadeSlideUp 0.4s ease;
}

.panel-desc {
    color: var(--gray);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Embedding Explorer */
.embed-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.embed-search {
    flex: 0 0 240px;
    padding: 10px 18px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: var(--dark-3);
    color: var(--light);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.embed-search:focus {
    outline: none;
    border-color: var(--purple);
}

.embed-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--gray);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.embed-canvas-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: var(--dark);
    position: relative;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.08);
}

#embeddingCanvas {
    width: 100%;
    height: 500px;
    display: block;
    cursor: crosshair;
}

/* Semantic Search */
.search-input-area {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.semantic-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: var(--dark-3);
    color: var(--light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.semantic-input:focus {
    outline: none;
    border-color: var(--purple);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-result-card {
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    animation: fadeSlideUp 0.4s ease backwards;
    transition: border-color 0.3s ease;
}

.search-result-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.08);
    transform: translateX(4px);
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.search-result-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.search-result-score {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.search-result-score.high { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.search-result-score.medium { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.search-result-score.low { background: rgba(148, 163, 184, 0.1); color: var(--gray); }

.search-result-text {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.search-result-text mark {
    background: rgba(124, 58, 237, 0.25);
    color: #c4b5fd;
    padding: 1px 3px;
    border-radius: 3px;
}

.search-result-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.search-result-tags span {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan);
}

.search-empty {
    text-align: center;
    color: var(--gray);
    padding: 40px;
    font-size: 0.95rem;
}

/* ===== LinkedIn Embeds - Horizontal Scroll ===== */
.linkedin-scroll-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: -20px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.linkedin-scroll-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 40px 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.4) transparent;
}

.linkedin-scroll-track::-webkit-scrollbar {
    height: 6px;
}

.linkedin-scroll-track::-webkit-scrollbar-track {
    background: transparent;
}

.linkedin-scroll-track::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--purple), var(--pink));
    border-radius: 3px;
}

.linkedin-embed {
    flex: 0 0 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--dark-3);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linkedin-embed:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
}

.linkedin-embed iframe {
    display: block;
    border-radius: 16px;
}

/* ===== Skills ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.skill-category h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.skill-chip {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-chip:hover {
    border-color: var(--purple);
    background: rgba(124, 58, 237, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
}

/* Skill category accent colors */
.skill-ai h3 { color: var(--purple); }
.skill-ai .skill-bar-fill { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.skill-ai .skill-chip:hover { border-color: var(--purple); background: rgba(124, 58, 237, 0.15); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15); }

.skill-data h3 { color: var(--cyan); }
.skill-data .skill-bar-fill { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.skill-data .skill-chip:hover { border-color: var(--cyan); background: rgba(6, 182, 212, 0.15); box-shadow: 0 6px 20px rgba(6, 182, 212, 0.15); }

.skill-tools h3 { color: var(--blue); }
.skill-tools .skill-bar-fill { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.skill-tools .skill-chip:hover { border-color: var(--blue); background: rgba(59, 130, 246, 0.15); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15); }

.skill-cloud h3 { color: var(--orange); }
.skill-cloud .skill-bar-fill { background: linear-gradient(90deg, #f97316, #fb923c); }
.skill-cloud .skill-chip:hover { border-color: var(--orange); background: rgba(249, 115, 22, 0.15); box-shadow: 0 6px 20px rgba(249, 115, 22, 0.15); }

.skill-teach h3 { color: var(--pink); }
.skill-teach .skill-bar-fill { background: linear-gradient(90deg, #ec4899, #f472b6); }
.skill-teach .skill-chip:hover { border-color: var(--pink); background: rgba(236, 72, 153, 0.15); box-shadow: 0 6px 20px rgba(236, 72, 153, 0.15); }

.skill-langs h3 { color: var(--green); }
.skill-langs .skill-bar-fill { background: linear-gradient(90deg, #10b981, #34d399); }
.skill-langs .skill-chip:hover { border-color: var(--green); background: rgba(16, 185, 129, 0.15); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15); }

/* ===== Contact ===== */
.contact-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.2rem;
    margin-top: -40px;
    margin-bottom: 48px;
}

.contact-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px 32px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: var(--pink);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.2), 0 0 20px rgba(236, 72, 153, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 48px 24px 32px;
    color: var(--gray);
    font-size: 0.9rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.4), rgba(124, 58, 237, 0.4), transparent);
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--gray);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--light);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--gradient-2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.25);
}

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

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== Scroll Animations ===== */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Floating decoration dots ===== */
.section-title {
    position: relative;
}

#nlp-lab .section-title::before {
    content: '< />';
    position: absolute;
    top: -10px;
    right: -40px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--purple);
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-2);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 800;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    color: white;
}

/* ===== Active Nav Link ===== */
.nav-links a.active {
    color: var(--light);
}

.nav-links a.active::after {
    width: 100%;
}

/* ===== Skill Bars ===== */
.skill-bar-wrap {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: var(--gradient-2); /* fallback */
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-bar-fill.animated {
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.3);
}

/* ===== Contact SVG Icons ===== */
.contact-icon-svg {
    width: 24px;
    height: 24px;
    color: var(--pink);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.contact-card:hover .contact-icon-svg {
    transform: scale(1.2);
}

/* Contact brand colors */
.contact-linkedin .contact-icon-svg { color: #0a66c2; }
.contact-linkedin:hover {
    border-color: #0a66c2;
    box-shadow: 0 12px 40px rgba(10, 102, 194, 0.2), 0 0 20px rgba(10, 102, 194, 0.1);
}

.contact-github .contact-icon-svg { color: #c9d1d9; }
.contact-github:hover {
    border-color: #c9d1d9;
    box-shadow: 0 12px 40px rgba(201, 209, 217, 0.12), 0 0 20px rgba(201, 209, 217, 0.06);
}

.contact-email .contact-icon-svg { color: var(--pink); }
.contact-email:hover {
    border-color: var(--pink);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.2), 0 0 20px rgba(236, 72, 153, 0.1);
}

/* ===== Cursor Glow ===== */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.07) 0%, rgba(124, 58, 237, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cursor-glow.active {
    opacity: 1;
}

/* ===== 3D Tilt Cards ===== */
.timeline-item,
.edu-card,
.talk-card,
.pub-card,
.stat-card {
    perspective: 800px;
}

.tilt-active {
    transition: none !important;
}

/* ===== Easter Egg Terminal ===== */
.terminal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.terminal-overlay.active {
    display: flex;
    animation: fadeSlideUp 0.3s ease;
}

.terminal-window {
    width: 90%;
    max-width: 600px;
    background: #0d0d1a;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(124, 58, 237, 0.2), 0 0 40px rgba(236, 72, 153, 0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    gap: 12px;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

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

.tdot-red { background: #ff5f56; }
.tdot-yellow { background: #ffbd2e; }
.tdot-green { background: #27c93f; }

.terminal-title {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray);
    text-align: center;
}

.terminal-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.terminal-close:hover { color: var(--light); }

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #22d3ee;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.8;
}

.terminal-line { margin-bottom: 2px; }
.terminal-prompt { color: #f472b6; }
.terminal-cmd { color: var(--light); }
.terminal-output { color: var(--gray); }

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .cursor-glow { display: none; }
    .nav-logo::after, .nav-logo::before { display: none; }
    .nav-logo { animation: none; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 999;
    }

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

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-menu-btn {
        display: flex;
        z-index: 1001;
    }

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

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

    .about-photo-wrapper {
        width: 220px;
        height: 220px;
    }

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

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

    .lang-toggle {
        top: 14px;
        right: 60px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-item {
        padding-left: 44px;
    }

    .timeline-dot {
        left: 4px;
    }

    .pub-card {
        flex-direction: column;
    }

    .pub-accent {
        flex: 0 0 4px;
        min-height: 4px;
        width: 100%;
    }

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

    .sentiment-display {
        flex-wrap: wrap;
    }

    .sentiment-label {
        text-align: left;
        min-width: auto;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
