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

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-blue);
    z-index: 10000;
    transition: width 0.1s ease-out;
}

:root {
    --bg-dark: #0a0a0a;
    --text-light: #e8e8e8;
    --accent-blue: #4d9fff;
    --accent-blue-dim: rgba(77, 159, 255, 0.1);
    --accent-blue-glow: rgba(77, 159, 255, 0.3);
    --gray: #666;
    --gray-light: #888;
    --bg-light: #fafafa;
    --bg-card-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted-light: #666666;
    --border-light: rgba(0, 0, 0, 0.1);
    --accent-blue-light: #0066cc;
}

[data-theme="light"] {
    --bg-dark: var(--bg-light);
    --text-light: var(--text-dark);
    --accent-blue: var(--accent-blue-light);
    --accent-blue-dim: rgba(0, 102, 204, 0.1);
    --accent-blue-glow: rgba(0, 102, 204, 0.3);
    --gray: var(--text-muted-light);
    --gray-light: #444444;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', monospace;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-text-size-adjust: 100%;
}

.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 159, 255, 0.2);
    border-radius: 8px;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

[data-theme="light"] .floating-nav {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 102, 204, 0.2);
}

.floating-nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-color: rgba(77, 159, 255, 0.4);
    box-shadow: 0 4px 30px rgba(77, 159, 255, 0.15);
}

[data-theme="light"] .floating-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 102, 204, 0.4);
    box-shadow: 0 4px 30px rgba(0, 102, 204, 0.15);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-toggle {
    display: none;
}

.nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

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

.resume-btn-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-blue);
    color: var(--bg-dark);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(77, 159, 255, 0.3);
}

.resume-btn-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(77, 159, 255, 0.4);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    top: auto;
    transform: none;
    z-index: 1001;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 159, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-to-top {
    position: fixed;
    right: 75px;
    bottom: 20px;
    z-index: 1001;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 159, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

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

.back-to-top:hover {
    color: var(--accent-blue);
    border-color: rgba(77, 159, 255, 0.5);
    box-shadow: 0 0 15px rgba(77, 159, 255, 0.2);
}

[data-theme="light"] .back-to-top {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 102, 204, 0.2);
}

[data-theme="light"] .back-to-top:hover {
    border-color: rgba(0, 102, 204, 0.5);
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.2);
}

.theme-toggle:hover {
    color: var(--accent-blue);
    border-color: rgba(77, 159, 255, 0.5);
    box-shadow: 0 0 15px rgba(77, 159, 255, 0.2);
}

