@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ====================================
   SEYFOOKSCK.DEV — Black & Gold Theme
   ==================================== */

:root {
    /* Core Palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1a1a1a;
    --bg-elevated: #1e1e1e;

    /* Gold Accent */
    --gold: #fbbf24;
    --gold-light: #fcd34d;
    --gold-dim: #d4a017;
    --gold-tint: rgba(251, 191, 36, 0.08);
    --gold-glow: rgba(251, 191, 36, 0.15);

    /* Text */
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-muted: #6b6b6b;

    /* Borders & Surfaces */
    --border: #222222;
    --border-hover: #333333;

    /* Accents */
    --accent-blue: #60a5fa;
    --accent-red: #f87171;
    --accent-green: #34d399;
    --accent-purple: #a78bfa;

    /* Typography */
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Layout */
    --radius: 10px;
    --radius-lg: 16px;
    --radius-sm: 6px;
    --nav-height: 72px;
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: var(--gold-glow);
    color: var(--gold);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dim);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    display: block;
}

code,
.mono {
    font-family: var(--font-mono);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--text-muted);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.navbar-links-primary,
.navbar-links-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.navbar-links a {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    position: relative;
}

.navbar-links a:hover {
    color: var(--gold);
    background: var(--gold-tint);
}

.navbar-links a.active {
    color: var(--gold);
}

.navbar-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
}

.navbar-links a .nav-num {
    color: var(--gold-dim);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    margin-right: 4px;
}

.lang-switch {
    border: 1px solid var(--border-hover) !important;
    border-radius: var(--radius-sm) !important;
    padding: 7px 14px !important;
    color: var(--text-secondary) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    letter-spacing: 1px;
}

.lang-switch:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: var(--gold-tint) !important;
}

.nav-cta {
    border: 1px solid rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.12);
    color: var(--gold);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-cta:hover {
    border-color: var(--gold);
    background: rgba(251, 191, 36, 0.2);
    color: var(--gold-light);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 16px) 0 90px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-tint) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.08);
    animation: fadeInUp 0.5s ease;
}

.hero-name {
    font-size: clamp(44px, 7vw, 76px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.08;
    margin-bottom: 8px;
    letter-spacing: -2px;
    animation: fadeInUp 0.5s ease 0.1s both;
}

.hero-title {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.8;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease 0.4s both;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    text-decoration: none;
}

.btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-tint);
}

.btn-filled {
    background: var(--gold);
    border-color: var(--gold);
    color: #0a0a0a;
    font-weight: 600;
}

.btn-filled:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #0a0a0a;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.82rem;
}

.btn-danger {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.08);
}

.btn-success {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    margin-bottom: 48px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.section-title .num {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--gold);
    font-weight: 500;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 200px;
    background: linear-gradient(to right, var(--border-hover), transparent);
    margin-left: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 8px;
}

