:root {
    --bg-color: #161418;
    --text-color: #e69999;
    --accent-color: #d13f3f;
    --accent-soft: rgba(209, 63, 63, 0.45);
    --shadow-light: #2a2a2a;
    --shadow-dark: #0a0a0a;
    --card-bg: #1a1a2e;
    --section-subtitle: #999;
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --reveal-duration: 0.75s;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox: hide vertical scrollbar */
    -ms-overflow-style: none; /* IE / legacy Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge Chromium */
}

html, body {
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

h1,
h2.section-title,
.hero-title,
.why-title,
.past-works-hero h1,
.shop-page-hero h1,
.modal-title {
    font-family: var(--font-display);
}

.home-page {
    position: relative;
}
.home-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(209, 63, 63, 0.03) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}
.home-page main {
    position: relative;
    z-index: 1;
}

/* Subtle animated backdrop (all main pages) */
body.home-page::after,
body.shop-page::after,
body.updates-page::after,
body.pastwork-page::after {
    content: '';
    position: fixed;
    inset: -20%;
    background:
        radial-gradient(ellipse 100% 80% at 20% 0%, rgba(209, 63, 63, 0.09) 0%, transparent 45%),
        radial-gradient(ellipse 80% 60% at 80% 100%, rgba(120, 40, 90, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift 18s var(--ease-out) infinite alternate;
}

body.home-page main,
body.shop-page main,
body.updates-page main,
body.pastwork-page main,
body.pastwork-page .type-select-section,
body.pastwork-page .past-works-hero {
    position: relative;
    z-index: 1;
}

@keyframes ambientDrift {
    from {
        transform: translate3d(-1.5%, -1%, 0) scale(1.02);
        opacity: 1;
    }
    to {
        transform: translate3d(1.5%, 1%, 0) scale(1.05);
        opacity: 0.92;
    }
}

/* Past Works: richer ambient (cyan / violet / amber) */
body.pastwork-page::after {
    background:
        radial-gradient(ellipse 100% 85% at 12% 8%, rgba(209, 63, 63, 0.12) 0%, transparent 44%),
        radial-gradient(ellipse 90% 75% at 88% 18%, rgba(56, 189, 248, 0.1) 0%, transparent 46%),
        radial-gradient(ellipse 80% 70% at 28% 92%, rgba(167, 139, 250, 0.09) 0%, transparent 44%),
        radial-gradient(ellipse 85% 60% at 78% 86%, rgba(251, 191, 36, 0.08) 0%, transparent 42%),
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(244, 114, 182, 0.06) 0%, transparent 48%);
    animation: ambientDrift 22s var(--ease-out) infinite alternate;
}

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

/* Scroll-triggered reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(10px);
    transition:
        opacity var(--reveal-duration) var(--ease-out),
        transform var(--reveal-duration) var(--ease-out),
        filter var(--reveal-duration) var(--ease-out);
    will-change: opacity, transform, filter;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    will-change: auto;
}

.shop-page-hero.reveal.is-visible .hero-line {
    animation: heroFadeUp 0.75s 0.12s var(--ease-out) both;
}

.updates-page .hero.reveal.is-visible .hero-line {
    animation: heroFadeUp 0.75s 0.12s var(--ease-out) both;
}

/* Compact hero variant (shop, updates) */
.shop-page-hero.hero-compact,
.updates-page .hero.hero-compact {
    padding: 3.5rem 1rem 2.25rem;
}

.shop-page-hero.hero-compact .hero-glow,
.updates-page .hero.hero-compact .hero-glow {
    position: absolute;
    inset: -25% -15% 0;
    background: radial-gradient(ellipse 90% 55% at 50% -5%, rgba(209, 63, 63, 0.11) 0%, transparent 52%);
    pointer-events: none;
}

.shop-page-hero.hero-compact .hero-line,
.updates-page .hero.hero-compact .hero-line {
    width: 56px;
    height: 3px;
    margin: 1rem auto 1.1rem;
    background: linear-gradient(90deg, transparent, rgba(209, 63, 63, 0.85), transparent);
    border-radius: 2px;
    opacity: 0;
}

.shop-page-hero.hero-compact .hero-label,
.updates-page .hero.hero-compact .hero-label {
    animation: none;
    opacity: 0;
    transform: translateY(12px);
}

.shop-page-hero.reveal.is-visible .hero-label,
.updates-page .hero.reveal.is-visible .hero-label {
    animation: heroFadeUp 0.65s var(--ease-out) forwards;
}

.shop-page-hero.reveal.is-visible h1,
.updates-page .hero.reveal.is-visible h1 {
    animation: heroTitleIn 0.85s var(--ease-out) forwards;
}

.shop-page-hero.reveal.is-visible .subtitle,
.updates-page .hero.reveal.is-visible .subtitle {
    animation: heroFadeUp 0.7s 0.12s var(--ease-out) both;
}

.shop-grid .shop-card {
    animation: motionFadeUp 0.55s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 0.045s);
}

.shop-card-image {
    transition: transform 0.55s var(--ease-out);
}

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

.shop-tab {
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
        transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.shop-tab:hover {
    transform: translateY(-1px);
}

.shop-tab.active {
    box-shadow: 0 4px 20px rgba(209, 63, 63, 0.2);
}

.updates-page-list .update-item-full {
    animation: motionFadeUp 0.55s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 0.06s);
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.updates-page-list .update-item-full:hover {
    border-color: rgba(209, 63, 63, 0.28);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.home-page .hero-buttons .hero-btn {
    animation: heroFadeUp 0.55s var(--ease-out) backwards;
}

.home-page .hero-buttons .hero-btn:nth-child(1) {
    animation-delay: 0.26s;
}
.home-page .hero-buttons .hero-btn:nth-child(2) {
    animation-delay: 0.32s;
}
.home-page .hero-buttons .hero-btn:nth-child(3) {
    animation-delay: 0.38s;
}
.home-page .hero-buttons .hero-btn:nth-child(4) {
    animation-delay: 0.44s;
}

.home-page .mistitle {
    animation: heroFadeUp 0.65s 0.22s var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
    body.home-page::after,
    body.shop-page::after,
    body.updates-page::after,
    body.pastwork-page::after {
        animation: none;
        transform: none;
    }

    .pastwork-page .past-works-hero h1 {
        animation: none;
        background-size: 100% auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .shop-grid .shop-card,
    .updates-page-list .update-item-full,
    .home-page .hero-buttons .hero-btn {
        animation: none;
    }

    .home-page .hero-btn:hover i {
        transform: none;
    }

    .pricing-card:hover,
    .pricing-btn:hover {
        transform: none;
    }

    .lang-item:hover .lang-item-icon-wrap {
        transform: none;
    }
}

nav {
    padding: 0.85rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    /* Glass bar — no solid black strip; page shows through */
    background: rgba(22, 20, 26, 0.18);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    transform: translateY(0);
    transition: transform 0.34s var(--ease-out), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

nav.nav-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

nav.nav-hidden .user-dropdown,
nav.nav-hidden #user-dropdown {
    display: none !important;
}

/* Thin hit area: show nav when pointer enters top edge (only while nav is hidden) */
.nav-reveal-zone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 22px;
    z-index: 99;
    pointer-events: none;
    background: transparent;
}

.nav-reveal-zone.nav-reveal-zone--active {
    pointer-events: auto;
}

nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(209, 63, 63, 0.35) 50%, transparent 95%);
    pointer-events: none;
    opacity: 0.85;
}

nav.nav-scrolled {
    background: rgba(18, 16, 22, 0.38);
    border-bottom-color: rgba(209, 63, 63, 0.18);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(209, 63, 63, 0.1);
}

.nav-content.nav-centered {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    position: relative;
}

.logo, .order-btn {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1.5rem;
    padding: 0.35rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    list-style: none;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 1rem;
    white-space: nowrap;
    transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(209, 63, 63, 0.2);
    transform: translateY(-1px);
}

/* Shop link — left of nav menu, same look as Login (white text, tight spacing) */
.nav-shop-btn,
.nav-shop-link {
    display: inline-flex;
    margin-right: 0.75rem;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
    font-family: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-shop-btn:hover,
.nav-shop-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 24px rgba(209, 63, 63, 0.08);
}

.nav-shop-btn i,
.nav-shop-link i {
    font-size: 1rem;
    color: inherit;
}

/* Shop page */
.shop-page main {
    padding-top: 120px;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 3rem;
}

.shop-page-hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.shop-page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #e8a0a0, #d13f3f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-page-hero .subtitle {
    color: #999;
    font-size: 1.05rem;
}