[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 102, 204, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
    border-color: rgba(0, 102, 204, 0.5);
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.2);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.code-block {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.code-block .comment {
    color: var(--gray);
    display: block;
    margin-bottom: 4px;
}

.code-block .function {
    color: var(--accent-blue);
}

.code-block .string {
    color: #98c379;
}

.code-block .comma {
    color: var(--text-light);
}

.code-block .brace {
    color: var(--accent-blue);
}

.code-block-end {
    font-size: 14px;
    line-height: 1.8;
}

.name {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 700;
    letter-spacing: 8px;
    margin: 24px 0 8px;
    color: var(--text-light);
}

.title {
    font-size: 20px;
    color: var(--accent-blue);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.tagline {
    font-size: 16px;
    color: var(--gray-light);
    margin-bottom: 32px;
}

.contact-line {
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-line .comment {
    color: var(--gray);
}

.contact-line .string {
    color: #98c379;
}

.contact-line .comma {
    color: var(--text-light);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.contact-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-blue);
}

.resume-download {
    margin-top: 16px;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background: var(--accent-blue);
    color: var(--bg-dark);
}

.divider {
    color: var(--gray);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: float 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 11px;
    color: var(--gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    color: var(--accent-blue);
    font-size: 18px;
}

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

.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 48px;
}

.line-number {
    font-size: 14px;
    color: var(--accent-blue);
    font-weight: 600;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-light);
}

.code-block {
    background: rgba(77, 159, 255, 0.03);
    border: 1px solid rgba(77, 159, 255, 0.15);
    border-radius: 4px;
    padding: 24px;
    transition: all 0.3s ease;
}

.code-block:hover {
    border-color: rgba(77, 159, 255, 0.3);
    box-shadow: 0 0 30px rgba(77, 159, 255, 0.1);
}



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

.skill-category {
    animation: skillFadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

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

.skill-block {
    height: 100%;
}

.skill-block .comment {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 16px;
    display: block;
}

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

.tag {
    background: var(--accent-blue-dim);
    border: 1px solid rgba(77, 159, 255, 0.3);
    color: var(--accent-blue);
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

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

.tag:hover::before {
    left: 100%;
}

.tag:hover {
    background: rgba(77, 159, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 159, 255, 0.2), 0 8px 20px rgba(77, 159, 255, 0.15);
}

@keyframes tagBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

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

.tag.animate-in {
    animation: tagBreathe 3s ease-in-out infinite, tagShimmer 2s ease-in-out infinite;
}

.tag:nth-child(1) { animation-delay: 0s, 0s; }
.tag:nth-child(2) { animation-delay: 0.3s, 0.5s; }
.tag:nth-child(3) { animation-delay: 0.6s, 1s; }
.tag:nth-child(4) { animation-delay: 0.9s, 1.5s; }
.tag:nth-child(5) { animation-delay: 1.2s, 2s; }
.tag:nth-child(6) { animation-delay: 1.5s, 2.5s; }

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

.skill-category.animate-in:nth-child(1) { animation: skillBob 3s ease-in-out infinite; }
.skill-category.animate-in:nth-child(2) { animation: skillBob 3.5s ease-in-out 0.5s infinite; }
.skill-category.animate-in:nth-child(3) { animation: skillBob 4s ease-in-out 1s infinite; }
.skill-category.animate-in:nth-child(4) { animation: skillBob 3.2s ease-in-out 1.5s infinite; }

@keyframes skillBlockGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(77, 159, 255, 0); }
    50% { box-shadow: 0 0 25px rgba(77, 159, 255, 0.15); }
}

.skill-block {
    animation: skillBlockGlow 4s ease-in-out infinite;
}

.skill-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(77, 159, 255, 0.25);
}

.skill-block:hover .tag {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(77, 159, 255, 0.4);
}

.tag:hover {
    background: rgba(77, 159, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(77, 159, 255, 0.2), 0 8px 20px rgba(77, 159, 255, 0.15);
}

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

.tag.animate-in {
    animation: tagBreathe 3s ease-in-out infinite, tagShimmer 2s ease-in-out infinite;
}

.tag:nth-child(1) { animation-delay: 0s, 0s; }
.tag:nth-child(2) { animation-delay: 0.3s, 0.5s; }
.tag:nth-child(3) { animation-delay: 0.6s, 1s; }
.tag:nth-child(4) { animation-delay: 0.9s, 1.5s; }
.tag:nth-child(5) { animation-delay: 1.2s, 2s; }
.tag:nth-child(6) { animation-delay: 1.5s, 2.5s; }

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

.skill-category.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.skill-category:nth-child(1).animate-in { transform: translateX(-30px) translateY(0); }
.skill-category:nth-child(2).animate-in { transform: translateX(30px) translateY(0); }
.skill-category:nth-child(3).animate-in { transform: translateY(-30px) translateX(10px); }
.skill-category:nth-child(4).animate-in { transform: translateY(30px) translateX(-10px); }

@keyframes skillFoldIn {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.skill-category.animate-in:nth-child(1) { animation: skillFoldIn 0.5s ease forwards; }
.skill-category.animate-in:nth-child(2) { animation: skillFoldIn 0.5s ease 0.1s forwards; }
.skill-category.animate-in:nth-child(3) { animation: skillFoldIn 0.5s ease 0.2s forwards; }
.skill-category.animate-in:nth-child(4) { animation: skillFoldIn 0.5s ease 0.3s forwards; }

.skill-block:hover .tag {
    animation-play-state: paused;
}

.tag.sparkle::after {
    content: '✦';
    position: absolute;
    font-size: 6px;
    color: var(--accent-blue);
    animation: sparkle 0.6s ease forwards;
}

@keyframes sparkle {
    0% { transform: scale(0) translate(0, 0); opacity: 1; }
    100% { transform: scale(1.5) translate(10px, -10px); opacity: 0; }
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-left: 40px;
}

.experience-list::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    height: 0%;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue), transparent);
    transition: height 1s ease;
}