.about-content {
    max-width: 680px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    display: grid;
    gap: 22px;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.about-layout .about-content {
    max-width: none;
}

.about-header {
    margin-bottom: 0;
}

.about-header .section-title {
    white-space: normal;
}

.about-header .section-title::after {
    width: 100%;
    max-width: 160px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-text p + p {
    margin-top: 14px;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    background: var(--bg-card-hover);
}

/* ===== Skill Bars ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.skill-category h4 {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.skill-item {
    margin-bottom: 16px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-level {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.skill-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(to right, var(--gold-dim), var(--gold-light));
    border-radius: 2px;
    transition: width 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    width: 0;
}

/* ===== Projects ===== */
.projects-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-tint);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.project-card {
    padding: 28px;
    cursor: default;
}

.project-card .project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-card .project-icon {
    color: var(--gold);
    font-size: 2.2rem;
    opacity: 0.7;
}

.project-card .project-links-top {
    display: flex;
    gap: 14px;
}

.project-card .project-links-top a {
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: var(--transition);
}

.project-card .project-links-top a:hover {
    color: var(--gold);
}

.project-card .project-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.project-card .project-name a {
    color: var(--text-primary);
}

.project-card .project-name a:hover {
    color: var(--gold);
}

.project-card .project-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-card .project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.project-card .project-stats {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.project-card .project-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-info-item .icon {
    color: var(--gold);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-tint);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===== Social ===== */
.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

/* Fixed side elements */
.side-email,
.side-social {
    position: fixed;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.side-email::after,
.side-social::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    background: var(--border-hover);
}

.side-email {
    right: 40px;
}

.side-social {
    left: 40px;
}

.side-email a {
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.side-email a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

.side-social a {
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: var(--transition);
}

.side-social a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

/* ===== Blog ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.blog-card {
    text-decoration: none;
    cursor: pointer;
}

.blog-card .blog-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-card .blog-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: var(--transition);
}

.blog-card:hover .blog-title {
    color: var(--gold);
}

.blog-card .blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.blog-card .blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-tag {
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--gold-tint);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
}

/* ===== CV ===== */
.cv-section {
    margin-bottom: 24px;
}

.cv-item {
    margin-bottom: 24px;
}

.cv-school,
.cv-job {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.cv-date {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.cv-dept,
.cv-company {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-style: italic;
}

.cv-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== Hero Image ===== */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    width: 100%;
}

.hero-image-container {
    position: relative;
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    margin-left: auto;
    animation: fadeIn 1s ease 0.5s both;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Circular profile image */
    border: 4px solid var(--border);
    position: relative;
    z-index: 2;
    filter: grayscale(20%) contrast(110%);
    transition: var(--transition);
}

.hero-image:hover {
    filter: grayscale(0%) contrast(100%);
    border-color: var(--gold);
    transform: scale(1.02);
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .hero-name {
        font-size: 5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-header {
        margin-bottom: 28px;
    }

    .side-email,
    .side-social {
        display: none;
        /* Hide fixed side elements on tablets */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    /* Mobile Navbar */
    .navbar-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 75%;
        max-width: 300px;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        padding: 40px 28px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--border);
        z-index: 1001;
    }

    .navbar-links-primary,
    .navbar-links-actions {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }

    .navbar-links-actions {
        margin-top: 18px;
        gap: 10px;
    }

    .navbar-links-actions a {
        width: 100%;
        justify-content: center;
    }

    .navbar-links.open {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    /* Hero on Mobile */
    .hero-wrapper {
        flex-direction: column-reverse;
        /* Image on top? No, usually image first on mobile or text first. Let's do Text then Image but standard block flow. Wait, column-reverse puts bottom element first? No. flex-direction: column stacks top-to-bottom. If I want image (2nd child) on top, I use column-reverse? No, Wrapper is Text(1), Image(2). column-reverse -> Image(top), Text(bottom). That's good. */
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
        gap: 32px;
        padding-top: 100px;
        /* Offset for nav */
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .hero-name {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-cta {
        justify-content: center;
    }

    /* Grid Adjustments */
    .skills-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    /* Footer */
    .footer {
        padding-bottom: 80px;
        /* Space for spotify widget if fixed bottom */
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.8rem;
    }

    .project-top {
        flex-direction: column;
        gap: 12px;
    }
}

padding: 16px 0;
border-bottom: 1px solid var(--border);
}

.cv-item:last-child {
    border: none;
}

.cv-item .cv-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
}

.cv-item .cv-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 4px 0;
}

.cv-item .cv-company {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Spotify Widget ===== */
.spotify-widget-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: min(360px, 90vw);
}

.spotify-widget {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    transition: var(--transition);
    cursor: pointer;
}

.spotify-widget:hover {
    border-color: #1db954;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.spotify-widget .album-art {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.spotify-widget .song-info {
    min-width: 0;
    flex: 1;
}

.spotify-widget .now-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #1db954;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spotify-widget .now-label .bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 10px;
}

.spotify-widget .now-label .bar {
    width: 2px;
    background: #1db954;
    border-radius: 1px;
    animation: equalize 0.8s ease infinite;
}

.spotify-widget .now-label .bar:nth-child(1) {
    animation-delay: 0s;
    height: 40%;
}

.spotify-widget .now-label .bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 70%;
}

.spotify-widget .now-label .bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 50%;
}

.spotify-widget .song-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-widget .song-artist {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-widget .spotify-icon {
    color: #1db954;
    font-size: 1rem;
    flex-shrink: 0;
}

.spotify-widget.not-playing .now-label .bar {
    animation: none;
    height: 30%;
}

/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--gold);
}

.footer p {
    margin-bottom: 4px;
}

/* ===== Alert ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.alert-success {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: var(--accent-red);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
}

.badge-active,
.badge-published {
    background: var(--gold-tint);
    color: var(--gold);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.2;
    color: var(--gold);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    z-index: 9999;
    animation: fadeInUp 0.4s ease;
    display: none;
}

.toast.success {
    background: var(--gold);
    color: #0a0a0a;
    display: block;
    font-weight: 600;
}

.toast.error {
    background: var(--accent-red);
    color: white;
    display: block;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes equalize {

    0%,
    100% {
        height: 30%;
    }

    50% {
        height: 100%;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 28px;
    }

    .section-title::after {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-name {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        text-align: center;
        justify-content: center;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-title::after {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .navbar-links {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(22px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 18px;
        padding: calc(var(--nav-height) + 20px) 18px 24px;
        z-index: 999;
        overflow-y: auto;
    }

    .navbar-links-primary,
    .navbar-links-actions {
        width: 100%;
    }

    .navbar-links-primary {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .navbar-links-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 4px;
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }

    .navbar-links-actions a {
        width: 100%;
        justify-content: center;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links a {
        font-size: 1.05rem;
        padding: 12px 14px;
        width: 100%;
        justify-content: flex-start;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: transparent;
        border-radius: 0;
    }

    .navbar-links a.active {
        border-bottom-color: rgba(251, 191, 36, 0.6);
        background: rgba(251, 191, 36, 0.04);
        color: var(--gold);
    }

    .navbar-links a.active::after {
        display: none;
    }

    .menu-toggle {
        display: block;
        z-index: 1000;
    }

    .side-email,
    .side-social {
        display: none;
    }

    .spotify-widget-wrap {
        right: 12px;
        bottom: 12px;
        width: min(280px, 92vw);
    }

    .spotify-widget {
        padding: 10px 14px;
    }

    .spotify-widget .album-art {
        width: 38px;
        height: 38px;
    }

    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.2rem;
    }

    .navbar-links {
        padding: calc(var(--nav-height) + 16px) 14px 20px;
    }

    .navbar-links-actions {
        grid-template-columns: 1fr;
    }

    .navbar-links a {
        font-size: 1rem;
    }

    .project-card .project-tech {
        font-size: 0.68rem;
    }

    .spotify-widget-wrap {
        width: min(240px, 92vw);
    }

    .spotify-widget .song-title {
        font-size: 0.75rem;
    }
}
