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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --accent: #ffffff;
    --success: #22c55e;
    --error: #ef4444;
}

html.lenis {
    height: auto;
}

.lenis, .lenis body {
    height: auto;
}

@media (min-width: 769px) {
    .lenis body {
        overflow: hidden;
    }
}

.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: absolute;
    left: 6px;
    top: 6px;
    width: auto;
    height: auto;
    overflow: visible;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 10001;
    text-decoration: none;
    font-weight: 600;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    animation: float 30s infinite ease-in-out;
}

.blob-1 {
    width: 700px;
    height: 700px;
    background: linear-gradient(45deg, #fff, #ccc);
    top: -20%;
    left: -20%;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, #aaa, #888);
    top: 30%;
    right: -20%;
    animation-delay: -10s;
}

.blob-3 {
    width: 800px;
    height: 800px;
    background: linear-gradient(45deg, #ddd, #999);
    bottom: -25%;
    left: 35%;
    animation-delay: -20s;
}

.blob-4 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #bbb, #777);
    top: 50%;
    left: 60%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(120px, -180px) scale(1.2) rotate(120deg); }
    66% { transform: translate(-180px, 120px) scale(0.8) rotate(240deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes syncSwipe {
    0% { transform: translateX(0); opacity: 0.9; }
    50% { transform: translateX(2px); opacity: 1; }
    100% { transform: translateX(0); opacity: 0.9; }
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

.glass-mini {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.liquid-glass {
    box-shadow: 0 8px 32px var(--glass-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.08);
}

.liquid-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.liquid-glass:hover::before {
    opacity: 1;
}

.liquid-glass:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 24px 60px var(--glass-shadow),
                inset 0 2px 0 rgba(255, 255, 255, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.15);
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.liquid-glass::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.liquid-glass:active::after {
    animation: ripple 0.6s ease-out;
}

.card-shine {
    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.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover .card-shine {
    left: 100%;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 1000;
    animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-bottom: 1px solid var(--glass-border);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center top;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-left {
    gap: 1.5rem;
}

.nav-right {
    gap: 0.75rem;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-clock {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.clock-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.clock-time {
    font-weight: 700;
}

.navbar.collapsed {
    padding: 1.05rem 2.4rem;
    max-width: 460px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0;
    justify-content: center;
}

.navbar.collapsed .nav-brand,
.navbar.collapsed .nav-links,
.navbar.collapsed .nav-socials,
.navbar.collapsed .lang-toggle,
.navbar.collapsed .mobile-menu-toggle {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    margin: 0;
    display: none;
}

.navbar.collapsed .nav-group {
    display: none;
    width: 0;
    padding: 0;
    margin: 0;
}

.navbar.collapsed .nav-music {
    margin: 0 auto;
    padding: 0.75rem 1.4rem;
    width: 100%;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.95rem;
    min-width: 240px;
}

.navbar.expanded {
    left: 0;
    right: 0;
    max-width: none;
    transform: translateX(0);
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.nav-brand:link,
.nav-brand:visited {
    color: var(--text-primary);
}

.nav-brand:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-initial {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-brand:hover .brand-initial {
    transform: rotate(360deg) scale(1.1);
}

.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #1b1b1b;
    padding: 4px;
    object-fit: cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-wordmark {
    height: 22px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 520px) {
    .brand-logo {
        width: 30px;
        height: 30px;
    }
    .brand-wordmark {
        height: 18px;
    }

    .music-visual {
        padding: 0.75rem;
    }

    .music-cover {
        border-radius: 12px;
    }

    .music-lyrics {
        padding: 0.75rem 1.2rem 0.75rem 0.9rem;
    }

    .shift-btn {
        padding: 0.18rem 0.5rem;
        font-size: 0.7rem;
    }

    .shift-value {
        min-width: 3rem;
    }
}


.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-link {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}


.nav-music {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    width: auto;
    min-width: 240px;
}

.nav-music:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-music.playing {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.nav-music.playing .music-icon {
    animation: musicPulse 1.5s infinite cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--success);
}

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

.music-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.nav-cta {
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.nav-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
}

.nav-socials {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.lang-toggle {
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}


.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.1);
}

.hamburger {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

.mobile-menu {
    position: fixed;
    top: 75px;
    left: 1.5rem;
    right: 1.5rem;
    padding: 2rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-30px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-link {
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 3rem 3rem;
}

.module {
    margin-bottom: 8rem;
}

.module-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 12rem);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    width: fit-content;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-label:hover {
    transform: scale(1.08);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.hero-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.meta-item:hover {
    transform: scale(1.08);
}

.meta-item svg {
    width: 18px;
    height: 18px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 8px var(--success); 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        box-shadow: 0 0 4px var(--success); 
        transform: scale(1.2);
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-card {
    width: 100%;
    padding: 0;
    background: var(--bg-secondary);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.code-card:hover {
    transform: translateY(-8px) rotateY(2deg);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--glass-border);
}

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

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.code-dots span:hover {
    transform: scale(1.4);
}

.code-dots span:nth-child(1) { background: #ff605c; }
.code-dots span:nth-child(2) { background: #ffbd44; }
.code-dots span:nth-child(3) { background: #00ca4e; }

.code-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.code-body {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.line {
    color: var(--text-secondary);
}

.line.empty {
    height: 1.8em;
}

.keyword { color: #ff79c6; }
.class { color: #50fa7b; }
.function { color: #8be9fd; }
.string { color: #f1fa8c; }
.comment { color: #6272a4; }

.module-stats {
    margin: 4rem 0;
}

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

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: grayscale(100%);
    transition: filter 0.4s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover .stat-icon {
    filter: grayscale(0%);
    transform: scale(1.3) rotate(12deg);
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.module-header {
    margin-bottom: 3rem;
}

.module-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.module-badge:hover {
    transform: scale(1.08);
}

.module-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}


.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.highlight:hover {
    transform: translateX(10px);
}

.highlight svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

.skills-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

.skill-header span:last-child {
    color: var(--text-secondary);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--text-secondary));
    border-radius: 50px;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(8px);
}

.work-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.work-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.work-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.work-image img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.work-card:hover .work-image {
    transform: none;
}

.work-card:hover .work-image img {
    transform: scale(1.06);
}

.work-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.work-image.small {
    height: 200px;
}


.work-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tag:hover {
    transform: scale(1.15);
}

.work-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

.work-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: gap 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.work-link:hover {
    gap: 1.2rem;
}

.work-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.work-link:hover svg {
    transform: rotate(45deg) scale(1.2);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.music-lyrics-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 360px;
    overflow: hidden;
    padding: 1.5rem;
    gap: 1.5rem;
    --track-accent: #a6e3ff;
}

.music-visual {
    position: relative;
    border-radius: 18px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.music-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
}

.music-visual .music-artwork {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(34, 197, 94, 0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.music-visual .music-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.music-visual .music-artwork::after {
    content: none;
}

.music-visual:hover .music-artwork img {
    transform: scale(1.04);
}

.track-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.track-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.track-label svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.track-title-wrap h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.track-meta .lastfm-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-shadow: none;
}

.track-meta .lastfm-track {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 0;
    text-shadow: none;
    color: var(--text-primary);
}

.track-meta .music-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0;
    text-shadow: none;
    font-weight: 500;
}

.lyrics-panel {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
}

.lyrics-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
    font-weight: 700;
    color: var(--text-primary);
}

.lyrics-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

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

.lyrics-title {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.lyrics-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.shift-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.shift-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.shift-btn.reset {
    opacity: 0.8;
}

.shift-value {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 3.5rem;
    text-align: right;
}

.music-lyrics {
    position: relative;
    padding: 0.9rem 1.8rem 0.9rem 1.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    z-index: 2;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.music-lyrics strong {
    color: var(--text-primary);
}

.lyrics-lines {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.4rem;
    text-align: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lyrics-lines::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.lyrics-line {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.lyrics-line.active {
    color: var(--text-primary);
    transform: translateX(-6px) scale(1.02);
    font-weight: 700;
    font-size: 1.05rem;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.music-lyrics::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 10px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, var(--track-accent), transparent);
    box-shadow: 0 0 12px rgba(166, 227, 255, 0.6);
    pointer-events: none;
}

.info-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.info-card.music-lyrics-card {
    display: grid;
    padding: 1.5rem;
}


.track-header button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.track-header button:hover {
    transform: scale(1.08);
    background: rgba(0, 0, 0, 0.45);
}

.track-header button.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.track-header button svg {
    width: 16px;
    height: 16px;
}

.track-header button.loading svg {
    animation: syncSwipe 0.8s ease-in-out infinite;
}


.quote {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-icon {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.quote p {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
}

.quote span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.setup h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setup h4 svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

.setup-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setup-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.setup-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.setup-item span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.setup-item span:last-child {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

.module-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4rem 0;
}

.form-wrapper {
    max-width: 600px;
    width: 100%;
    padding: 3rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.form-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.form-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
}

.form-group label {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
    padding: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08),
                0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.6rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
    padding-left: 0.5rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.submit-btn:hover svg {
    transform: translateX(4px) rotate(45deg);
}

.form-status {
    padding: 1.1rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    display: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    margin-top: 0.5rem;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1.5px solid rgba(34, 197, 94, 0.4);
    color: var(--success);
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    color: var(--error);
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.contact-header {
    text-align: center;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card:hover .contact-icon {
    transform: scale(1.3) rotate(15deg);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .module-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }

    .music-lyrics-card {
        grid-column: span 1;
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .music-visual {
        min-height: auto;
    }

    .music-cover {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 7rem 2.5rem 2.5rem;
    }

    .navbar {
        padding: 1rem 2rem;
        gap: 1.5rem;
    }

    .nav-links {
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }

    .nav-music {
        min-width: 200px;
        padding: 0.6rem 1.1rem;
        font-size: 0.9rem;
    }

    .nav-cta {
        padding: 0.6rem 1.1rem;
    }

    .module {
        margin-bottom: 6rem;
    }

    .module-hero {
        gap: 3rem;
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-meta {
        gap: 0.75rem;
    }

    .code-body {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

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

    .stat-card {
        padding: 2.5rem 1.75rem;
    }

    .stat-value {
        font-size: 3rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .work-image {
        height: 260px;
    }

    .work-image.small {
        height: 180px;
    }

    .contact-header {
        padding: 3rem 2rem;
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .meta-item {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .code-header {
        padding: 1rem 1.25rem;
    }

    .code-title {
        font-size: 0.8rem;
    }

    .code-body {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-value {
        font-size: 2.8rem;
    }

    .module-header h2 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .work-card {
        gap: 1.5rem;
    }

    .work-card h3 {
        font-size: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
        gap: 1rem;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 6rem 1.5rem 2rem;
    }
    
    .navbar {
        padding: 0.9rem 1.5rem;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        gap: 1rem;
    }
    
    .brand-name {
        font-size: 0.9rem;
    }
    
    .brand-initial {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }

    .hero-label {
        padding: 0.6rem 1.1rem;
        font-size: 0.82rem;
    }

    .hero-title {
        font-size: clamp(2.4rem, 9vw, 3.6rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .code-body {
        padding: 1.25rem;
        font-size: 0.82rem;
    }

    .module-header h2 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .work-card {
        gap: 1.25rem;
    }

    .work-image {
        height: 230px;
    }

    .work-image.small {
        height: 170px;
    }

    .work-card p {
        font-size: 0.98rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .contact-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .music-lyrics-card {
        padding: 1rem;
        gap: 1rem;
    }

    .music-visual {
        padding: 0.85rem;
    }

    .track-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .track-header button {
        align-self: flex-end;
    }

    .lyrics-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .music-cover {
        aspect-ratio: 1 / 1;
    }

    .lyrics-line {
        font-size: 0.9rem;
    }

    .lyrics-line.active {
        font-size: 1rem;
    }

    .nav-links,
    .nav-socials,
    .lang-toggle {
        display: none;
    }

    .nav-clock,
    .mobile-menu-toggle {
        display: none;
    }

    .nav-right {
        gap: 0;
    }

    .nav-cta {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }

    .nav-center {
        flex: 1;
        min-width: 0;
    }

    .nav-music {
        min-width: 170px;
        max-width: 45vw;
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }

    .music-text {
        max-width: 120px;
    }

    .module {
        margin-bottom: 5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .music-lyrics {
        max-height: 200px;
    }

    .lyrics-lines {
        max-height: 200px;
    }

    .navbar.expanded .nav-center {
        display: none;
    }

    .navbar.collapsed .nav-center {
        display: flex;
    }

    .navbar.collapsed {
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 5.5rem 1.25rem 2rem;
    }

    .module {
        margin-bottom: 4.5rem;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .meta-item {
        width: 100%;
        justify-content: flex-start;
    }

    .code-body {
        font-size: 0.78rem;
    }

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

    .stat-value {
        font-size: 2.6rem;
    }

    .about-highlights {
        gap: 0.75rem;
    }

    .work-image {
        height: 210px;
    }

    .work-image.small {
        height: 150px;
    }

    .work-card h3 {
        font-size: 1.35rem;
    }

    .work-card p {
        font-size: 0.95rem;
    }

    .contact-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-icon {
        width: 46px;
        height: 46px;
    }

    .form-wrapper {
        padding: 2rem 1.25rem;
    }

    .nav-cta {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }

    .nav-music {
        min-width: 140px;
        max-width: 50vw;
        padding: 0.5rem 0.9rem;
    }

    .music-text {
        max-width: 100px;
    }

    .music-lyrics {
        max-height: 180px;
    }

    .lyrics-lines {
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5rem 1rem 1.75rem;
    }

    .hero-label {
        padding: 0.55rem 1rem;
        font-size: 0.78rem;
    }

    .hero-title {
        font-size: clamp(2.1rem, 11vw, 3.1rem);
    }

    .code-header {
        padding: 0.9rem 1rem;
    }

    .code-body {
        padding: 1.1rem;
    }

    .stat-card {
        padding: 1.75rem 1.25rem;
    }

    .stat-icon {
        font-size: 2.2rem;
    }

    .stat-value {
        font-size: 2.4rem;
    }

    .module-header h2 {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .info-card {
        padding: 1.25rem;
    }

    .contact-header {
        padding: 2rem 1rem;
    }

    .contact-header p {
        font-size: 0.95rem;
    }

    .footer {
        padding: 1.5rem 0;
        font-size: 0.85rem;
    }

    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
    }

    .nav-cta {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

    .nav-music {
        min-width: 120px;
        max-width: 55vw;
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
    }

    .music-text {
        max-width: 90px;
    }

    .music-lyrics {
        max-height: 160px;
    }

    .lyrics-lines {
        max-height: 160px;
    }
}