:root {
    --primary: #ffffff;
    --secondary: #a1a1aa;
    --accent: #22c55e;
    --bg: #000000;
    --surface: #0a0a0a;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}
body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--primary);
    overflow-x: hidden;
}
.font-mono { font-family: 'JetBrains Mono', monospace; }
.cursor-dot, .cursor-outline { display: none; }
.cursor-blob {
    position: fixed;
    top: 0; left: 0;
    width: 28px; height: 28px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999;
    mix-blend-mode: difference;
    will-change: left, top, width, height;
}
.grain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
#waves-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background: transparent;
}
#waves-canvas { display: block; width: 100%; height: 100%; }
.content { position: relative; z-index: 1; }
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    overflow: hidden;
}
.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: white;
    transition: left 0.3s ease;
    z-index: -1;
}
.magnetic-btn:hover::before { left: 0; }
.magnetic-btn:hover { color: black; }
.reveal-text {
    overflow: hidden;
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal-text.is-revealed { clip-path: inset(0 0% 0 0); }
.reveal-text span { display: inline-block; }
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}
.section-content { max-width: 1200px; width: 100%; }
.about-watermark {
    position: absolute;
    top: 50%; left: 0;
    right: 0;
    transform: translateY(-50%);
    font-size: clamp(120px, 20vw, 260px);
    font-weight: 900;
    -webkit-text-stroke: 1px rgba(255,255,255,0.055);
    color: transparent;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    user-select: none;
    letter-spacing: -0.04em;
    overflow: hidden;
    white-space: nowrap;
}
#about { overflow: hidden; }
.skill-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    opacity: 1 !important;
    transform: none !important;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,0.05),transparent);
    transition: left 0.5s;
}
.skill-card:hover::before { left: 100%; }
.skill-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-5px) !important; box-shadow: 0 10px 40px rgba(255,255,255,0.05); }
.skill-card p { color: rgba(255,255,255,0.6) !important; }
.tool-item p { color: rgba(255,255,255,0.55) !important; }
.tool-item {
    border-bottom: 1px solid rgba(255,255,255,0.25);
    opacity: 1 !important;
    transform: none !important;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}
.tool-item:hover { padding-left: 20px; border-color: rgba(255,255,255,0.5); }
.social-icon {
    width: 60px; height: 60px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.social-icon:hover { background: white; border-color: white; transform: scale(1.1); }
.social-icon:hover img { filter: brightness(0) !important; }
.social-icon:hover svg { fill: black; }
.contact-header { margin-bottom: 80px; }
.contact-title {
    font-size: clamp(56px,10vw,140px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: white;
    margin-bottom: 60px;
}
.contact-title-outline { -webkit-text-stroke: 2px rgba(255,255,255,0.25); color: transparent; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
    margin-bottom: 80px;
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-title { font-size: 56px; }
}
.contact-left { display: flex; flex-direction: column; justify-content: space-between; }
.contact-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 14px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}
.contact-email-btn:hover { background: white; color: black; border-color: white; }
.contact-email-btn:hover svg { stroke: black; }
.contact-socials { display: flex; flex-direction: column; }
.contact-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    color: white;
    transition: all 0.25s ease;
    position: relative;
}
.contact-social-row::before {
    content: '';
    position: absolute;
    left: -16px; right: -16px;
    top: 0; bottom: 0;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.contact-social-row:hover::before { opacity: 1; }
.contact-social-row:hover .contact-social-name { color: white; }
.contact-social-row:hover .contact-social-handle { color: rgba(255,255,255,0.9); }
.contact-social-row:hover svg { opacity: 1 !important; }
.contact-social-left { display: flex; align-items: center; gap: 14px; }
.contact-social-name { font-size: 18px; font-weight: 600; color: rgba(255,255,255,0.85); transition: color 0.2s ease; letter-spacing: -0.02em; }
.contact-social-right { display: flex; align-items: center; gap: 8px; }
.contact-social-handle { font-size: 13px; font-family: 'JetBrains Mono',monospace; color: rgba(255,255,255,0.35); transition: color 0.2s ease; }
.contact-footer-line { width: 100%; height: 1px; background: rgba(255,255,255,0.08); margin-top: 20px; }
html { scroll-behavior: smooth; text-rendering: optimizeSpeed; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.content, #waves-canvas, .navbar-container, .liquid-glass-nav, .skill-card, .tool-item, .project-card, .social-icon, .magnetic-btn, .gallery-item img {
    will-change: transform;
    transform: translateZ(0);
}
.about-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 8px; }
.gallery-item { overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.3s ease; opacity: 0.85; }
.gallery-item:hover img { transform: scale(1.04) translateZ(0); opacity: 1; }
.gallery-item--large { grid-column: span 2; max-height: 220px; }
.gallery-item--large img { max-height: 220px; }
.gallery-item--wide { grid-column: span 2; max-height: 160px; }
.gallery-item--wide img { max-height: 160px; }
.lightbox {
    position: fixed; inset: 0;
    z-index: 999999;
    display: grid; place-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1);
}
.lightbox::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-frame {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.lightbox.open .lightbox-frame { transform: translateY(0) scale(1); }
.lightbox-frame::before, .lightbox-frame::after {
    content: '';
    display: block; width: 100%; height: 1px;
    background: linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.18) 30%,rgba(255,255,255,0.18) 70%,transparent 100%);
}
.lightbox img {
    display: block;
    max-width: min(90vw,1100px);
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07), 0 32px 80px rgba(0,0,0,0.7);
}
.lightbox-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 2px 0; }
.lightbox-hint { font-family: 'JetBrains Mono',monospace; font-size: 10px; letter-spacing: 0.18em; color: rgba(255,255,255,0.22); text-transform: uppercase; }
.lightbox-close {
    position: fixed; top: 28px; right: 32px; z-index: 2;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.14); border-radius: 50%;
    background: rgba(255,255,255,0.05); backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.7); font-size: 16px;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.lightbox-close:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.12); color: white; transform: rotate(90deg); }