/* Shop filters */
.shop-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.1rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.shop-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.shop-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
}

.shop-search {
    width: 100%;
    padding: 0.5rem 0.9rem 0.5rem 2.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    color: #eee;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.shop-search:focus {
    border-color: var(--accent-color);
}

.shop-select {
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    color: #ddd;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.shop-filter-tabs {
    display: flex;
    gap: 0.25rem;
}

.shop-tab {
    padding: 0.45rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.6rem;
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-tab:hover {
    color: #eee;
    border-color: rgba(209,63,63,0.4);
}

.shop-tab.active {
    background: rgba(209,63,63,0.2);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.shop-no-results {
    text-align: center;
    color: #888;
    padding: 2rem;
}

/* Shop grid & cards */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.shop-card {
    display: flex;
    flex-direction: column;
    background: rgba(28, 28, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    padding: 0;
    font-family: inherit;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(209, 63, 63, 0.3);
}

.shop-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0f0f0f;
}

.shop-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-card-discount-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.35rem;
}

.shop-card-type {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0,0,0,0.7);
    color: #ccc;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 0.35rem;
    text-transform: uppercase;
}

.shop-card-content {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.shop-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #eee;
    margin: 0;
}

.shop-card-desc {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
}

.shop-card-price-wrap {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.shop-card-price {
    font-weight: 700;
    color: var(--accent-color);
}

.shop-card-price--free {
    color: #6bcb77;
}

.shop-card-realprice {
    color: #666;
    text-decoration: line-through;
    margin-left: 0.35rem;
}

.shop-card-discount {
    margin-left: 0.35rem;
    color: #6bcb77;
    font-size: 0.85rem;
}

.shop-card-actions {
    margin-top: 0.75rem;
}
.shop-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.shop-card-btn--free {
    background: #6bcb77;
    color: #fff;
    border: none;
}
.shop-card-btn--free:hover {
    background: #5bb86a;
    color: #fff;
}
.shop-card-btn--discord {
    background: rgba(88, 101, 242, 0.9);
    color: #fff;
    border: none;
}
.shop-card-btn--discord:hover {
    background: #5865f2;
    color: #fff;
}

/* Shop modal */
.shop-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.shop-modal.shop-modal-open {
    display: flex;
}

.shop-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.shop-modal-content {
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    border: 1px solid rgba(209,63,63,0.3);
    border-radius: 1.25rem;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.shop-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    color: #aaa;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s, background 0.2s;
}

.shop-modal-close:hover {
    color: #fff;
    background: rgba(209,63,63,0.3);
}

.shop-modal-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #0f0f0f;
    overflow: hidden;
}

.shop-modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.shop-modal-prev,
.shop-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.shop-modal-prev { left: 0.5rem; }
.shop-modal-next { right: 0.5rem; }

.shop-modal-prev:hover,
.shop-modal-next:hover {
    background: rgba(209,63,63,0.8);
}

.shop-modal-thumbs {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.35rem;
}

.shop-modal-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.shop-modal-dot.active {
    background: var(--accent-color);
}

.shop-modal-body {
    padding: 1.25rem 1.5rem;
}

.shop-modal-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(209,63,63,0.2);
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 0.35rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.shop-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #eee;
    margin: 0 0 0.5rem 0;
}

