/* ══════════════════════════════════════════════
   CSS VARIABLES - DARK MODE
══════════════════════════════════════════════ */
:root {
    --bg-main: #0c0c14;
    --bg-card: rgba(20, 20, 32, 0.65);
    --bg-surface: rgba(30, 30, 48, 0.75);
    --bg-navbar: rgba(12, 12, 20, 0.8);
    --accent: #7c8cf8;
    --accent-secondary: #a78bfa;
    --accent-glow: rgba(124, 140, 248, 0.25);
    --text-primary: #eaeaef;
    --text-secondary: #8e8ea0;
    --text-muted: #4a4a5a;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --dash-color: rgba(255, 255, 255, 0.045);
    --glass-blur: blur(24px);
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Playfair Display', serif;
    --transition-theme: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══════════════════════════════════════════════
   LIGHT MODE
══════════════════════════════════════════════ */
.light-theme {
    --bg-main: #f8f7f4;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-surface: rgba(240, 238, 235, 0.85);
    --bg-navbar: rgba(248, 247, 244, 0.82);
    --accent: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-glow: rgba(99, 102, 241, 0.12);
    --text-primary: #1a1a2e;
    --text-secondary: #64648a;
    --text-muted: #9e9eb0;
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --dash-color: rgba(0, 0, 0, 0.04);
}

/* ══════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -0.011em;
    overflow-x: hidden;
    min-height: 100vh;
    transition:
        background-color var(--transition-theme),
        color var(--transition-theme);
}

body *,
body *::before,
body *::after {
    transition:
        background-color var(--transition-theme),
        border-color var(--transition-theme),
        color var(--transition-theme),
        box-shadow var(--transition-theme),
        opacity 0.3s ease;
}

/* ══════════════════════════════════════════════
   DASHED STROKE BACKGROUND
══════════════════════════════════════════════ */
.dashed-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 59px,
            var(--dash-color) 59px,
            var(--dash-color) 60px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 59px,
            var(--dash-color) 59px,
            var(--dash-color) 60px
        );
    mask-image:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 4px,
            black 4px,
            black 12px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 4px,
            black 4px,
            black 12px
        );
    -webkit-mask-image:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 4px,
            black 4px,
            black 12px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 4px,
            black 4px,
            black 12px
        );
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    transition: opacity var(--transition-theme);
}

.grid-glow {
    position: fixed;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: glowPulse 8s ease-in-out infinite alternate;
    transition: background var(--transition-theme), opacity var(--transition-theme);
}

@keyframes glowPulse {
    0% { opacity: 0.35; transform: translateX(-50%) scale(0.92); }
    100% { opacity: 0.6; transform: translateX(-50%) scale(1.08); }
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 600px;
    height: 54px;
    background: var(--bg-navbar);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    animation: slideDown 0.7s var(--ease-out) forwards;
}

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

.logo {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.022em;
    transition: opacity var(--transition);
}

.logo:hover { opacity: 0.7; }

.nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    width: 36px;
    height: 36px;
}

.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
    position: absolute;
    transition: transform 0.4s var(--ease-out), opacity 0.4s ease;
}

.dark .theme-toggle-btn .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.dark .theme-toggle-btn .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.light-theme .theme-toggle-btn .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.light-theme .theme-toggle-btn .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle-btn:hover,
.menu-btn:hover {
    background-color: var(--border);
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color var(--transition);
}

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--border);
    transition: right 0.45s var(--ease-out);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.sidebar.open { right: 0; }

.sidebar-header {
    height: 74px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: opacity var(--transition), background-color var(--transition);
}

.close-btn:hover {
    opacity: 0.7;
    background-color: var(--border);
}

.sidebar-menu {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color var(--transition), transform var(--transition);
    cursor: pointer;
}