.experience-list.animate-in::before {
    height: 100%;
}

@keyframes timelineDraw {
    from { height: 0%; }
    to { height: 100%; }
}

.experience-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease, transform 0.4s ease, box-shadow 0.3s ease;
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    background: var(--bg-dark);
    transition: all 0.3s ease;
}

.experience-item.animate-in::before {
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.experience-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.experience-item:hover {
    transform: translateX(8px);
    box-shadow: -8px 0 30px rgba(77, 159, 255, 0.15);
}

.exp-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

@keyframes expPop {
    0% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.exp-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.6;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.exp-details li.animate-in {
    opacity: 1;
    transform: scale(1);
    animation: expPop 0.4s ease forwards;
}

.exp-details li:nth-child(1).animate-in { animation-delay: 0.2s; }
.exp-details li:nth-child(2).animate-in { animation-delay: 0.4s; }
.exp-details li:nth-child(3).animate-in { animation-delay: 0.6s; }
.exp-details li:nth-child(4).animate-in { animation-delay: 0.8s; }

@keyframes pulseBorder {
    0%, 100% { border-color: rgba(77, 159, 255, 0.15); }
    50% { border-color: rgba(77, 159, 255, 0.5); box-shadow: 0 0 20px rgba(77, 159, 255, 0.1); }
}

.experience-item.animate-in {
    animation: pulseBorder 3s ease-in-out infinite;
}

.experience-item:nth-child(2).animate-in { animation-delay: 0.5s; }
.experience-item:nth-child(3).animate-in { animation-delay: 1s; }
.experience-item:nth-child(4).animate-in { animation-delay: 1.5s; }

.exp-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(77, 159, 255, 0.15);
}

.exp-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

.exp-company {
    font-size: 16px;
    color: var(--accent-blue);
}

.exp-type,
.exp-period {
    font-size: 12px;
    color: var(--gray);
    margin-left: auto;
}

.exp-details {
    list-style: none;
    padding: 0;
}

.exp-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.6;
}

.exp-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

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

.project-card {
    opacity: 0;
    transform: translateY(20px) perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: all 0.5s ease, transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    transform-style: preserve-3d;
    touch-action: manipulation;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0) perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.project-card:hover {
    transform: translateY(-4px) perspective(1000px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 20px 40px rgba(77, 159, 255, 0.2);
}

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

.project-card.visible:nth-child(1) { animation: projectFloat 3s ease-in-out 0s infinite; }
.project-card.visible:nth-child(2) { animation: projectFloat 3s ease-in-out 0.5s infinite; }
.project-card.visible:nth-child(3) { animation: projectFloat 3s ease-in-out 1s infinite; }
.project-card.visible:nth-child(4) { animation: projectFloat 3s ease-in-out 1.5s infinite; }

@keyframes cornerFold {
    0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%); }
    100% { clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 100% 100%); }
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(77, 159, 255, 0.1) 50%);
    transition: all 0.4s ease;
}

.project-card:hover::after {
    width: 30px;
    height: 30px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-blue), transparent);
    transform: translateX(-100%);
    opacity: 0;
    transition: none;
}

.project-card:hover::before {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.6s ease-out, opacity 0.3s ease;
}

@keyframes cardScan {
    0% { top: 0; opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

.project-card .scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    pointer-events: none;
}

.project-card:hover .scan-line {
    animation: cardScan 1.5s ease-in-out infinite;
}

.project-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--accent-blue);
    background: var(--accent-blue-dim);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

@keyframes tagSparkle {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 8px var(--accent-blue), 0 0 12px var(--accent-blue); }
}

