@font-face {
    font-family: "AutumnFlowers";
    src: url("AutumnFlowers.otf") format("opentype");
    font-display: swap;
}

:root {
    /* Dark Theme Tokens (Default) */
    --bg-page: #0a0a0a;
    --bg-surface: #1a1a1a;
    --bg-surface-elevated: #242424;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --pill-bg: #ffffff;
    --pill-text: #121212;
    --header-bg: rgba(26, 26, 26, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --footer-gradient: linear-gradient(180deg, #202020 0%, #0a0a0a 100%);
    --shimmer-bg: linear-gradient(-45deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

[data-theme="light"] {
    /* Light Theme Tokens */
    --bg-page: #f8f8fa;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #efefef;
    --text-main: #141414;
    --text-muted: #5e5e5e;
    --pill-bg: #141414;
    --pill-text: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --footer-gradient: linear-gradient(180deg, #eaeaea 0%, #dedede 100%);
    --shimmer-bg: linear-gradient(-45deg, transparent 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.font-script {
    font-family: "AutumnFlowers", "Brush Script MT", cursive, sans-serif;
    font-weight: normal;
}

/* =========================================
   Floating Navigation Header
   ========================================= */
.floating-header {
    position: sticky;
    top: 1.25rem;
    margin: 0 auto;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    max-width: 90%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-header.is-scrolled {
    opacity: 0.45;
}

.floating-header:hover {
    opacity: 1;
}

.theme-toggle-btn {
    background-color: var(--header-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.08);
    background-color: var(--text-main);
    color: var(--bg-page);
}

.nav-links {
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    border-radius: 40px;
    padding: 0.25rem 0.5rem;
    backdrop-filter: blur(8px);
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-item i {
    font-size: 0.75rem;
    opacity: 0;
    width: 0;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.nav-item:hover {
    background-color: var(--text-main);
    color: var(--bg-page);
}

.nav-item:hover i {
    opacity: 1;
    width: auto;
}

.time-badge {
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    max-width: 1100px;
    margin: 4rem auto 3rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 2.5rem;
}

.hero-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 750px;
}

.intro-media {
    flex-shrink: 0;
}

.intro-img {
    width: 90px;
    height: auto;
    transform: rotate(18deg);
    transition: transform 0.3s ease;
}

.intro-img:hover {
    transform: rotate(0deg) scale(1.05);
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
}

.intro-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--pill-bg);
    color: var(--pill-text);
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* =========================================
   Portfolio Grid (Showcase Cards)
   ========================================= */
.portfolio-grid {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card {
    position: relative;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.card-caption {
    position: relative;
    z-index: 10;
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
}

/* Card 1: Bitcoin */
.card-bitcoin {
    background-color: #003dcd;
    color: #ffffff;
}

.coin-img {
    position: absolute;
    transition: transform 0.5s ease;
}

.coin-1 {
    width: 240px;
    top: -10%;
    left: -15%;
}

.coin-2 {
    width: 320px;
    top: 15%;
    left: 20%;
}

.coin-3 {
    width: 220px;
    bottom: 12%;
    right: -10%;
}

.card-bitcoin:hover .coin-2 {
    transform: rotate(180deg) scale(1.05);
}

.card-bitcoin:hover .coin-1 {
    transform: translateY(20px);
}

.card-bitcoin:hover .coin-3 {
    transform: translateY(-20px);
}

/* Card 2: App */
.card-app {
    background-color: #23a541;
    color: #0a0a0a;
}

.grass-decor {
    width: 100%;
    position: absolute;
    left: 0;
    transition: transform 0.4s ease;
}

.grass-top {
    top: 0;
}

.grass-bottom {
    bottom: -40%;
    transform: rotate(180deg);
}

.mobile-preview {
    width: 130px;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -15%);
    border-radius: 12px;
    border: 2px solid #2e2e2e;
    transition: transform 0.3s ease;
}

.card-app:hover .grass-bottom {
    bottom: 0;
}

.card-app:hover .mobile-preview {
    transform: translate(-50%, -20%) scale(1.15);
}

/* Card 3: Merch */
.card-merch {
    background-color: #2b2b2b;
    background-image: url("images/1.webp");
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.card-merch:hover {
    animation: shirtCycle 8s alternate infinite;
}

@keyframes shirtCycle {
    0% {
        background-image: url("images/1.webp");
    }

    25% {
        background-image: url("images/6.webp");
    }

    50% {
        background-image: url("images/15.webp");
    }

    75% {
        background-image: url("images/37.webp");
    }

    100% {
        background-image: url("images/21.webp");
    }
}

/* Card 4: Wiki */
.card-wiki {
    background-color: #e67e00;
    color: #ffffff;
}

.wiki-big {
    width: 100%;
    position: absolute;
    top: -30%;
    left: 0;
    transition: transform 0.6s ease;
}

.wiki-small {
    width: 90px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.card-wiki:hover .wiki-big {
    transform: translateY(20%) rotate(45deg);
}

.card-wiki:hover .wiki-small {
    transform: translate(-50%, 60px);
    opacity: 0;
}

/* =========================================
   Manifesto & Location
   ========================================= */
.manifesto-section {
    max-width: 1100px;
    margin: 6rem auto 4rem;
    padding: 0 1.5rem;
    text-align: center;
}

.origin-tag span {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.origin-tag p {
    font-size: 1.5rem;
    margin-top: 0.35rem;
}

.huge-location {
    font-size: clamp(2.5rem, 11vw, 9rem);
    font-weight: 900;
    line-height: 1;
    margin: 1.5rem 0;
    letter-spacing: -2px;
}

.manifesto-lead {
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.25;
    max-width: 900px;
    margin: 0 auto;
}

/* =========================================
   Team Section
   ========================================= */
.team-section {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.team-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s ease;
}

.team-avatar {
    width: 180px;
    height: 230px;
    object-fit: cover;
    border-radius: 16px;
    filter: grayscale(100%);
    border: 2px solid var(--border-color);
    margin-bottom: 0.85rem;
    transition: filter 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .team-avatar {
    filter: grayscale(0%);
}

.member-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.member-role {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.member-left {
    transform: translateX(60px);
    z-index: 1;
}

.member-center {
    z-index: 2;
}

.member-right {
    transform: translateX(-60px);
    z-index: 1;
}

.team-container:hover .member-left,
.team-container:hover .member-right {
    transform: translateX(0);
}

/* =========================================
   Credit Watermark
   ========================================= */
.credit-banner {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 12px;
    color: var(--text-muted);
    margin: 5rem 0;
    padding: 0 1rem;
}

/* =========================================
   Capabilities Section
   ========================================= */
.capabilities-section {
    max-width: 750px;
    margin: 3rem auto 6rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-badge {
    position: relative;
    display: inline-block;
    align-self: flex-start;
    overflow: hidden;
    border-radius: 6px;
}

.section-badge h3 {
    font-size: 1.75rem;
    padding-right: 0.5rem;
}

.shimmer-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--shimmer-bg);
    animation: shimmerMove 3s infinite;
    pointer-events: none;
}

@keyframes shimmerMove {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.capabilities-columns {
    display: flex;
    gap: 4rem;
}

.capability-col a {
    display: block;
    font-size: 1rem;
    padding: 0.4rem 0;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.capability-col a:hover {
    color: var(--text-main);
    transform: translateX(4px);
}

/* =========================================
   Footer
   ========================================= */
.studio-footer {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 5rem 2rem 3rem;
    background: var(--footer-gradient);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

.footer-hero-text p {
    font-size: clamp(2rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.15;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 868px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .card {
        height: 420px;
    }

    .hero-intro {
        flex-direction: column;
        text-align: center;
    }

    .intro-content {
        align-items: center;
        text-align: center;
    }

    .team-container {
        flex-direction: column;
        gap: 2rem;
    }

    .member-left,
    .member-right {
        transform: none;
    }

    .capabilities-columns {
        flex-direction: column;
        gap: 1rem;
    }
}