:root {
    /* Colors */
    --bg-color: #050507;
    --surface-color: #121217;
    --surface-color-transparent: rgba(18, 18, 23, 0.8);
    --primary-color: #ff3b3b;
    /* Red from the cursor line description */
    --secondary-color: #4a90e2;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-glow: rgba(255, 59, 59, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --section-spacing: 120px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    /* Adjust based on actual logo ratio */
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #d92020);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 59, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-large {
    font-size: 1.2rem;
    padding: 16px 48px;
}

/* Reveal Animation Classes */
.reveal-text,
.reveal-image,
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-text.visible,
.reveal-image.visible,
.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -80px;
    /* Counteract header padding */
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000;
    /* Solid black base to match banner edges */
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 5, 7, 0.3) 0%, rgba(5, 5, 7, 0.8) 70%, var(--bg-color) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, white, #a0a0b0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Feature Sections */
.feature-section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.alt-bg {
    background-color: #0b0c11;
    /* Slightly lighter than main bg */
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Feature Grid (Album Preview) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 350px;
    /* Fixed height for image area */
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or contain depending on image */
    object-position: top;
    transition: transform 0.5s ease;
}

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

.card-text {
    padding: 30px;
}

.card-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-text p {
    color: var(--text-secondary);
}

/* Split Feature (YouTube) */
.feature-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-content {
    flex: 1;
}

.feature-visuals {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.feature-list {
    margin-top: 30px;
    list-style: none;
}

.feature-list li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 10px;
    line-height: 1;
}

.stacked-images {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/5;
}

.stacked-images img,
.stacked-images video {
    position: absolute;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.img-back {
    top: 0;
    right: 0;
    width: 70%;
    z-index: 1;
    opacity: 0.6;
    transform: scale(0.9);
    filter: blur(1px);
    transition: all 0.5s ease;
}

.img-front {
    bottom: 0;
    left: 0;
    width: 75%;
    z-index: 2;
    transition: all 0.5s ease;
}

.feature-visuals:hover .img-back {
    transform: scale(0.95) translateX(20px);
    opacity: 0.8;
    filter: blur(0);
}

/* Scroll Animation Active State */
.stacked-images.active .img-back {
    z-index: 3;
    opacity: 1;
    transform: scale(1.05) translate(-10px, 10px);
    /* Bring slightly forward/center */
    filter: blur(0);
}

.stacked-images.active .img-front {
    z-index: 1;
    opacity: 0.6;
    transform: scale(0.9);
    filter: blur(1px);
}

/* Stem Separation */
.stem-showcase {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.mixer-ui {
    width: 100%;
    max-width: 320px;
    /* Reduced even further from 400px */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(74, 144, 226, 0.1);
    /* Blue glow */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    text-align: center;
}

.step {
    max-width: 200px;
}

.step-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    font-weight: 800;
    margin-bottom: 5px;
}

.step h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.rounded-img {
    border-radius: 20px;
    max-width: 800px;
    margin: 0 automatic;
}

.visual-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-color) 0%, #120505 100%);
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Footer */
.site-footer {
    padding: 60px 0 30px;
    background-color: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 30px;
    width: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--text-secondary);
    margin-left: 30px;
    font-size: 0.9rem;
}

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

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


/* Theme Grid */
#themes {
    position: relative;
    background-color: #0b0c11;
    overflow: hidden;
    /* Ensure video doesn't spill out */
    /* Restore background color */
}

/* Background Video with Fade */
/* Background Video with Fade */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Background layer */
    pointer-events: none;
    opacity: 0.6;

    /* Fade out at top and bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#themes .container {
    position: relative;
    z-index: 10;
    /* Strictly above background */
}

#themes .theme-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 40px;
    padding-top: 40px;
    /* Add top padding to prevent cropping of scaled items */
    /* More padding for shadows */
    scroll-snap-type: x mandatory;
    /* Disable snap to prevent scroll trapping feel */
    -ms-overflow-style: none;
    /* Hide scrollbar */
    scrollbar-width: none;
    align-items: center;
    /* Center items vertically */

    position: relative;
    z-index: 10;
    /* Strictly above background */
    /* Ensure content is above background */
    /* touch-action: pan-y; */
    /* Explicitly allow vertical panning */
    /* Center the first and last items */
    padding-left: calc(50% - 125px);
    padding-right: calc(50% - 125px);
}

#themes .theme-grid::-webkit-scrollbar {
    display: none;
}

#themes .theme-card {
    display: block;
    flex: 0 0 250px !important;
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;

    height: auto !important;
    /* Allow height to fit image */
    aspect-ratio: auto !important;
    /* Remove fixed ratio */

    border-radius: 12px;
    overflow: hidden;
    position: relative;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    /* 3D Effect Base State: Scaled down and dimmed */
    transform: scale(0.9);
    opacity: 0.5;
    will-change: transform, opacity;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s ease,
        box-shadow 0.3s ease;

    scroll-snap-align: center;
    /* touch-action: pan-y; */
    /* Ensure cards themselves pass vertical scroll */
}

/* Active State (Center Item) */
#themes .theme-card.active {
    transform: scale(1.1);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

#themes .theme-card img {
    width: 100% !important;
    height: auto !important;
    /* Natural height */
    object-fit: contain !important;
    /* Ensure full visibility */
    display: block;
    transition: transform 0.6s ease;
}

#themes .theme-card:hover {
    /* Hover effect works on top of active state */
    border-color: var(--primary-color);
}



/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --section-spacing: 80px;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--surface-color);
        padding: 20px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        opacity: 0;
        pointer-events: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
        /* Show hamburger */
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .feature-split {
        flex-direction: column;
        text-align: center;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:last-child {
        grid-column: auto;
    }

    .stacked-images {
        margin: 40px auto 0;
        min-height: 300px;
    }

    /* Disable scroll animations on mobile to ensure content is always visible */
    .reveal-text,
    .reveal-image,
    .reveal-card:not(.theme-card) {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Keep carousel transparency logic on mobile */
    #themes .theme-card.reveal-card {
        opacity: 0.5;
        transform: scale(0.9);
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    #themes .theme-card.reveal-card.active {
        opacity: 1;
        transform: scale(1.1);
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .process-info {
        flex-direction: column;
        gap: 30px;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .footer-links a {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .cta-group {
        flex-direction: column;
        gap: 10px;
    }

    .card-image {
        height: 250px;
    }
}

/* Text Page Styles (Privacy, Terms, Contact) */
.text-page {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
    /* Ensure footer isn't too high on short pages */
}

.text-page h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, white, #a0a0b0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-page .last-updated,
.text-page .subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.text-page section {
    margin-bottom: 40px;
}

.text-page h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.text-page p,
.text-page li {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.text-page ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.text-page li::marker {
    color: var(--primary-color);
}

.text-page strong {
    color: var(--text-primary);
}

.text-page a {
    color: var(--secondary-color);
}

.text-page a:hover {
    text-decoration: underline;
}

/* Contact Page Specifics */
.contact-container {
    text-align: center;
    max-width: 700px;
}

.contact-methods {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-card .btn {
    margin-top: 10px;
    color: #ffffff !important;
    /* Force white text for contrast */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-primary) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Download Page */
.download-page {
    padding-top: var(--header-height);
    min-height: 80vh;
    /* Ensure footer pushed down */
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-content {
    text-align: center;
    padding: 60px 20px;
}

.download-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.download-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.qr-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.qr-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 280px;
    transition: transform 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: white;
    margin: 0 auto 20px;
    padding: 10px;
    border-radius: 10px;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.qr-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

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