.sidebar-menu a:hover {
    background-color: var(--border);
    transform: translateX(4px);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ══════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════ */
.main-content {
    padding-top: 110px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.container {
    width: calc(100% - 40px);
    max-width: 580px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════
   PROFILE / HERO
══════════════════════════════════════════════ */
.profile-hero {
    text-align: center;
    padding: 40px 0 32px;
}

.profile-pic-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
}

.profile-pic-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--accent), var(--accent-secondary), #f093fb, #4facfe, var(--accent)
    );
    animation: spinRing 4s linear infinite;
    z-index: 0;
}

.profile-pic-ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg-main);
}

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

.profile-pic-glow {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(124, 140, 248, 0.3), rgba(167, 139, 250, 0.3),
        rgba(240, 147, 251, 0.3), rgba(79, 172, 254, 0.3), rgba(124, 140, 248, 0.3)
    );
    filter: blur(16px);
    animation: spinRing 4s linear infinite;
    opacity: 0.45;
    z-index: -1;
}

.profile-pic {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ══════════════════════════════════════════════
   PROFILE NAME - GRADIENT TEXT
══════════════════════════════════════════════ */
.profile-name {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 35%, #f093fb 65%, #4facfe 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradientShift 5s ease-in-out infinite;
    filter: drop-shadow(0 0 14px var(--accent-glow));
    position: relative;
    display: inline-block;
    min-height: 1.2em;
}

.profile-name .typing-cursor {
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background-color: var(--accent-secondary);
    margin-left: 3px;
    animation: cursorBlink 0.75s step-end infinite;
    vertical-align: baseline;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

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

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

.profile-title {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 16px;
    min-height: 1.5em;
}

.profile-title .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: var(--text-secondary);
    margin-left: 2px;
    animation: cursorBlink 0.75s step-end infinite;
    vertical-align: baseline;
    border-radius: 1px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 420px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}

.tag {
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: transform 0.25s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.tag:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.25s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.social-link:hover {
    transform: scale(1.12);
    border-color: var(--border-hover);
    box-shadow: 0 4px 18px var(--accent-glow);
}

/* ══════════════════════════════════════════════
   LINK CARDS
══════════════════════════════════════════════ */
.link-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.25s var(--ease-out), box-shadow 0.3s ease !important;
}

.link-card:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-surface);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.link-icon-wrapper {
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-text h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.link-text p {
    color: var(--text-secondary);
    font-size: 13px;
}

.link-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out), color 0.3s ease !important;
}

.link-card:hover .link-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* ══════════════════════════════════════════════
   PAGE TITLE
══════════════════════════════════════════════ */
.page-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 24px 0 20px;
    padding-left: 4px;
}

/* ══════════════════════════════════════════════
   CATALOG GRID
══════════════════════════════════════════════ */
.catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.catalog-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.25s var(--ease-out), box-shadow 0.3s ease !important;
}

.catalog-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.catalog-image-container {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-surface);
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.catalog-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease !important;
}

.catalog-item:hover img {
    transform: scale(1.05);
}

.catalog-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.catalog-item p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.price {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--accent);
}

.btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 99px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.2s var(--ease-out) !important;
}

.btn:hover {
    opacity: 0.88;
    transform: scale(1.04);
}

/* ══════════════════════════════════════════════
   SERVICE LIST
══════════════════════════════════════════════ */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: border-color 0.3s ease, transform 0.25s var(--ease-out) !important;
}

.service-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.service-icon-box {
    color: var(--accent);
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
    flex-shrink: 0;
}

.service-text {
    flex: 1;
    min-width: 0;
}

.service-text h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.service-text p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.service-text p:last-child { margin-bottom: 0; }
.service-text strong { color: var(--text-primary); }

/* ══════════════════════════════════════════════
   INFO BOX
══════════════════════════════════════════════ */
.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-top: 24px;
}