.horizontal-scroll-wrapper { display: flex; flex-wrap: nowrap; gap: 2rem; padding: 2rem 0; }
.project-card {
    flex: 0 0 400px; height: 500px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: all 0.3s ease;
}
.project-card:hover { border-color: rgba(255,255,255,0.3); transform: scale(1.02); }
.repo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 48px; }
@media (max-width: 900px) { .repo-grid { grid-template-columns: 1fr 1fr; } }
.repo-card {
    display: flex; flex-direction: column; gap: 14px;
    padding: 28px 24px 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    text-decoration: none; color: white;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
    position: relative; overflow: hidden;
}
.repo-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(255,255,255,0.04) 0%,transparent 60%); opacity: 0; transition: opacity 0.35s; }
.repo-card:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.055); transform: translateY(-4px); }
.repo-card:hover::before { opacity: 1; }
.repo-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.repo-card-icon { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); }
.repo-card-arrow { opacity: 0; transform: translate(-4px,4px); transition: opacity 0.25s, transform 0.25s; }
.repo-card:hover .repo-card-arrow { opacity: 1; transform: translate(0,0); }
.repo-card-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: rgba(255,255,255,0.95); }
.repo-card-desc { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.45); flex: 1; }
.repo-card-footer { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.repo-lang-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.repo-lang-label { font-family: 'JetBrains Mono',monospace; font-size: 11px; color: rgba(255,255,255,0.4); }
.repo-card-tag { font-family: 'JetBrains Mono',monospace; font-size: 10px; color: rgba(255,255,255,0.25); margin-left: auto; letter-spacing: 0.04em; }
.repo-view-all { display: flex; justify-content: flex-start; }
.repo-view-all-link { display: inline-flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono',monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); transition: color 0.25s, border-color 0.25s; }
.repo-view-all-link:hover { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); }
.navbar-container {
    position: fixed; top: 0; left: 50%;
    transform: translateX(-50%);
    z-index: 9000; padding: 0;
    width: 100%; max-width: 100%;
    pointer-events: none; transition: none;
}
.navbar-container * { pointer-events: auto; }
.depth-layer { position: absolute; border-radius: 35px; pointer-events: none; }
.depth-1 { inset: -2px; background: transparent; filter: blur(8px); z-index: -1; }
.depth-2 { inset: -4px; background: transparent; filter: blur(16px); z-index: -2; }
.liquid-glass-nav {
    position: relative;
    background: rgba(255,255,255,0.01);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 0; padding: 12px 32px;
    display: flex; justify-content: space-between; align-items: center;
    border: none; border-bottom: 1px solid rgba(255,255,255,0.04);
    box-shadow: none; overflow: hidden;
    font-family: -apple-system,'SF Pro Text','Helvetica Neue',sans-serif;
}
.liquid-glass-nav::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: transparent; border-radius: inherit; pointer-events: none; }
.liquid-glass-nav::after { content: ''; position: absolute; top: 1px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.08) 50%,transparent 100%); }
.nav-brand { font-size: 16px; font-weight: 800; letter-spacing: 0.05em; font-family: 'Space Grotesk',sans-serif; color: rgba(255,255,255,0.95); text-decoration: none; padding: 10px 18px; border-radius: 24px; transition: background 0.2s ease; position: relative; z-index: 2; white-space: nowrap; }
.nav-brand:hover { background: rgba(255,255,255,0.1); }
.nav-links { display: flex; align-items: center; gap: 4px; position: relative; z-index: 2; }
.nav-link { font-size: 14px; font-weight: 500; font-family: 'Space Grotesk',sans-serif; color: rgba(255,255,255,0.82); text-decoration: none; padding: 10px 18px; border-radius: 24px; transition: all 0.2s cubic-bezier(0.4,0,0.2,1); white-space: nowrap; letter-spacing: 0.01em; }
.nav-link:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }
.nav-link.active { background: rgba(255,255,255,0.14); color: white; box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.25); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }
.typing-cursor { display: inline-block; width: 2px; height: 0.85em; background: rgba(255,255,255,0.65); margin-left: 2px; vertical-align: middle; animation: blink-caret 0.75s step-end infinite; }
@keyframes blink-caret { 0%,100%{opacity:1} 50%{opacity:0} }
#discord-widget { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; backdrop-filter: blur(14px); transition: border-color 0.3s; }
#discord-widget:hover { border-color: rgba(255,255,255,0.22); }
.discord-avatar-wrap { position: relative; flex-shrink: 0; }
.discord-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block; }
.discord-dot { position: absolute; bottom: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #000; background: #747f8d; transition: background 0.4s; }
.discord-dot.online  { background: #3ba55c; }
.discord-dot.idle    { background: #faa81a; }
.discord-dot.dnd     { background: #ed4245; }
.discord-dot.offline { background: #747f8d; }
.discord-info { text-align: left; }
.discord-username { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); letter-spacing: -0.01em; }
.discord-activity-text { font-size: 11px; font-family: 'JetBrains Mono',monospace; color: rgba(255,255,255,0.38); margin-top: 2px; max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rep-widget { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 28px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; backdrop-filter: blur(14px); }
.rep-counts { display: flex; gap: 20px; align-items: center; font-family: 'JetBrains Mono',monospace; font-size: 12px; }
.rep-pos-count { color: #22c55e; font-weight: 700; }
.rep-neg-count { color: #ef4444; font-weight: 700; }
.rep-divider   { color: rgba(255,255,255,0.15); }
.rep-buttons-row { display: flex; gap: 8px; }
.rep-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 16px; border-radius: 8px; border: 1px solid; font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono',monospace; background: transparent; letter-spacing: 0.04em; transition: all 0.2s; }
.rep-btn-up   { border-color: rgba(34,197,94,0.4); color: #22c55e; }
.rep-btn-up:hover:not(:disabled)   { background: rgba(34,197,94,0.12); border-color: #22c55e; }
.rep-btn-down { border-color: rgba(239,68,68,0.4); color: #ef4444; }
.rep-btn-down:hover:not(:disabled) { background: rgba(239,68,68,0.12); border-color: #ef4444; }
.rep-btn:disabled { opacity: 0.3; }
.rep-btn.active-vote { opacity: 1 !important; box-shadow: 0 0 12px currentColor; }
.rep-status-text { font-size: 10px; font-family: 'JetBrains Mono',monospace; color: rgba(255,255,255,0.25); letter-spacing: 0.05em; }
.rep-status-text.has-voted { color: rgba(255,255,255,0.5); }
#visitor-counter-text { font-family: 'JetBrains Mono',monospace; font-size: 11px; color: rgba(255,255,255,0.28); letter-spacing: 0.04em; }
.mobile-toast {
    position: fixed; bottom: 80px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9999998;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    background: rgba(15,15,15,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 40px;
    backdrop-filter: blur(16px);
    font-family: 'JetBrains Mono',monospace;
    font-size: 11px; letter-spacing: 0.08em;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.mobile-toast .toast-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.mobile-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.nav-hamburger {
    display: none;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 36px; height: 36px;
    background: none; border: none; padding: 4px;
    z-index: 2; position: relative;
}
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,0.85); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; transform-origin: center; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-drawer {
    display: none;
    position: fixed; inset: 0; z-index: 8999;
    background: rgba(0,0,0,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1);
}
.mobile-drawer.is-mobile { display: flex; }
.mobile-drawer.open { opacity: 1; pointer-events: all; }
.mobile-drawer-nav { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 0 32px; }
.mobile-nav-link {
    display: block; width: 100%; text-align: center;
    font-family: 'Space Grotesk',sans-serif;
    font-size: clamp(28px,8vw,48px); font-weight: 700; letter-spacing: -0.02em;
    color: rgba(255,255,255,0.75); text-decoration: none;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0; transform: translateY(20px);
    transition: color 0.2s, transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s;
}
.mobile-drawer.open .mobile-nav-link { opacity: 1; transform: translateY(0); }
.mobile-drawer.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-drawer.open .mobile-nav-link:nth-child(2) { transition-delay: 0.10s; }
.mobile-drawer.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-drawer.open .mobile-nav-link:nth-child(4) { transition-delay: 0.20s; }
.mobile-drawer.open .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav-link:hover, .mobile-nav-link:active { color: #ffffff; }
html.is-mobile * { cursor: auto !important; }
html.is-mobile .cursor-blob { display: none !important; }
html.is-mobile .nav-hamburger { display: flex; }
html.is-mobile .nav-links { display: none; }
html.is-mobile .navbar-container { width: 100% !important; top: 0 !important; }
html.is-mobile #waves-container { display: none; }
html.is-mobile section { padding: 60px 24px; align-items: flex-start; }
html.is-mobile #home { padding: 80px 24px 48px; min-height: 100svh; }
html.is-mobile #home h1 { font-size: clamp(3.2rem,18vw,6rem); }
html.is-mobile .magnetic-btn { width: 100%; max-width: 320px; padding: 18px 24px; font-size: 13px; }
html.is-mobile #about .grid { grid-template-columns: 1fr !important; gap: 40px !important; }
html.is-mobile .about-gallery { margin-top: 0 !important; }
html.is-mobile .about-watermark { font-size: clamp(80px,30vw,140px); top: 20px; left: 50%; transform: translateX(-50%); }
html.is-mobile #skills .grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
html.is-mobile .skill-card { padding: 1.2rem; }
html.is-mobile #tools .grid { grid-template-columns: 1fr !important; }
html.is-mobile .repo-grid { grid-template-columns: 1fr !important; }
html.is-mobile .contact-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
html.is-mobile .contact-title { font-size: clamp(40px,14vw,80px); margin-bottom: 28px; }
html.is-mobile .contact-email-btn { font-size: 13px; padding: 12px 16px; }
html.is-mobile .contact-social-handle { display: none; }
html.is-mobile .audio-toggle { bottom: 1.2rem; right: 1.2rem; width: 44px; height: 44px; }
html.is-mobile .lightbox img { max-width: 96vw; max-height: 70vh; }
html.is-mobile .lightbox-close { top: 16px; right: 16px; width: 36px; height: 36px; }
.audio-gate {
    position: fixed;
    inset: 0;
    z-index: 99000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.audio-gate.visible {
    opacity: 1;
    pointer-events: all;
}
.audio-gate-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 48px;
    background: rgba(8,8,8,0.72);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    box-shadow: 0 24px 64px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s;
}
.audio-gate-inner:hover {
    border-color: rgba(255,255,255,0.22);
    transform: scale(1.02);
}
.audio-gate-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}
.audio-gate-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: -0.01em;
}
.audio-gate-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
}
body.audio-blurred .content,
body.audio-blurred #waves-container {
    filter: blur(12px);
    transition: filter 0.4s ease;
}
.now-playing {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    width: 300px;
    background: rgba(10,10,10,0.65);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.now-playing.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.np-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
}
.np-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.np-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
}
.np-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.np-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}
.np-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.np-progress-bar:hover { background: rgba(255,255,255,0.16); }
.np-progress-fill {
    height: 100%;
    background: rgba(255,255,255,0.75);
    border-radius: 2px;
    width: 0%;
    transition: width 0.25s linear;
    pointer-events: none;
}
.np-times {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
}
.np-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}
.np-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.85);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.np-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.3);
    transform: scale(1.08);
}
.np-vol-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.np-vol {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.np-vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: transform 0.15s;
}
.np-vol::-webkit-slider-thumb:hover { transform: scale(1.25); }
.np-vol::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    cursor: pointer;
}
@media (max-width: 480px) {
    .now-playing { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
}