.project-tag.sparkle {
    animation: tagSparkle 2s ease-in-out;
}

.external-icon {
    color: var(--gray);
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .external-icon {
    opacity: 1;
    color: var(--accent-blue);
}

.project-header {
    margin-bottom: 12px;
}

.project-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

.project-desc {
    font-size: 13px;
    color: var(--gray-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.project-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--accent-blue);
    background: var(--accent-blue-dim);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.education-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    position: relative;
}

.education-list::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue), rgba(77, 159, 255, 0.3), var(--accent-blue));
    transform: translateX(-50%);
    animation: timelinePulse 3s ease-in-out infinite;
}

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

.education-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

@keyframes eduSlideInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    60% { transform: translateX(10px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes eduSlideInRight {
    0% { opacity: 0; transform: translateX(50px); }
    60% { transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

.education-item.visible,
.education-item.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.education-item.visible:nth-child(1),
.education-item.animate-on-scroll:nth-child(1) {
    animation: eduSlideInLeft 0.6s ease forwards;
}

.education-item.visible:nth-child(2),
.education-item.animate-on-scroll:nth-child(2) {
    animation: eduSlideInRight 0.6s ease forwards;
}

@keyframes eduPulseBorder {
    0%, 100% { border-color: rgba(77, 159, 255, 0.15); }
    50% { border-color: rgba(77, 159, 255, 0.5); box-shadow: 0 0 20px rgba(77, 159, 255, 0.1); }
}

.education-item.animate-on-scroll.visible,
.education-item.animate-on-scroll {
    animation: eduPulseBorder 3s ease-in-out infinite;
}

.education-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(77, 159, 255, 0.2);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }
}

.glitch-wrapper {
    position: relative;
}

.about-text-wrapper {
    margin-top: 24px;
}

.about-text-main {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-text-secondary {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-light);
}

.glitch-text {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--text-light);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

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

.glitch-text::before {
    color: #ff0055;
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
    color: #00ffff;
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

.glitch-text:hover::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
}

.glitch-text:hover::after {
    animation: glitch-2 0.4s infinite linear alternate-reverse;
}

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

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

@keyframes glitch-3 {
    0% { opacity: 1; transform: translate(0) skew(0deg); }
    10% { opacity: 0.8; transform: translate(2px, 0) skew(2deg); }
    20% { opacity: 1; transform: translate(-2px, 0) skew(-2deg); }
    30% { opacity: 0.9; transform: translate(0, 2px) skew(0deg); }
    40% { opacity: 1; transform: translate(0, -2px) skew(1deg); }
    50% { opacity: 0.7; transform: translate(2px, 2px) skew(-1deg); }
    60% { opacity: 1; transform: translate(-2px, -2px) skew(0deg); }
    70% { opacity: 0.8; transform: translate(0, 0) skew(3deg); }
    80% { opacity: 1; transform: translate(-2px, 0) skew(-3deg); }
    90% { opacity: 0.9; transform: translate(2px, 0) skew(0deg); }
    100% { opacity: 1; transform: translate(0) skew(0deg); }
}

.terminal-frame {
    background: #1a1a2e;
    border: 1px solid rgba(77, 159, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(77, 159, 255, 0.1);
    position: relative;
}

.terminal-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
}

.terminal-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(77, 159, 255, 0.03) 0%,
        transparent 50%,
        rgba(77, 159, 255, 0.03) 100%
    );
    pointer-events: none;
    z-index: 11;
    animation: terminalScan 4s linear infinite;
}

@keyframes terminalScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.terminal-header {
    background: #12122a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(77, 159, 255, 0.2);
}

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

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

.terminal-title {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray);
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e8e8e8;
    position: relative;
    z-index: 2;
}

.terminal-line {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
}

.prompt {
    color: var(--accent-blue);
    font-weight: bold;
}

.command {
    color: #98c379;
}

.json-key {
    color: #e06c75;
}

.json-value {
    color: #98c379;
}

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

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

.terminal-output {
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 2px solid rgba(77, 159, 255, 0.3);
}