.info-box h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.info-tag i { color: #34d399; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   CODE WINDOW
══════════════════════════════════════════════ */
.code-window {
    background: #13132b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.light-theme .code-window {
    background: #1e1e2e;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.code-header {
    background: #0e0e22;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.light-theme .code-header { background: #181830; }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

.code-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #7f7f7f;
    margin-left: 10px;
}

.code-snippet {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #d4d4d4;
    overflow-x: auto;
    line-height: 1.8;
    margin: 0;
    white-space: pre;
}

.keyword { color: #ff79c6; }
.string { color: #f1fa8c; }
.comment { color: #6272a4; font-style: italic; }
.function { color: #50fa7b; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
    text-align: center;
    padding: 40px 16px 24px;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.footer p { margin-bottom: 8px; }

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease !important;
    cursor: pointer;
}

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

/* ══════════════════════════════════════════════
   MUSIC PLAYER
══════════════════════════════════════════════ */
.music-fab {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease !important;
    overflow: hidden;
}

.music-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px var(--accent-glow);
    border-color: var(--border-hover);
}

.music-fab.playing {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 8px 28px rgba(0, 0, 0, 0.2);
}

.music-fab-eq {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding-bottom: 13px;
    opacity: 0;
    transition: opacity 0.3s ease !important;
}

.music-fab.playing .music-fab-eq { opacity: 1; }
.music-fab.playing .music-fab-icon { opacity: 0; }

.music-fab-icon {
    transition: opacity 0.3s ease !important;
}

.music-fab-eq span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
    height: 6px;
    animation: none;
}

.music-fab.playing .music-fab-eq span:nth-child(1) { animation: eq 0.8s ease-in-out infinite alternate; }
.music-fab.playing .music-fab-eq span:nth-child(2) { animation: eq 0.6s ease-in-out 0.1s infinite alternate; }
.music-fab.playing .music-fab-eq span:nth-child(3) { animation: eq 0.9s ease-in-out 0.2s infinite alternate; }
.music-fab.playing .music-fab-eq span:nth-child(4) { animation: eq 0.7s ease-in-out 0.05s infinite alternate; }

@keyframes eq {
    0% { height: 4px; }
    100% { height: 18px; }
}

.music-player-card {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    z-index: 899;
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out) !important;
}

.music-player-card.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.music-player-inner {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.music-track-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.music-disc {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: transform 0.1s ease !important;
}

.music-disc.spinning {
    animation: discSpin 4s linear infinite;
}

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

.music-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.music-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.music-progress-wrap { display: flex; flex-direction: column; gap: 6px; }

.music-progress-bar {
    height: 20px;
    background: transparent;
    border-radius: 99px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    z-index: 1;
}

.music-progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.music-progress-bar.dragging .music-progress-track {
    height: 6px;
}

.music-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    width: 0%;
    transition: width 0.15s linear;
    pointer-events: none;
}

.music-progress-fill.no-transition {
    transition: none !important;
}

.music-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px var(--accent-glow);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, left 0.15s linear;
}

.music-progress-thumb.no-transition {
    transition: opacity 0.2s ease !important;
}

.music-progress-bar:hover .music-progress-thumb,
.music-progress-bar.dragging .music-progress-thumb {
    opacity: 1;
}

.music-progress-bar.dragging .music-progress-thumb {
    width: 14px;
    height: 14px;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.music-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.music-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.music-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s var(--ease-out), opacity 0.2s ease !important;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.music-play-btn:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

.music-vol-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

.music-vol-btn:hover { color: var(--accent); background: var(--border); }
.music-vol-btn.muted { color: var(--text-muted); }
.music-loop-btn.active { color: var(--accent); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .navbar {
        top: 12px;
        width: calc(100% - 24px);
        height: 50px;
        padding: 0 18px;
    }

    .catalog-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }

    .profile-name { font-size: 28px; }
    .profile-bio { font-size: 13px; }
    .main-content { padding-top: 96px; }
    .code-snippet { font-size: 11px; }

    .profile-pic-container {
        width: 100px;
        height: 100px;
    }

    .music-fab { bottom: 20px; right: 16px; }
    .music-player-card { right: 16px; width: calc(100vw - 32px); }
}

@media (max-width: 360px) {
    .container { width: calc(100% - 24px); }
}

/* ══════════════════════════════════════════════
   AOS OVERRIDES
══════════════════════════════════════════════ */
[data-aos] {
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}