.shop-modal-desc {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.shop-modal-price-wrap {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.shop-modal-price {
    font-weight: 700;
    color: var(--accent-color);
}

.shop-modal-price--free {
    color: #6bcb77;
}

.shop-modal-realprice {
    color: #666;
    text-decoration: line-through;
    margin-left: 0.35rem;
}

.shop-modal-discount {
    margin-left: 0.35rem;
    color: #6bcb77;
    font-size: 0.9rem;
}

.shop-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shop-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.shop-modal-btn--primary {
    background: var(--accent-color);
    color: #fff;
    border: none;
}

.shop-modal-btn--primary:hover {
    filter: brightness(1.1);
}

.shop-modal-btn--secondary {
    background: rgba(255,255,255,0.08);
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.15);
}

.shop-modal-btn--secondary:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

@media (max-width: 900px) {
    .shop-page main {
        padding-top: 88px;
    }
    .shop-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .shop-filter-tabs {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .shop-page main {
        padding-top: 82px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* Login / Discord button — glass, transparent, same style as Shop, more accent */
.login-btn {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 0.95rem;
    border-radius: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
        box-shadow 0.25s var(--ease-out), transform 0.2s var(--ease-out);
    z-index: 101;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    font-family: inherit;
}

.login-btn:hover {
    background: rgba(209, 63, 63, 0.2);
    border-color: rgba(209, 63, 63, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 28px rgba(209, 63, 63, 0.15);
    transform: translateY(-1px);
}

.login-btn i {
    font-size: 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#login-btn,
.user-menu {
    position: relative;
    z-index: 101;
}

@media (max-width: 900px) {
    nav {
        padding: 0.6rem 0;
    }
    .nav-content.nav-centered {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 0.75rem;
        max-width: 100%;
    }
    .nav-menu {
        padding: 0.35rem 0.5rem;
        gap: 0.15rem;
        border-radius: 1.25rem;
        width: auto;
    }
    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }
    .nav-right {
        gap: 0.4rem;
    }
    .nav-shop-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }
    .shop-dropdown {
        min-width: 260px;
    }
    .login-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }
    main,
    .pastwork-page main {
        padding-top: 88px;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 0.5rem 0;
    }
    .nav-content.nav-centered {
        gap: 0.4rem;
        padding: 0 0.5rem;
    }
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.25rem 0.4rem;
    }
    .nav-shop-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
    .login-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
    main,
    .pastwork-page main {
        padding-top: 82px;
    }
}

.user-menu {
    display: none;
    position: relative;
}

.user-menu-btn .fa-caret-down {
    margin-left: 6px;
}

.user-menu-btn {
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 110%;
    background:#232323;
    border:2px solid #d13f3f;
    border-radius:1rem;
    min-width:160px;
    z-index:200;
    box-shadow:0 4px 16px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.dropdown-item {
    padding:10px 18px;
    font-size:0.98em;
    cursor:pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

#dropdown-credits {
    color:#e69999;
    cursor: default;
}

#dropdown-settings {
    color:#eaeaea;
}

#dropdown-logout {
    color:var(--accent-color);
}

main {
    padding-top: 120px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -30% -20%;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(209, 63, 63, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Home page: pro look — hero upgrade */
.home-page .hero.hero-pro {
    padding: 4rem 1rem 4.25rem;
    position: relative;
    overflow: visible;
}
.home-page .hero-glow {
    position: absolute;
    inset: -20% -15% 0;
    background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(209, 63, 63, 0.12) 0%, transparent 50%);
    pointer-events: none;
}
.home-page .hero-title {
    letter-spacing: -0.03em;
    animation: heroTitleIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.home-page .hero-label {
    animation: heroFadeUp 0.6s ease-out forwards;
}
.home-page .hero-line {
    width: 60px;
    height: 3px;
    margin: 1rem auto 1.25rem;
    background: linear-gradient(90deg, transparent, rgba(209, 63, 63, 0.8), transparent);
    border-radius: 2px;
    animation: heroFadeUp 0.8s 0.2s ease-out both;
}
@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.home-page .subtitle {
    animation: heroFadeUp 0.7s 0.15s ease-out both;
}

/* Hero intro: typewriter — role line, then experience (+ caret) */
.hero-typewriter-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-page .subtitle--typewriter {
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.home-page .hero-typewriter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 4.5rem;
}

.home-page .hero-typewriter-line {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.home-page .hero-typewriter-line--role .hero-typewriter-text {
    font-family: var(--font-display);
    font-size: clamp(1.06rem, 2.4vw, 1.26rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.35;
    min-height: 1.35em;
    background: linear-gradient(135deg, #eec8c8, #e8a0a0 35%, #d13f3f 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-page .hero-typewriter-line--exp .hero-typewriter-text {
    font-size: clamp(0.94rem, 2vw, 1.04rem);
    font-weight: 500;
    color: #adadad;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.5;
    min-height: 1.4em;
    max-width: 22rem;
}

.home-page .hero-typewriter-line.is-typing::after {
    content: '';
    width: 2px;
    height: 1.05em;
    flex-shrink: 0;
    margin-left: 3px;
    margin-bottom: 0.12em;
    border-radius: 1px;
    background: var(--accent-color);
    animation: typewriterCaret 1s steps(1, end) infinite;
}

.home-page .hero-typewriter-line--exp.is-typing::after {
    background: rgba(230, 153, 153, 0.92);
    height: 0.9em;
    margin-bottom: 0.18em;
}

@keyframes typewriterCaret {
    0%,
    45% {
        opacity: 1;
    }
    50%,
    95% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .hero-typewriter-line.is-typing::after {
        animation: none;
        opacity: 0;
    }
}

/* Home stats: per-card accent RGB for borders, glows, and icon chips */
.home-page .stats-grid .stat-item--clients {
    --stat-accent: 96, 165, 250;
    --stat-accent-mid: 147, 197, 253;
}
.home-page .stats-grid .stat-item--visits {
    --stat-accent: 52, 211, 153;
    --stat-accent-mid: 110, 231, 183;
}
.home-page .stats-grid .stat-item--rating {
    --stat-accent: 251, 191, 36;
    --stat-accent-mid: 253, 224, 71;
}
.home-page .stats-grid .stat-item--years {
    --stat-accent: 209, 63, 63;
    --stat-accent-mid: 248, 113, 113;
}

.home-page .stats-grid .stat-item {
    position: relative;
    overflow: hidden;
    border-color: rgba(var(--stat-accent), 0.38);
    background: linear-gradient(
        160deg,
        rgba(var(--stat-accent), 0.2) 0%,
        rgba(22, 24, 32, 0.88) 38%,
        rgba(14, 16, 22, 0.94) 100%
    );
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(var(--stat-accent), 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-page .stats-grid .stat-item::before {
    content: '';
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 70%;
    background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(var(--stat-accent), 0.22) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.home-page .stats-grid .stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, transparent, rgb(var(--stat-accent-mid)), transparent);
    opacity: 0.95;
    pointer-events: none;
    z-index: 1;
}

.home-page .stats-grid .stat-item > * {
    position: relative;
    z-index: 2;
}

.home-page .stats-grid .stat-item:hover {
    border-color: rgba(var(--stat-accent), 0.55);
    background: linear-gradient(
        165deg,
        rgba(var(--stat-accent), 0.28) 0%,
        rgba(28, 30, 40, 0.92) 40%,
        rgba(18, 20, 28, 0.96) 100%
    );
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(var(--stat-accent), 0.22),
        0 0 40px rgba(var(--stat-accent), 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.home-page .stats-grid .stat-item .stat-value {
    text-shadow: 0 0 28px rgba(var(--stat-accent), 0.35), 0 2px 12px rgba(0, 0, 0, 0.35);
}

.home-page .stats-grid .stat-item .stat-label {
    color: rgba(255, 255, 255, 0.58);
}

.home-page .stats-grid .stat-item:hover .stat-label {
    color: rgba(255, 255, 255, 0.72);
}
.home-page .hero-buttons {
    margin-top: 1.35rem;
    padding-bottom: 0.35rem;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Clean section header: pill + title + subtitle (reference style) */
.section-pill {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    border: 1px solid rgba(209, 63, 63, 0.5);
    border-radius: 2rem;
    margin-bottom: 0.75rem;
    background: transparent;
}
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}
.section-header .section-pill + h2,
.section-header .section-pill + .section-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.section-header .section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0 0 0.5rem 0;
}
.section-header .section-subtitle {
    font-size: 1.05rem;
    color: var(--section-subtitle);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}
.section-header {
    margin-bottom: 1.75rem;
    margin-top: 3rem;
}
.stats-grid + .section-header {
    margin-top: 3rem;
}
.section-header + .active-projects,
.section-header + .languages-grid,
.section-header + .collaborators-grid {
    margin-top: 0;
}

.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 1.5rem;
    max-width: 1180px;
    margin: 0 auto 2.5rem auto;
    padding: 0 0.25rem;
}

.collab-card {
    display: flex;
    flex-direction: column;
    background: rgba(28, 28, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.15rem;
    overflow: hidden;
    color: inherit;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.collab-card:hover {
    transform: translateY(-6px);
    border-color: rgba(209, 63, 63, 0.35);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(209, 63, 63, 0.1);
}

.collab-shot {
    height: 120px;
    overflow: hidden;
    background: #0a0a0a;
}

.collab-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    display: block;
}

.collab-info {
    padding: 1.05rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.collab-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin: 0;
    line-height: 1.25;
}

.collab-verified {
    font-size: 0.88rem;
    color: #9cb9ff;
}

.collab-meta {
    font-size: 0.9rem;
    color: #a8a8a8;
    margin: 0;
    line-height: 1.4;
}

.collab-meta--platform {
    font-size: 0.86rem;
    color: #9e9e9e;
}

.collab-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.collab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #eaeaea;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.collab-link:hover {
    background: rgba(209, 63, 63, 0.15);
    border-color: rgba(209, 63, 63, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.collab-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.collab-link--youtube i {
    color: #ff4d4d;
}

.collab-link--roblox i {
    color: #e8e8e8;
}

.languages-grid {
    margin-top: 0;
}
.why-section-wrap .section-header {
    margin-bottom: 2rem;
    margin-top: 3rem;
}
.why-section-wrap {
    margin-top: 0;
}
.section-header + .pricing-grid,
.section-header + .updates-section,
.section-header + .contact-form {
    margin-top: 0;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    border: 1px solid rgba(209, 63, 63, 0.5);
    border-radius: 2rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.hero h1 {
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #e8a0a0 0%, #d13f3f 50%, #a82d2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.subtitle {
    font-size: 1.15rem;
    color: #b8b8b8;
    max-width: 560px;
    margin: 0 auto 0.5rem;
    line-height: 1.5;
}

.mistitle {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.42);
    max-width: 34rem;
    margin: 0.35rem auto 0;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.tools {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: var(--bg-color);
    box-shadow: 5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
    transition: transform 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
}

.tool-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.tool-item span {
    font-size: 0.9rem;
    color: #b3b3b3;
}

/* No filter: avoids clipping card shadows / glow (same issue as .languages-grid). */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.25rem;
    max-width: 44rem;
    width: 100%;
    margin: 2.75rem auto 2.75rem;
    padding: 0.5rem 0.5rem 1.75rem;
    overflow: visible;
    align-items: stretch;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    justify-items: stretch;
}

.stats-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item {
    --stat-accent: 209, 63, 63;
    --stat-accent-mid: 232, 160, 160;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.55rem;
    min-height: 11.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    padding: 1.65rem 1.15rem 1.5rem;
    transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
        transform 0.25s var(--ease-out);
    width: 100%;
    max-width: none;
}

.stat-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.stat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    margin-bottom: 0.15rem;
    background: rgba(var(--stat-accent), 0.18);
    border: 1px solid rgba(var(--stat-accent), 0.42);
    color: rgb(var(--stat-accent-mid));
    box-shadow: 0 0 20px rgba(var(--stat-accent), 0.2);
    transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out), transform 0.25s var(--ease-out);
}

.stat-item:hover .stat-icon-wrap {
    background: rgba(var(--stat-accent), 0.32);
    border-color: rgba(var(--stat-accent), 0.65);
    color: #fff;
    box-shadow: 0 0 28px rgba(var(--stat-accent), 0.4);
    transform: scale(1.06);
}

.stat-icon-wrap i {
    font-size: 1.35rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #fff;
    margin-bottom: 0.1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-value .star {
    color: gold;
    font-size: 2rem;
    vertical-align: middle;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.45;
    max-width: 14rem;
    letter-spacing: 0.01em;
}

/* Active Projects (Roblox games in development) */
.active-projects {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.active-projects.visible {
    opacity: 1;
    transform: translateY(0);
}

.active-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: rgba(28, 28, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(209, 63, 63, 0.3), 0 0 32px rgba(209, 63, 63, 0.06);
    border-color: rgba(209, 63, 63, 0.4);
}
.home-page .project-card {
    border-radius: 1.15rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.home-page .section-pill {
    background: rgba(209, 63, 63, 0.12);
    box-shadow: 0 0 20px rgba(209, 63, 63, 0.08);
}
.home-page .section-title {
    letter-spacing: -0.02em;
    font-weight: 800;
}

.project-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0f0f0f;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-card:hover .project-card-img {
    transform: scale(1.05);
}

.project-card-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    background: rgba(209, 63, 63, 0.95);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.project-card-body {
    padding: 1rem 1.15rem;
}

.project-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #eaeaea;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.project-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: #b8b8b8;
}

.project-stat i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.project-stat small {
    color: #888;
    font-size: 0.8rem;
}

.active-projects-empty {
    text-align: center;
    color: #888;
    font-size: 1rem;
    padding: 2rem 1rem;
    max-width: 520px;
    margin: 0 auto;
}

.active-projects-empty code {
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.9em;
}

.active-projects-file-hint {
    max-width: 44rem;
    margin: 0 auto 1.25rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    background: rgba(209, 63, 63, 0.1);
    border: 1px solid rgba(209, 63, 63, 0.28);
    border-radius: 0.85rem;
}

.active-projects-file-hint code {
    font-size: 0.82em;
    padding: 0.1rem 0.35rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.3rem;
}

.active-projects-file-hint strong {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 600px) {
    .active-projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }
    .stat-item {
        min-height: 0;
    }
    .nav-content.nav-centered {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 1.5rem;
    }
    .hero-label {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
    }
    h1 {
        font-size: 2.25rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .mistitle {
        font-size: 0.8rem;
    }
    .tools {
        gap: 1rem;
    }
    .tool-item {
        padding: 1rem;
    }
}

.site-footer {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
    padding: 3.25rem 1.5rem 2.5rem;
    color: #f0f0f0;
    font-size: 1rem;
    border-radius: 1.75rem 1.75rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    background: linear-gradient(175deg, rgba(26, 22, 32, 0.55) 0%, rgba(14, 12, 18, 0.96) 42%, #0a090d 100%);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35), 0 -1px 0 rgba(209, 63, 63, 0.12);
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 70% at 50% -30%, rgba(209, 63, 63, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(90, 40, 120, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(209, 63, 63, 0.55), rgba(232, 160, 160, 0.35), rgba(209, 63, 63, 0.55), transparent);
    pointer-events: none;
    opacity: 0.9;
}

.clean-footer, .footer-main {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 0.5rem 1rem 0;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f0e0e0, #e8a0a0 40%, #d13f3f 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    font-size: 1.02rem;
    color: #d4d4d4;
    margin-bottom: 0.1rem;
    line-height: 1.6;
    max-width: 34rem;
}

.footer-desc strong {
    color: #fff;
    font-weight: 600;
}

.footer-location {
    font-size: 0.95rem;
    color: #9a9a9a;
    margin-bottom: 0.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-location::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.75;
    box-shadow: 0 0 10px rgba(209, 63, 63, 0.5);
}

.footer-contact {
    font-size: 1rem;
    color: #c8c8c8;
    margin-bottom: 0.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.45em;
    color: var(--accent-color);
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(209, 63, 63, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-contact a:hover {
    color: #ffb3b3;
    border-bottom-color: rgba(209, 63, 63, 0.6);
}

.footer-social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.footer-social-row a {
    color: #eaeaea;
    font-size: 1.05rem;
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.footer-social-row a:hover {
    color: #fff;
    background: rgba(209, 63, 63, 0.22);
    border-color: rgba(209, 63, 63, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(209, 63, 63, 0.2);
}

/* No filter on this container: filter creates a paint boundary and clips
   child box-shadows / backdrop bleed (hover glow looks “cut off”). */
.languages-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    margin: 2.5rem auto 0 auto;
    flex-wrap: wrap;
    padding: 1.5rem 0.75rem 2.5rem;
    overflow: visible;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.languages-grid.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Language cards — brand-tinted glass (RGB in --lang / --lang-2) */
.lang-item--python {
    --lang: 55, 118, 171;
    --lang-2: 255, 212, 59;
}
.lang-item--lua {
    --lang: 0, 162, 255;
    --lang-2: 120, 200, 255;
}
.lang-item--html {
    --lang: 228, 86, 46;
    --lang-2: 255, 140, 90;
}
.lang-item--js {
    --lang: 247, 223, 30;
    --lang-2: 252, 234, 120;
}

.lang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(
        165deg,
        rgba(var(--lang), 0.16) 0%,
        rgba(22, 24, 30, 0.82) 42%,
        rgba(16, 18, 24, 0.92) 100%
    );
    border-radius: 1.35rem;
    border: 1px solid rgba(var(--lang), 0.38);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(var(--lang), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    padding: 1.15rem 1.5rem 1rem;
    min-width: 7.5rem;
    max-width: 9.5rem;
    transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
        transform 0.28s var(--ease-out);
    margin-bottom: 0.5rem;
}

.lang-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, transparent, rgb(var(--lang-2)), transparent);
    opacity: 0.9;
    pointer-events: none;
}

.lang-item::after {
    content: '';
    position: absolute;
    inset: -35% -25% auto;
    height: 65%;
    background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(var(--lang), 0.22) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.lang-item-icon-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.65rem;
    border-radius: 1rem;
    background: rgba(var(--lang), 0.18);
    border: 1px solid rgba(var(--lang), 0.45);
    box-shadow: 0 0 26px rgba(var(--lang), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.28s var(--ease-out),
        background 0.3s var(--ease-out);
}

.lang-item:hover {
    border-color: rgba(var(--lang), 0.62);
    background: linear-gradient(
        165deg,
        rgba(var(--lang), 0.28) 0%,
        rgba(28, 30, 38, 0.88) 45%,
        rgba(20, 22, 30, 0.95) 100%
    );
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34), 0 0 40px rgba(var(--lang), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.lang-item:hover .lang-item-icon-wrap {
    background: rgba(var(--lang), 0.3);
    border-color: rgba(var(--lang-2), 0.65);
    box-shadow: 0 0 36px rgba(var(--lang), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: scale(1.06);
}

.lang-icon {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
}

.lang-item-label {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: center;
    text-shadow: 0 0 20px rgba(var(--lang), 0.35);
}

/* One continuous accent wash across Languages + Why (avoids a hard seam between sections). */
.home-accent-bridge {
    position: relative;
    margin: 0 -1rem;
    padding: 0 1rem;
    overflow: visible;
}
.home-accent-bridge::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 100% 42% at 50% 18%, rgba(209, 63, 63, 0.075) 0%, transparent 54%),
        radial-gradient(ellipse 95% 48% at 50% 52%, rgba(209, 63, 63, 0.055) 0%, transparent 56%),
        radial-gradient(ellipse 85% 38% at 50% 92%, rgba(120, 40, 90, 0.045) 0%, transparent 52%);
    pointer-events: none;
}
.home-accent-bridge > .section-header,
.home-accent-bridge > .languages-grid,
.home-accent-bridge > .why-section-wrap {
    position: relative;
    z-index: 1;
}

/* Why section: clean block (accent comes from .home-accent-bridge::before) */
.why-section-wrap {
    position: relative;
    padding: 3.5rem 1rem 2.5rem;
    margin: 0;
    overflow: visible;
}
.why-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
    color: #fff;
}
.why-title .accent {
    color: var(--accent-color);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 960px;
    margin: 0 auto 0 auto;
    justify-items: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1), filter 0.8s cubic-bezier(0.4,0,0.2,1);
}

.why-grid.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.why-card {
    background: var(--card-bg);
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    padding: 2rem 1.25rem 1.75rem;
    min-width: 0;
    max-width: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
    text-align: center;
}
.why-card:hover {
    box-shadow: 0 14px 44px rgba(0,0,0,0.35), 0 0 0 1px rgba(209, 63, 63, 0.2), 0 0 28px rgba(209, 63, 63, 0.06);
    border-color: rgba(209, 63, 63, 0.25);
    transform: translateY(-5px);
}
.home-page .why-card {
    border: 1px solid rgba(255,255,255,0.07);
}
.why-card-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: rgba(209, 63, 63, 0.12);
    color: #fff;
    box-shadow: 0 0 28px rgba(209, 63, 63, 0.35);
}
.why-card-icon-wrap i {
    font-size: 1.35rem;
    color: #fff;
}
.why-card i:not(.why-card-icon-wrap i) {
    display: none;
}
.why-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #fff;
}
.why-card-desc {
    font-size: 0.95rem;
    color: #b0b0b0;
    font-weight: 400;
    line-height: 1.55;
}
.why-card-desc .accent {
    color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.tos-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 3.5rem 0 2.2rem 0;
    letter-spacing: 1px;
    color: var(--accent-color);
}

/* TOS modal — centered, frosted glass frame, red CTA */
.tos-dialog {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.15rem;
    width: min(32rem, calc(100vw - 2.5rem));
    max-width: 100%;
    max-height: min(86vh, 720px);
    margin: auto;
    position: fixed;
    inset: 0;
    background: rgba(18, 16, 22, 0.48);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    color: #e4e4e7;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
}
.tos-dialog::backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.tos-dialog-inner {
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 720px);
    min-height: 0;
}
.tos-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1.1rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.12);
}
.tos-dialog-title {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.25;
}
.tos-dialog-close {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.tos-dialog-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.tos-dialog-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.35rem 0.25rem 1.35rem 1.5rem;
    margin-right: 0.35rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.04);
    -webkit-overflow-scrolling: touch;
}
.tos-dialog-sections {
    margin: 0;
    padding: 0 1.35rem 0.25rem 1.5rem;
    list-style: decimal;
    color: #9ca3af;
}
.tos-dialog-sections > li {
    margin-bottom: 1.65rem;
    padding-left: 0.5rem;
}
.tos-dialog-sections > li:last-child {
    margin-bottom: 0.5rem;
}
.tos-dialog-h3 {
    margin: 0 0 0.55rem 0;
    font-size: 1.02rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: #f4f4f5;
    letter-spacing: 0.01em;
}
.tos-dialog-sections p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #a1a1aa;
}
.tos-dialog-sections strong {
    color: #d4d4d8;
    font-weight: 600;
}
.tos-dialog-body::-webkit-scrollbar {
    width: 8px;
}
.tos-dialog-body::-webkit-scrollbar-track {
    background: transparent;
    margin: 0.35rem 0;
    border-radius: 10px;
}
.tos-dialog-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.tos-dialog-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
    background-clip: padding-box;
}
.tos-dialog-footer {
    padding: 1.1rem 1.35rem 1.35rem;
    margin: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%);
}
.tos-dialog-gotit {
    width: 100%;
    margin: 0;
    padding: 0.95rem 1.25rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #e04a4a 0%, var(--accent-color) 45%, #a82f2f 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: filter 0.2s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out);
    box-shadow: 0 4px 22px rgba(209, 63, 63, 0.4);
}
.tos-dialog-gotit:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 28px rgba(209, 63, 63, 0.5);
}
.tos-dialog-gotit:active {
    transform: scale(0.99);
}

/* No parent filter — avoids clipping shadows / soft gradients on cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto 2.75rem;
    padding: 0 0.25rem;
    justify-items: stretch;
    align-items: stretch;
    overflow: visible;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.pricing-grid.visible {
    opacity: 1;
    transform: translateY(0);
}
.pricing-card {
    --tier-rgb: 209, 63, 63;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(155%);
    -webkit-backdrop-filter: blur(18px) saturate(155%);
    padding: 0;
    min-width: 0;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
        transform 0.28s var(--ease-out);
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(var(--tier-rgb), 0.85), transparent);
    opacity: 0.9;
    pointer-events: none;
}
.pricing-card--advanced {
    --tier-rgb: 52, 211, 153;
}
.pricing-card--pro {
    --tier-rgb: 245, 158, 11;
}
.pricing-card-head {
    text-align: center;
    padding: 1.75rem 1.35rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(var(--tier-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}
.home-page .pricing-card:hover {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32), 0 0 36px rgba(var(--tier-rgb), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--tier-rgb), 0.28);
}

/* ========== Home page: glass effect (frosted, transparent) ========== */
.home-page .hero-label {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Hero CTAs: brand-tinted glass + glow (RGB tuples for rgba(var(--x), a)) */
.home-page .hero-btn {
    --hero-a: 209, 63, 63;
    --hero-b: 248, 113, 113;
    position: relative;
    overflow: hidden;
    padding: 0.7rem 1.35rem;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    background: linear-gradient(
        135deg,
        rgba(var(--hero-a), 0.5) 0%,
        rgba(18, 20, 28, 0.78) 48%,
        rgba(14, 16, 22, 0.92) 100%
    );
    border: 1px solid rgba(var(--hero-a), 0.72);
    border-radius: 2rem;
    box-shadow:
        0 4px 22px rgba(0, 0, 0, 0.28),
        0 0 28px rgba(var(--hero-a), 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out),
        background 0.28s var(--ease-out);
}

.home-page .hero-btn--profile {
    --hero-a: 226, 35, 26;
    --hero-b: 255, 107, 90;
}

.home-page .hero-btn--twitter {
    --hero-a: 29, 155, 240;
    --hero-b: 125, 205, 255;
}

.home-page .hero-btn--discord {
    --hero-a: 88, 101, 242;
    --hero-b: 168, 178, 255;
}

.home-page .hero-btn--email {
    --hero-a: 209, 63, 63;
    --hero-b: 251, 146, 60;
}

.home-page .hero-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--hero-b), 0.95);
    background: linear-gradient(
        135deg,
        rgba(var(--hero-a), 0.65) 0%,
        rgba(var(--hero-b), 0.28) 42%,
        rgba(22, 24, 32, 0.88) 100%
    );
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(var(--hero-a), 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.home-page .hero-btn i {
    filter: drop-shadow(0 0 12px rgba(var(--hero-a), 0.55));
    transition: filter 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.home-page .hero-btn:hover i {
    filter: drop-shadow(0 0 16px rgba(var(--hero-b), 0.85));
    transform: scale(1.08);
}

.home-page .project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.home-page .project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 32px rgba(209, 63, 63, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.home-page .why-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.home-page .why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35), 0 0 28px rgba(209, 63, 63, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.home-page .why-card-icon-wrap {
    box-shadow: 0 0 28px rgba(209, 63, 63, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.home-page .pricing-card {
    background: rgba(20, 22, 28, 0.72);
}
.home-page .pricing-card:hover {
    background: rgba(26, 28, 36, 0.82);
}
.home-page .section-pill {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(209, 63, 63, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.home-page .update-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.home-page .updates-preview {
    border-radius: 0.85rem;
}
.home-page .updates-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.home-page .updates-link:hover {
    background: rgba(209, 63, 63, 0.15);
    border-color: rgba(209, 63, 63, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 20px rgba(209, 63, 63, 0.08);
}
.home-page .contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.home-page .contact-form input,
.home-page .contact-form textarea {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.home-page .contact-form input:focus,
.home-page .contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(209, 63, 63, 0.35);
    box-shadow: 0 0 0 2px rgba(209, 63, 63, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.home-page .contact-btn {
    background: rgba(209, 63, 63, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(209, 63, 63, 0.45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.home-page .contact-btn:hover {
    background: rgba(209, 63, 63, 0.35);
    border-color: rgba(209, 63, 63, 0.6);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 0 24px rgba(209, 63, 63, 0.1);
}
.home-page .nav-menu {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-type {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(var(--tier-rgb));
}
.pricing-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.45rem;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.pricing-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.52);
    margin: 0;
    line-height: 1.45;
    max-width: 16rem;
    margin-left: auto;
    margin-right: auto;
}
.pricing-features {
    list-style: none;
    margin: 0;
    padding: 1.15rem 1.35rem 0.25rem;
    flex: 1 1 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.5;
}
.pricing-features li {
    position: relative;
    margin-bottom: 0.7rem;
    padding-left: 1.1rem;
}
.pricing-features li:last-child {
    margin-bottom: 0;
}
.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(var(--tier-rgb), 0.9);
    box-shadow: 0 0 10px rgba(var(--tier-rgb), 0.35);
}
.pricing-features strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}
.pricing-btn {
    margin: 1.25rem 1.35rem 1.35rem;
    padding: 0.72rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--tier-rgb), 0.55);
    background: linear-gradient(165deg, rgba(var(--tier-rgb), 0.95) 0%, rgba(var(--tier-rgb), 0.72) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), filter 0.22s var(--ease-out);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 0 24px rgba(var(--tier-rgb), 0.2);
}
.pricing-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3), 0 0 32px rgba(var(--tier-rgb), 0.35);
}

.tos-accordion {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1), filter 0.8s cubic-bezier(0.4,0,0.2,1);
}
.tos-accordion.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}
.tos-slider {
    max-width: 700px; /* Adjust as needed */
    margin: 0 auto;
    padding-bottom: 2.5rem; /* Space for pagination */
    position: relative;
}

.tos-item {
    background: rgba(255,255,255,0.10);
    border-radius: 1.2rem;
    border: 1.5px solid rgba(255,255,255,0.18);
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10) inset;
    padding: 2.2rem 1.8rem;
    transition: box-shadow 0.3s, background 0.3s, border 0.3s;
    height: auto; /* Allow height to adjust for content */
    display: flex; /* Ensure content is laid out correctly */
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.tos-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.8rem;
    padding: 0; /* Remove old padding */
    cursor: default; /* No longer clickable for accordion */
}
.tos-toggle { display: none !important; }

.tos-content {
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 0; /* Remove old padding */
    opacity: 1;
    max-height: none;
    pointer-events: auto;
    transition: none; /* Remove all transitions */
}

/* Swiper Navigation (Arrows) */
.swiper-button-next, .swiper-button-prev {
    color: var(--accent-color) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.8rem !important;
    width: 44px !important;
    height: 44px !important;
    background-color: rgba(26, 26, 26, 0.6);
    border-radius: 50%;
    transition: background-color 0.3s;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(26, 26, 26, 0.9);
}

/* Swiper Pagination (Dots) */
.swiper-pagination-bullet {
    background-color: #555 !important;
    opacity: 0.7 !important;
    transition: background-color 0.3s, opacity 0.3s;
}
.swiper-pagination-bullet-active {
    background-color: var(--accent-color) !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .tos-item {
        padding: 1.8rem 1rem;
    }
    .tos-header {
        font-size: 1.3rem;
    }
    .tos-content {
        font-size: 0.95rem;
    }
    .tos-slider {
        padding-bottom: 2rem;
    }
    .swiper-button-next, .swiper-button-prev {
        font-size: 1.5rem !important;
        width: 38px !important;
        height: 38px !important;
    }
}

.contact-form {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    background: rgba(255,255,255,0.10);
    border-radius: 1.2rem;
    border: 1.5px solid rgba(255,255,255,0.18);
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10) inset;
    padding: 2.2rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1), filter 0.8s cubic-bezier(0.4,0,0.2,1);
}
.contact-form.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.contact-row {
    display: flex;
    gap: 1.2rem;
}

.contact-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form label {
    color: #e0e0e0;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(40,40,40,0.55);
    border: none;
    border-radius: 0.6rem;
    padding: 1rem;
    color: #fff;
    font-size: 1.08rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,0.10);
    transition: background 0.2s, box-shadow 0.2s;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(60,60,60,0.75);
    box-shadow: 0 2px 12px 0 var(--accent-color);
}

.contact-btn {
    margin-top: 0.5rem;
    padding: 0.9rem 2.2rem;
    border-radius: 0.7rem;
    border: 1.5px solid var(--accent-color);
    background: var(--accent-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,0.10);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-btn:hover {
    background: #fff;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Latest updates section (reason to return) */
.updates-section {
    max-width: 640px;
    margin: 0 auto 2.5rem auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.updates-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.updates-teaser {
    text-align: center;
    color: #999;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.updates-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.update-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem 1.2rem;
}

.update-date {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.update-title {
    display: block;
    font-size: 1.05rem;
    color: #eaeaea;
    margin-bottom: 0.35rem;
}

.update-text {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.45;
    margin: 0;
}

.updates-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s, gap 0.2s;
}

.updates-link:hover {
    color: #ff6b6b;
    gap: 0.65rem;
}

/* Updates page */
.updates-page main {
    padding-top: 120px;
    max-width: 680px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 3rem;
}

.updates-page-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.updates-page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #e8a0a0, #d13f3f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.updates-page-hero .subtitle {
    color: #999;
    font-size: 1.05rem;
}

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

.update-item-full {
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.updates-empty {
    text-align: center;
    color: #888;
    padding: 2rem;
}

@media (max-width: 900px) {
    .updates-page main {
        padding-top: 88px;
    }
}

@media (max-width: 600px) {
    .updates-page main {
        padding-top: 82px;
    }
}

@media (max-width: 700px) {
    .contact-form {
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    }
    .contact-row {
        flex-direction: column;
        gap: 0.7rem;
    }
    .site-footer {
        padding: 2.75rem 1rem 2rem;
        border-radius: 1.25rem 1.25rem 0 0;
    }
    .clean-footer, .footer-main {
        max-width: 100%;
        margin: 0 auto;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.tos-item.always-open .tos-content {
    opacity: 1;
    max-height: none;
    padding-bottom: 1.2rem;
    pointer-events: auto;
    transition: none;
}
.tos-item.always-open .tos-header {
    cursor: default;
}
.tos-toggle { display: none !important; }

.tos-scroll-list {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    background: rgba(255,255,255,0.10);
    border-radius: 1.2rem;
    border: 1.5px solid rgba(255,255,255,0.18);
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10) inset;
    padding: 1.8rem 1.2rem;
    max-height: 400px; /* Fixed height for scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
    position: relative; /* For scrollbar styling */
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1), filter 0.8s cubic-bezier(0.4,0,0.2,1);
}
.tos-scroll-list.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.tos-scroll-list ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
}

.tos-scroll-list li {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.tos-scroll-list li:last-child {
    margin-bottom: 0;
}

.tos-scroll-list h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.tos-scroll-list p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Custom scrollbar for webkit browsers */
.tos-scroll-list::-webkit-scrollbar {
    width: 8px;
}

.tos-scroll-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.tos-scroll-list::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.tos-scroll-list::-webkit-scrollbar-thumb:hover {
    background: #e69999;
}

/* Remove Swiper specific styles */
.swiper-button-next, .swiper-button-prev, .swiper-pagination-bullet, .swiper-pagination-bullet-active {
    display: none !important;
}

/* Past Works Page Styles */

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

.past-works-hero {
    position: relative;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 3.75rem) 1rem 2.5rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.past-works-hero-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -15%;
    height: min(400px, 52vw);
    max-width: 44rem;
    margin: 0 auto;
    background:
        radial-gradient(ellipse 78% 72% at 50% 42%, rgba(209, 63, 63, 0.2) 0%, transparent 58%),
        radial-gradient(ellipse 55% 50% at 18% 58%, rgba(56, 189, 248, 0.14) 0%, transparent 52%),
        radial-gradient(ellipse 50% 48% at 88% 52%, rgba(167, 139, 250, 0.16) 0%, transparent 52%);
    filter: blur(3px);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    opacity: 0.95;
}

.past-works-hero > *:not(.past-works-hero-bg) {
    position: relative;
    z-index: 1;
}

.past-works-label {
    display: block;
    margin: 0 auto 0.85rem;
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: linear-gradient(105deg, #fb923c, #f472b6 40%, #a78bfa 72%, #38bdf8);
    background-size: 150% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.past-works-hero h1 {
    font-size: clamp(2.05rem, 5.4vw, 3.35rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.12;
    letter-spacing: -0.025em;
    background: linear-gradient(
        118deg,
        #fecdd3 0%,
        #fbcfe8 14%,
        #e9d5ff 30%,
        #c4b5fd 46%,
        #93c5fd 62%,
        #7dd3fc 76%,
        #fde68a 100%
    );
    background-size: 240% auto;
    animation: pastworkHeroShine 14s ease-in-out infinite alternate;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.past-works-hero h1 .accent {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(118deg, #fb7185, #f472b6 45%, #fbbf24);
    background-size: 200% auto;
    animation: pastworkHeroShine 11s ease-in-out infinite alternate;
    -webkit-background-clip: text;
    background-clip: text;
}

.past-works-stats {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.85rem;
    margin-top: 1.25rem;
    padding: 0.55rem 1.2rem 0.6rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.past-works-stat {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(210, 214, 226, 0.92);
}

.past-works-stat #project-count {
    font-weight: 800;
    background: linear-gradient(90deg, #fb7185, #fdba74);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.past-works-stat-dot {
    color: rgba(255, 255, 255, 0.28);
    font-weight: 300;
    user-select: none;
}

.past-works-hero .subtitle {
    font-size: 1.05rem;
    color: rgba(200, 204, 218, 0.88);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.65;
}

.pastwork-page .type-select-label {
    background: linear-gradient(95deg, #fca5a5, #fcd34d 45%, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Type select — full-height blur, options centered; after pick: section hidden, only reload shows it again */
.pastwork-content[hidden] {
    display: none !important;
}
.pastwork-page .past-works-hero.past-works-hero--after-pick {
    display: none;
}
.pastwork-page .past-works-hero.past-works-hero--visible {
    display: block;
}
.past-works-category-label {
    color: var(--accent-color);
    font-weight: 700;
}
.type-select-section--hidden {
    display: none !important;
}
.type-select-section.type-select-landing {
    min-height: min(82vh, 52rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 -2rem;
    padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
    position: relative;
    overflow: visible;
}
/* Subtle wash only — heavy frosted ::before was a visible “box” inside max-width main */
.type-select-section.type-select-landing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}
.type-select-section.type-select-landing::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 55% at 18% 20%, rgba(209, 63, 63, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 88% 35%, rgba(56, 189, 248, 0.07) 0%, transparent 48%),
        radial-gradient(ellipse 60% 45% at 50% 95%, rgba(251, 191, 36, 0.06) 0%, transparent 45%);
    pointer-events: none;
    border-radius: inherit;
}

/* Past Works: break out of main max-width so the landing isn’t a cropped column */
.pastwork-page .type-select-section.type-select-landing {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}
/* No frosted slab — blends with body.pastwork-page::after ambient layer */
.pastwork-page .type-select-section.type-select-landing::before {
    display: none;
}
.pastwork-page .type-select-section.type-select-landing::after {
    inset: -15% -10%;
    background:
        radial-gradient(ellipse 85% 60% at 15% 25%, rgba(209, 63, 63, 0.1) 0%, transparent 52%),
        radial-gradient(ellipse 75% 55% at 90% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 48% 100%, rgba(251, 191, 36, 0.07) 0%, transparent 48%),
        radial-gradient(ellipse 120% 80% at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 55%);
}
.type-select-section.type-select-landing .type-select-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 52rem;
}
.type-select-label {
    margin: 0 auto 2rem;
    max-width: 24rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}
.type-select-carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    justify-items: stretch;
    align-items: stretch;
    width: 100%;
}
/* Per-category accent (RGB tuples) — featured state uses --cat */
.type-select-card[data-category='roblox'] {
    --cat: 209, 63, 63;
}
.type-select-card[data-category='model'] {
    --cat: 56, 189, 248;
}
.type-select-card[data-category='tool'] {
    --cat: 251, 191, 36;
}
.type-select-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 11.5rem;
    padding: 1.75rem 1.25rem;
    background: rgba(22, 24, 30, 0.65);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.35rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.28s var(--ease-out),
        color 0.25s var(--ease-out), background 0.3s var(--ease-out);
    font-family: inherit;
    text-align: center;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.type-select-card--featured::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 95% 75% at 50% 35%, rgba(var(--cat), 0.2) 0%, transparent 62%);
    border-radius: inherit;
    pointer-events: none;
}
.type-select-card--featured > * {
    position: relative;
    z-index: 1;
}
.type-select-card--featured {
    color: #fff;
    background: rgba(26, 28, 36, 0.82);
    border-color: rgba(var(--cat), 0.55);
    box-shadow:
        0 0 0 1px rgba(var(--cat), 0.2),
        0 14px 44px rgba(0, 0, 0, 0.35),
        0 0 48px rgba(var(--cat), 0.12);
}
.type-select-card--featured:hover {
    border-color: rgba(var(--cat), 0.75);
    box-shadow:
        0 0 0 1px rgba(var(--cat), 0.35),
        0 18px 48px rgba(0, 0, 0, 0.4),
        0 0 56px rgba(var(--cat), 0.2);
}
.type-select-card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    background: rgba(var(--cat), 0.14);
    border: 1px solid rgba(var(--cat), 0.35);
    box-shadow: 0 0 20px rgba(var(--cat), 0.12);
    transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
        transform 0.28s var(--ease-out);
}
.type-select-card--featured .type-select-card-icon-wrap {
    background: rgba(var(--cat), 0.28);
    border-color: rgba(var(--cat), 0.5);
    box-shadow: 0 0 28px rgba(var(--cat), 0.28);
}
.type-select-card-icon-wrap i {
    font-size: 1.45rem;
    color: rgb(var(--cat));
    filter: drop-shadow(0 0 10px rgba(var(--cat), 0.35));
}
.type-select-card--featured .type-select-card-icon-wrap i {
    color: #fff;
    filter: drop-shadow(0 0 12px rgba(var(--cat), 0.5));
}
.type-select-card--muted {
    opacity: 1;
    filter: none;
    color: rgba(255, 255, 255, 0.78);
}
.type-select-card--muted .type-select-card-icon-wrap {
    background: rgba(var(--cat), 0.1);
    border-color: rgba(var(--cat), 0.22);
    box-shadow: none;
}
.type-select-card--muted:hover {
    color: #fff;
    border-color: rgba(var(--cat), 0.42);
    background: rgba(28, 30, 38, 0.88);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 0 28px rgba(var(--cat), 0.1);
    transform: translateY(-4px);
}
.type-select-card--muted:hover .type-select-card-icon-wrap {
    background: rgba(var(--cat), 0.18);
    border-color: rgba(var(--cat), 0.4);
    box-shadow: 0 0 22px rgba(var(--cat), 0.15);
}
.type-select-card:hover {
    transform: translateY(-4px);
}
.type-select-card-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.type-select-card-desc {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.4rem;
    line-height: 1.45;
    max-width: 11rem;
}
.type-select-card--featured .type-select-card-desc {
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 700px) {
    .type-select-section.type-select-landing {
        margin: 0 -1.25rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .pastwork-page .type-select-section.type-select-landing {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }
    .type-select-carousel {
        grid-template-columns: 1fr;
        max-width: 20rem;
        margin: 0 auto;
    }
    .type-select-card {
        min-height: 10rem;
    }
}

.search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.search-wrap {
    position: relative;
    width: 100%;
    max-width: 36rem;
}

.search-wrap .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.25s ease;
}

.search-wrap:focus-within .search-icon {
    color: rgba(56, 189, 248, 0.85);
}

#work-search {
    width: 100%;
    padding: 0.95rem 1.35rem 0.95rem 2.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    background: rgba(22, 22, 28, 0.55);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    color: #f4f4f5;
    font-size: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    outline: none;
    transition: border-color 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), background 0.28s var(--ease-out);
}

#work-search::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

#work-search:focus {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(26, 28, 36, 0.72);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12), 0 12px 40px rgba(0, 0, 0, 0.28);
}

/* Past Works: period filter (2026 vs 2023–2025 archive) */
.year-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 40rem;
}

.year-filter-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.year-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.year-filter-btn {
    padding: 0.48rem 0.95rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(245, 245, 250, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.22s var(--ease-out), background 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out),
        transform 0.2s var(--ease-out);
    font-family: inherit;
}

.year-filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
}