#about.visible .glitch-text::before,
#about.visible .glitch-text::after {
    animation-duration: 2s;
}

#about.visible .glitch-text:hover::before {
    animation-duration: 0.2s;
}

#about.visible .glitch-text:hover::after {
    animation-duration: 0.3s;
}

.edu-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.edu-degree {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

.edu-school {
    font-size: 14px;
    color: var(--accent-blue);
}

.edu-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.edu-gpa {
    color: var(--gray-light);
}

.edu-year {
    color: var(--gray);
}

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

.stats-category {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-label {
    color: var(--gray);
    font-size: 13px;
    font-family: 'Space Grotesk', monospace;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    animation: scanline 3s ease-in-out infinite;
}

@keyframes scanline {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.stat-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--accent-blue);
    font-family: 'Space Grotesk', monospace;
    text-shadow: 0 0 20px rgba(77, 159, 255, 0.5);
    line-height: 1.2;
}

.stat-suffix {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--accent-blue);
    font-family: 'Space Grotesk', monospace;
    text-shadow: 0 0 20px rgba(77, 159, 255, 0.5);
}

.stat-static {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--accent-blue);
    font-family: 'Space Grotesk', monospace;
    text-shadow: 0 0 20px rgba(77, 159, 255, 0.5);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-light);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card:hover {
    border-color: rgba(77, 159, 255, 0.5);
    box-shadow: 0 0 30px rgba(77, 159, 255, 0.2);
}

