/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000000;
    --bg-elevated: #0d0d0d;
    --bg-card: #111111;
    --text: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #2997ff, #a855f7, #ec4899, #2997ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 6s ease-in-out infinite;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #30d158, #64d2ff, #5e5ce6, #30d158);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 6s ease-in-out infinite;
    animation-delay: -3s;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.7;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #2997ff, #a855f7, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 6s ease-in-out infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 400;
    transition: color 0.3s;
    letter-spacing: 0.01em;
    position: relative;
}

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

.nav-links a.active {
    color: var(--text);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #2997ff, #a855f7);
    border-radius: 1px;
    animation: navIndicatorIn 0.3s ease forwards;
}

@keyframes navIndicatorIn {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

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

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s;
}

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

.hero-orb {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.14) 0%, rgba(168, 85, 247, 0.07) 40%, transparent 70%);
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hero-content {
    max-width: 860px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-avatar {
    margin-bottom: 28px;
}

.hero-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--bg), var(--bg)) padding-box,
        linear-gradient(135deg, #2997ff, #a855f7, #ec4899) border-box;
    box-shadow: 0 0 40px rgba(41, 151, 255, 0.15),
                0 0 80px rgba(168, 85, 247, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s;
}

.hero-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(41, 151, 255, 0.25),
                0 0 100px rgba(168, 85, 247, 0.12);
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    min-height: 1.4em;
    position: relative;
}

.hero-eyebrow .eyebrow-text {
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-eyebrow .eyebrow-text.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

.hero-eyebrow .eyebrow-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.3125rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.5;
    font-weight: 400;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #f5f5f7;
    color: #000;
    border: none;
    border-radius: 980px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: #ffffff;
    transform: scale(1.04);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #2997ff;
    border: none;
    border-radius: 980px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    text-decoration: underline;
}

.btn-resume svg {
    flex-shrink: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

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

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

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), rgba(41, 151, 255, 0.3), transparent);
    border: none;
    margin: 0;
}

/* ===== STATS ROW ===== */
.stats {
    padding: 80px 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #f5f5f7, rgba(245, 245, 247, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== SECTION SHARED ===== */
.section-label {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 64px;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 140px 24px;
    position: relative;
}

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

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

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    padding: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-card);
}

.about-card-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    transition: all 0.4s;
}

.about-card:hover .about-card-number {
    background: linear-gradient(135deg, #2997ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.about-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    padding: 140px 24px;
    position: relative;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.experience-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2997ff, #a855f7);
    opacity: 0;
    transition: opacity 0.4s;
}

.experience-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-card);
}

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

.experience-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}

.experience-date {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    transition: color 0.4s;
}

.experience-card:hover .experience-date {
    color: var(--text-secondary);
}

.experience-company {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.4s;
}

.experience-card:hover .experience-company {
    color: var(--text);
}

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

.experience-role {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    transition: all 0.4s;
}

.experience-card:hover .experience-role {
    background: linear-gradient(135deg, #2997ff, #a855f7, #2997ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 3s ease-in-out infinite;
}

.experience-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.experience-tags span {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 980px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
}

.experience-card:hover .experience-tags span {
    border-color: var(--border-hover);
    color: var(--text);
}

/* Experience responsive */
@media (max-width: 768px) {
    .experience-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px;
    }

    .experience-meta {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }

    .experience-date::after {
        content: '·';
        margin-left: 12px;
        color: var(--text-tertiary);
    }
}

/* ===== WORK SECTION ===== */
.work {
    padding: 140px 24px;
    position: relative;
}

.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-item:last-child {
    border-bottom: 1px solid var(--border);
}

.project-item::before {
    content: '';
    position: absolute;
    left: -24px;
    right: -24px;
    top: 0;
    bottom: 0;
    background: var(--bg-elevated);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.project-item:hover::before {
    opacity: 1;
}

.project-item:hover {
    padding-left: 24px;
    padding-right: 24px;
}

.project-item:hover .project-arrow {
    transform: translate(4px, -4px);
    color: var(--text);
}

.project-info {
    flex: 1;
}

.project-name {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.project-item:hover .project-name {
    background: linear-gradient(135deg, #2997ff, #a855f7, #2997ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 3s ease-in-out infinite;
}

.project-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 520px;
    line-height: 1.5;
}

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

.project-tags span {
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 980px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
}

.project-item:hover .project-tags span {
    border-color: var(--border-hover);
}

.project-arrow {
    color: var(--text-tertiary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 24px;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 140px 24px;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-block {
    padding: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-block:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.skill-block h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

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

.skill-items span {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 980px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 400;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(12px) scale(0.95);
}

.skill-items span.pill-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-block:hover .skill-items span {
    border-color: var(--border-hover);
    color: var(--text);
}

.skill-items span:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--text);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.1);
}

/* ===== AWARDS SECTION ===== */
.awards {
    padding: 140px 24px;
    position: relative;
}

.awards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.award-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}

.award-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-card);
}

.award-year-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: all 0.4s;
}

.award-card:hover .award-year-badge {
    background: linear-gradient(135deg, #2997ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.award-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.award-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

    .awards {
        padding: 100px 20px;
    }
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 180px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(41, 151, 255, 0.05) 40%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.1875rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.cta-btn {
    position: relative;
    z-index: 1;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 140px 24px;
}

.contact .contact-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 48px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-card);
}

.contact-card-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.4s;
}

.contact-card:hover .contact-card-label {
    background: linear-gradient(135deg, #2997ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-card-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.contact-card:hover .contact-card-value {
    color: var(--text);
}


/* ===== FOOTER ===== */
.footer {
    padding: 60px 24px 32px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #2997ff, #a855f7, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 6s ease-in-out infinite;
}

.footer-left p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.footer-right {
    display: flex;
    gap: 32px;
}

.footer-right a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ===== PAGE ENTRANCE ===== */
body {
    animation: pageEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEntrance {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

::selection {
    background: rgba(41, 151, 255, 0.3);
    color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .section-title {
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .about,
    .experience,
    .work,
    .skills,
    .contact {
        padding: 100px 20px;
    }

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

    .cta {
        padding: 120px 20px;
    }

    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .project-arrow {
        margin-left: 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 2rem;
    }

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

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.back-to-top:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
    color: var(--text);
    transform: translateY(-2px);
}

/* ===== FOCUS STATES ===== */
*:focus-visible {
    outline: 2px solid rgba(41, 151, 255, 0.6);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.back-to-top:focus-visible {
    outline-offset: 4px;
    border-radius: 980px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .skill-items span {
        opacity: 1;
        transform: none;
    }
}