.year-filter-btn.active {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.year-filter-btn--current.active {
    border-color: rgba(52, 211, 153, 0.55);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(16, 185, 129, 0.12));
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.year-filter-btn--outdated.active {
    border-color: rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.08));
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.year-filter-em {
    font-weight: 800;
    color: #fff;
}

.year-filter-sub {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.year-filter-btn--current .year-filter-sub {
    color: #6ee7b7;
}

.year-filter-btn--outdated .year-filter-sub {
    color: #fcd34d;
}

.pastwork-empty-era {
    text-align: center;
    max-width: 28rem;
    margin: -1rem auto 1.5rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(200, 204, 215, 0.88);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
}

.pastwork-empty-era code {
    font-size: 0.82em;
    padding: 0.12rem 0.35rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.3rem;
}

.work-era-badge {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 4;
    max-width: calc(100% - 1.1rem);
    padding: 0.28rem 0.55rem 0.32rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-align: right;
    border-radius: 0.45rem;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.work-era-badge--outdated {
    color: #fef3c7;
    background: rgba(30, 22, 12, 0.88);
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.work-era-badge--outdated .work-era-muted {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(253, 224, 71, 0.9);
    margin-top: 0.08rem;
}

.work-era-badge--current {
    color: #ecfdf5;
    background: rgba(6, 40, 32, 0.9);
    border: 1px solid rgba(52, 211, 153, 0.55);
    font-size: 0.75rem;
}

.tags-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 0.35rem;
    max-width: 52rem;
}

.tag-button {
    padding: 0.5rem 1.05rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(245, 245, 250, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.22s var(--ease-out), background 0.22s var(--ease-out), color 0.22s var(--ease-out),
        transform 0.2s var(--ease-out), box-shadow 0.22s var(--ease-out);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.tag-button:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Filter chips: distinct accent per tag */
.tag-button[data-tag="all"] {
    border-color: rgba(209, 63, 63, 0.35);
}
.tag-button[data-tag="all"]:hover:not(.active) {
    border-color: rgba(209, 63, 63, 0.65);
    background: rgba(209, 63, 63, 0.1);
    color: #fff;
}
.tag-button[data-tag="all"].active {
    background: linear-gradient(135deg, #e85555, var(--accent-color) 55%, #b03030);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 22px rgba(209, 63, 63, 0.4);
}

.tag-button[data-tag="animation"] {
    border-color: rgba(167, 139, 250, 0.4);
}
.tag-button[data-tag="animation"]:hover:not(.active) {
    border-color: rgba(167, 139, 250, 0.75);
    background: rgba(167, 139, 250, 0.12);
    color: #ede9fe;
}
.tag-button[data-tag="animation"].active {
    background: linear-gradient(135deg, #c4b5fd, #7c3aed);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.38);
}

.tag-button[data-tag="gamedev"] {
    border-color: rgba(52, 211, 153, 0.4);
}
.tag-button[data-tag="gamedev"]:hover:not(.active) {
    border-color: rgba(52, 211, 153, 0.75);
    background: rgba(52, 211, 153, 0.1);
    color: #d1fae5;
}
.tag-button[data-tag="gamedev"].active {
    background: linear-gradient(135deg, #6ee7b7, #059669);
    border-color: transparent;
    color: #042f1f;
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.35);
}

.tag-button[data-tag="scripting"] {
    border-color: rgba(56, 189, 248, 0.42);
}
.tag-button[data-tag="scripting"]:hover:not(.active) {
    border-color: rgba(56, 189, 248, 0.78);
    background: rgba(56, 189, 248, 0.1);
    color: #e0f2fe;
}
.tag-button[data-tag="scripting"].active {
    background: linear-gradient(135deg, #7dd3fc, #0284c7);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 22px rgba(2, 132, 199, 0.38);
}

.tag-button[data-tag="uidesign"] {
    border-color: rgba(232, 121, 249, 0.42);
}
.tag-button[data-tag="uidesign"]:hover:not(.active) {
    border-color: rgba(232, 121, 249, 0.78);
    background: rgba(232, 121, 249, 0.1);
    color: #fae8ff;
}
.tag-button[data-tag="uidesign"].active {
    background: linear-gradient(135deg, #f0abfc, #c026d3);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 22px rgba(192, 38, 211, 0.35);
}

.tag-button[data-tag="physics"] {
    border-color: rgba(251, 191, 36, 0.45);
}
.tag-button[data-tag="physics"]:hover:not(.active) {
    border-color: rgba(251, 191, 36, 0.85);
    background: rgba(251, 191, 36, 0.1);
    color: #fef3c7;
}
.tag-button[data-tag="physics"].active {
    background: linear-gradient(135deg, #fcd34d, #d97706);
    border-color: transparent;
    color: #1c1410;
    box-shadow: 0 6px 22px rgba(217, 119, 6, 0.35);
}

.tag-button[data-tag="fun/others"] {
    border-color: rgba(251, 113, 133, 0.42);
}
.tag-button[data-tag="fun/others"]:hover:not(.active) {
    border-color: rgba(251, 113, 133, 0.78);
    background: rgba(251, 113, 133, 0.1);
    color: #ffe4e6;
}
.tag-button[data-tag="fun/others"].active {
    background: linear-gradient(135deg, #fb7185, #e11d48);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 22px rgba(225, 29, 72, 0.35);
}

.past-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: clamp(1.35rem, 2.5vw, 1.85rem);
    padding: 0 0.15rem 4.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.past-works-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.past-works-grid.visible .work-card {
    animation: pastwork-card-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.past-works-grid.visible .work-card:nth-child(1) { animation-delay: 0.05s; }
.past-works-grid.visible .work-card:nth-child(2) { animation-delay: 0.1s; }
.past-works-grid.visible .work-card:nth-child(3) { animation-delay: 0.15s; }
.past-works-grid.visible .work-card:nth-child(4) { animation-delay: 0.2s; }
.past-works-grid.visible .work-card:nth-child(5) { animation-delay: 0.25s; }
.past-works-grid.visible .work-card:nth-child(6) { animation-delay: 0.3s; }
.past-works-grid.visible .work-card:nth-child(n+7) { animation-delay: 0.35s; }

@keyframes pastwork-card-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.work-card {
    --wc: 209, 63, 63;
    position: relative;
    background: rgba(24, 24, 30, 0.58);
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.work-card[data-tags*="gamedev"] {
    --wc: 52, 211, 153;
}
.work-card[data-tags*="animation"] {
    --wc: 167, 139, 250;
}
.work-card[data-tags*="physics"] {
    --wc: 251, 191, 36;
}
.work-card[data-tags*="fun/others"] {
    --wc: 251, 113, 133;
}
.work-card[data-tags*="scripting"] {
    --wc: 56, 189, 248;
}
.work-card[data-tags*="uidesign"] {
    --wc: 232, 121, 249;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 3;
    border-radius: 1.2rem 1.2rem 0 0;
    background: linear-gradient(90deg, rgb(var(--wc)), rgba(var(--wc), 0.25));
    pointer-events: none;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(var(--wc), 0.35), 0 0 40px rgba(var(--wc), 0.12);
    border-color: rgba(var(--wc), 0.38);
}

.work-media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(165deg, rgba(var(--wc), 0.08) 0%, rgba(0, 0, 0, 0.35) 100%);
    isolation: isolate;
}

.work-card[data-type="video"] .work-media::after {
    content: "\f04b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.95);
    font-size: 2.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.work-card[data-type="video"] .work-media:hover::after {
    background: rgba(var(--wc), 0.45);
    color: #fff;
}

.work-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-thumbnail {
    transform: scale(1.08);
}

.work-content {
    padding: 1.45rem 1.5rem 1.55rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.work-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    background: linear-gradient(118deg, #fecdd3, #fbcfe8 30%, #e9d5ff 58%, #bae6fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.work-description {
    font-size: 0.92rem;
    color: rgba(200, 204, 215, 0.88);
    line-height: 1.55;
    margin-bottom: 1.1rem;
    flex-grow: 1;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
    margin-bottom: 1.15rem;
}

.work-tags .tag {
    padding: 0.32rem 0.75rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.work-tags .tag:nth-child(3n + 1) {
    background: rgba(209, 63, 63, 0.14);
    color: #fecaca;
    border-color: rgba(209, 63, 63, 0.28);
}

.work-tags .tag:nth-child(3n + 2) {
    background: rgba(56, 189, 248, 0.12);
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, 0.28);
}

.work-tags .tag:nth-child(3n) {
    background: rgba(167, 139, 250, 0.14);
    color: #ede9fe;
    border-color: rgba(167, 139, 250, 0.3);
}

.view-project-btn {
    display: inline-block;
    padding: 0.72rem 1.35rem;
    background: linear-gradient(135deg, rgba(var(--wc), 0.95), rgba(var(--wc), 0.65));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), filter 0.25s var(--ease-out);
    text-align: center;
    margin-top: auto;
    box-shadow: 0 4px 18px rgba(var(--wc), 0.28);
}

.view-project-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 26px rgba(var(--wc), 0.4);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 2rem;
    align-items: center;
    justify-content: center;
}

.modal[style*="block"] {
    display: flex !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(180deg, #1e1e1e 0%, #181818 100%);
    margin: auto;
    padding: 2.5rem;
    border: 1px solid rgba(209, 63, 63, 0.35);
    border-radius: 1.5rem;
    width: 90%;
    max-width: 900px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
    animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #aaa;
    font-size: 1.15rem;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--accent-color);
    background: rgba(209, 63, 63, 0.15);
    border-color: rgba(209, 63, 63, 0.4);
}

.modal-media-container {
    width: 100%;
    height: 450px; /* Adjusted height for modal media */
    margin-bottom: 1.5rem;
    background-color: #000; /* Placeholder background */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    overflow: hidden;
}

.modal-media {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures entire image/video is visible */
    display: block;
}

.modal-media-error {
    margin: 0;
    padding: 2rem 1.5rem;
    max-width: 32rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #c8c8c8;
}

.modal-media-error code {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.82em;
    color: #e8a0a0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.35rem;
    word-break: break-all;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #e8a0a0, #d13f3f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-description {
    font-size: 1.05rem;
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.modal .work-tags.modal-tags {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 768px) {
    .past-works-hero h1 {
        font-size: 2.5rem;
    }

    .past-works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .search-section {
        padding: 0 1rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10% auto;
    }

    .modal-media-container {
        height: 250px; /* Smaller height for mobile */
    }

    .modal-title {
        font-size: 1.6rem;
    }

    .modal-description {
        font-size: 0.95rem;
    }

    .tag-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(45deg, #dd5959, #c05050);
    color: #fff;
    text-decoration: none;
    border-radius: 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    white-space: nowrap; /* Prevent text wrapping */
}

.hero-btn:hover {
    background: linear-gradient(45deg, #ff6b6b, #e65c5c);
    box-shadow: 0 6px 20px rgba(221, 89, 89, 0.4);
    transform: translateY(-3px);
}

.hero-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 80%;
        max-width: 300px;
        justify-content: center;
    }
}

.shop-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 0;
}
.shop-placeholder {
    text-align: center;
    color: var(--section-subtitle, #999);
    font-size: 1.05rem;
} 