.stat-card:hover .stat-number,
.stat-card:hover .stat-suffix {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-number.counting {
    font-family: 'Courier New', monospace;
}

.footer {
    padding: 48px 40px;
    border-top: 1px solid rgba(77, 159, 255, 0.1);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    font-size: 14px;
    color: var(--gray-light);
    margin-bottom: 8px;
}

.built-with {
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .floating-nav {
        padding: 8px 12px;
    }
    
    .nav-container {
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-container::-webkit-scrollbar {
        display: none;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 0;
        background: transparent;
        border: none;
    }
    
    .nav-links a {
        font-size: 11px;
        padding: 8px 12px;
        white-space: nowrap;
        border-radius: 16px;
    }
    
    .nav-logo {
        font-size: 14px;
        padding: 8px 4px;
    }

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

    .section {
        padding: 48px 20px;
    }

    .name {
        font-size: clamp(36px, 10vw, 56px);
        letter-spacing: 3px;
    }

    .title {
        font-size: clamp(14px, 4vw, 18px);
    }

    .tagline {
        font-size: 14px;
    }

    .contact-info {
        font-size: 12px;
    }

    .section-title {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .exp-header {
        flex-direction: column;
        gap: 4px;
    }

    .exp-type,
    .exp-period {
        margin-left: 0;
    }

    .exp-details li {
        font-size: 13px;
        line-height: 1.5;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .glitch-text {
        font-size: clamp(28px, 8vw, 40px);
        letter-spacing: 3px;
    }

    .terminal-frame {
        max-width: 100%;
        overflow-x: auto;
    }

    .terminal-body {
        min-width: 280px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stats-category {
        gap: 8px;
    }

    .stat-card {
        padding: 16px 8px;
    }

    .stat-number,
    .stat-suffix,
    .stat-static {
        font-size: clamp(24px, 6vw, 32px);
    }

    .stat-label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .skill-block {
        max-width: 100%;
    }

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

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

    .project-card {
        transform: none !important;
        transition: all 0.3s ease;
    }

    .project-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 24px rgba(77, 159, 255, 0.15);
    }

    .education-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .education-list::before {
        left: 20px;
        transform: none;
    }

    .education-item {
        padding-left: 40px;
    }

    .theme-toggle {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
    }

    .back-to-top {
        right: 60px;
        bottom: 12px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

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

    .footer {
        padding: 32px 20px;
    }

    .code-block {
        padding: 16px;
        overflow-x: auto;
    }

    .code-block,
    .code-block-end {
        font-size: 12px;
        line-height: 1.6;
    }

    .glitch-text::before,
    .glitch-text::after {
        animation-duration: 3s;
    }

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

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

    * {
        -webkit-tap-highlight-color: transparent;
    }

    .tag,
    .project-card,
    .stat-card,
    .skill-block,
    .resume-btn {
        touch-action: manipulation;
    }

    .floating-nav,
    .theme-toggle,
    .back-to-top {
        backdrop-filter: blur(5px);
    }
}

@media (max-width: 480px) {
    .floating-nav {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        max-width: none;
        padding: 0;
        border-radius: 50px;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(77, 159, 255, 0.3);
        z-index: 1000;
    }
    
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px;
    }
    
    .nav-logo {
        font-size: 14px;
        padding: 8px 12px;
        background: var(--accent-blue);
        color: var(--bg-dark) !important;
        border-radius: 50px;
        font-weight: 700;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        flex-shrink: 0;
    }
    
    .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text-light);
        transition: all 0.2s ease;
        border-radius: 2px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    .nav-links {
        position: fixed;
        bottom: 90px;
        left: 20px;
        right: 20px;
        max-height: 0;
        overflow: hidden;
        background: var(--bg-dark);
        border-radius: 16px;
        border: 1px solid rgba(77, 159, 255, 0.3);
        padding: 0;
        flex-direction: column;
        gap: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        max-height: 400px;
        padding: 12px;
    }
    
    .nav-links a {
        font-size: 13px;
        padding: 12px 16px;
        border-radius: 8px;
        text-align: center;
    }
    
    .nav-links a:hover {
        background: var(--accent-blue-dim);
    }
    
    [data-theme="light"] .floating-nav {
        background: rgba(250, 250, 250, 0.95);
    }
    
    [data-theme="light"] .nav-links {
        background: var(--bg-light);
    }

    .hero {
        padding: 90px 16px 50px;
    }

    .section {
        padding: 40px 16px;
    }

    .name {
        font-size: clamp(28px, 10vw, 42px);
        letter-spacing: 2px;
        margin: 16px 0 4px;
    }

    .title {
        font-size: clamp(12px, 3.5vw, 16px);
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .contact-line {
        font-size: 12px;
    }

    .contact-info {
        font-size: 11px;
        gap: 6px;
    }

    .resume-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 32px;
        animation: headerSlide 0.5s ease forwards;
    }

    @keyframes headerSlide {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .section-title {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .code-block,
    .code-block-end {
        font-size: 11px;
        padding: 12px;
        overflow-x: auto;
        max-width: 100%;
    }

    .skills-grid,
    .projects-grid,
    .education-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stats-category {
        gap: 6px;
    }

    .skill-category {
        padding: 0;
    }

    .tags {
        gap: 6px;
    }

    .tag {
        padding: 4px 8px;
        font-size: 10px;
    }

    .tag::before {
        display: none;
    }

    .experience-list {
        padding-left: 24px;
        gap: 16px;
    }

    .experience-item::before {
        left: -22px;
        width: 10px;
        height: 10px;
    }

    .exp-title {
        font-size: 15px;
    }

    .exp-company {
        font-size: 13px;
    }

    .exp-details li {
        font-size: 12px;
        padding-left: 16px;
        margin-bottom: 6px;
    }

    .exp-details li::before {
        font-size: 12px;
    }

    .project-name {
        font-size: 14px;
    }

    .project-desc {
        font-size: 12px;
    }

    .project-tag {
        font-size: 9px;
        padding: 3px 6px;
    }

    .education-item {
        padding-left: 32px;
    }

    .education-list::before {
        left: 12px;
    }

    .edu-degree {
        font-size: 14px;
    }

    .edu-school {
        font-size: 12px;
    }

    .edu-details {
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
    }

    .glitch-text {
        font-size: clamp(24px, 8vw, 32px);
        letter-spacing: 2px;
    }

    .about-text-main {
        font-size: 14px;
    }

    .about-text-secondary {
        font-size: 12px;
    }

    .terminal-frame {
        border-radius: 6px;
    }

    .terminal-header {
        padding: 8px 12px;
    }

    .terminal-title {
        font-size: 10px;
    }

    .terminal-body {
        padding: 12px;
        font-size: 12px;
        min-width: 240px;
    }

    .stat-card {
        padding: 12px 6px;
        animation: statFadeIn 0.5s ease forwards;
        opacity: 0.9;
    }

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

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

    .stat-number,
    .stat-suffix,
    .stat-static {
        font-size: clamp(20px, 7vw, 28px);
    }

    .stat-label {
        font-size: 9px;
        letter-spacing: 0.3px;
        margin-top: 4px;
    }

    .stats-label {
        font-size: 10px;
    }

    .theme-toggle {
        right: 8px;
        bottom: 8px;
        width: 36px;
        height: 36px;
    }

    .back-to-top {
        right: 52px;
        bottom: 8px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .footer {
        padding: 24px 16px;
    }

    .copyright {
        font-size: 12px;
    }

    .built-with {
        font-size: 10px;
    }

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

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

    .glitch-text::before,
    .glitch-text::after {
        animation-duration: 4s;
    }

    .floating-nav,
    .theme-toggle,
    .back-to-top {
        backdrop-filter: blur(4px);
    }

    .floating-nav {
        display: none;
    }
    
    .back-to-top {
        display: none;
    }
    
    .theme-toggle {
        display: none;
    }

}

@media (max-width: 375px) {
    .floating-nav {
        padding: 6px 10px;
        top: 6px;
        max-width: calc(100% - 12px);
    }

    .nav-logo {
        font-size: 10px;
    }

    .nav-toggle span {
        width: 14px;
    }

    .hero {
        padding: 80px 12px 40px;
    }

    .section {
        padding: 32px 12px;
    }

    .name {
        font-size: clamp(24px, 9vw, 32px);
        letter-spacing: 1px;
    }

    .title {
        font-size: clamp(11px, 3vw, 14px);
    }

    .tagline {
        font-size: 12px;
    }

    .section-title {
        font-size: 18px;
    }

    .code-block,
    .code-block-end {
        font-size: 10px;
        padding: 10px;
    }

    .tag {
        padding: 3px 6px;
        font-size: 9px;
    }

    .exp-title {
        font-size: 14px;
    }

    .exp-company {
        font-size: 12px;
    }

    .exp-details li {
        font-size: 11px;
    }

    .project-name {
        font-size: 13px;
    }

    .project-desc {
        font-size: 11px;
    }

    .glitch-text {
        font-size: clamp(20px, 7vw, 28px);
    }

    .terminal-body {
        font-size: 11px;
        padding: 10px;
        min-width: 200px;
    }

    .stat-number,
    .stat-suffix,
    .stat-static {
        font-size: 24px;
    }

    .stat-label {
        font-size: 10px;
    }

    .theme-toggle {
        right: 6px;
        bottom: 6px;
        width: 32px;
        height: 32px;
    }

    .back-to-top {
        right: 44px;
        bottom: 6px;
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .glitch-text::before,
    .glitch-text::after {
        animation-duration: 5s;
    }

    .floating-nav,
    .theme-toggle,
    .back-to-top {
        backdrop-filter: blur(3px);
    }
}

@media (hover: none) and (pointer: coarse) {
    .project-card {
        transform: translateY(0) !important;
        perspective: none !important;
    }

    .project-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 24px rgba(77, 159, 255, 0.15);
    }

    .project-card:hover::before,
    .project-card:hover::after,
    .project-card:hover .scan-line {
        display: none;
    }

    .tag::before {
        display: none;
    }

    .floating-nav,
    .theme-toggle,
    .back-to-top {
        backdrop-filter: blur(5px);
    }

    .skill-block:hover .tag,
    .skill-category:hover .tag {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .tag.animate-in,
    .skill-category.animate-in,
    .experience-item.animate-in,
    .project-card.visible {
        animation: none !important;
    }
    
    .exp-title::after {
        animation: none !important;
    }
    
    .tag::before,
    .project-card::before,
    .project-card::after {
        display: none !important;
    }
}
