#mouse-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(165, 115, 60, 0.15), transparent 40%);
    z-index: -2;
    /* Slightly behind noise and other elements */
    /* Hardware acceleration for the dynamic background */
    will-change: background-position;
    transform: translateZ(0);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle noise/grain effect */
    background: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAwIDIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJibXVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNzUiIG51bU9jdGF2ZXM9IjQiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjdXJuKSIvPjwvc3ZnPg==');
    opacity: 0.04;
    /* Extra subtle as requested */
    pointer-events: none;
    z-index: -1;
}

.highlight {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

:root {
    --bg-color: #0f1115;
    --bg-graphite: #1a1d23;
    --bg-graphite-light: #252a32;
    --text-primary: #ffffff;
    --text-secondary: #a0aab8;
    --gold: #c5a55a;
    --gold-light: #e8d5a0;
    --gold-dark: #8a7340;
    --silver: #b8c0cc;
    --silver-light: #dce3ed;
    --silver-dark: #6b7280;
    --accent: #c5a55a;
    --accent-glow: rgba(197, 165, 90, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image:
        /* Bright sheen */
        radial-gradient(ellipse 80% 60% at 75% 15%, rgba(197, 165, 90, 0.15) 0%, transparent 60%),
        /* Center depth */
        radial-gradient(ellipse at 50% 50%, var(--bg-graphite-light) 0%, var(--bg-graphite) 50%, var(--bg-color) 100%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 50px;
}

/* Background glowing orbs for 3D feel */
body::before {
    content: '';
    position: absolute;
    top: var(--orb-y, -15%);
    right: var(--orb-x, -10%);
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(197, 165, 90, 0.25) 0%, rgba(197, 165, 90, 0.08) 30%, transparent 70%);
    z-index: -2;
    transition: top 0.4s ease-out, right 0.4s ease-out;
    /* Performance: Isolate heavy blur to GPU */
    will-change: transform;
    transform: translateZ(0);
}

body::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 60%, rgba(197, 165, 90, 0.12) 0%, transparent 70%);
    z-index: -2;
    animation: orbFloat 15s ease-in-out infinite alternate;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, -30px);
    }
}

/* 3D Canvas Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ──────────────── Top Navigation ──────────────── */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 80px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    z-index: 100;
    background: rgba(15, 17, 21, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(197, 165, 90, 0.12);
    will-change: transform;
    transform: translateZ(0);
}

.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.header-left, .header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
}

.header-center {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.header-title-container {
    margin-left: 2rem;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    margin-top: 12px;
}

@media (max-width: 900px) {
    .header-title-container {
        display: none;
    }
}

.header-title-main {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #e8c872 0%, #b8923a 40%, #705218 80%, #302208 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, 0.9)) drop-shadow(0px 0px 10px rgba(184, 146, 58, 0.2));
    letter-spacing: 0.15em;
    line-height: 1;
}

.header-title-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    color: #8a6626;
    letter-spacing: 0.4em;
    margin-top: -3px;
    margin-right: 0.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(197, 165, 90, 0.3));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--silver-dark);
}

.nav a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--gold-light);
}

.nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1500 !important;
}

.hamburger-menu span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: var(--gold) !important;
    border-radius: 2px;
    transition: 0.3s;
}

/* Navigation Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    padding: 2rem;
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-right: 1px solid rgba(197, 165, 90, 0.2);
}

.nav-drawer.active {
    left: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

.drawer-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.close-drawer {
    font-size: 1.5rem;
    color: var(--gold);
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-nav a {
    color: var(--silver);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: 0.3s;
}

.drawer-nav a:hover {
    color: var(--gold);
}

/* Language Selector */
.lang-flags {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-flag {
    width: 32px;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    filter: grayscale(20%);
}

.lang-flag:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1.1);
}

.lang-flag.active {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 8px #FFD700);
    transform: scale(1.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.lang-sep {
    color: rgba(197, 165, 90, 0.2);
    font-size: 0.8rem;
    pointer-events: none;
}

/* ──────────────── Audio Wave Visualizer ──────────────── */
.visualizer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    z-index: 5;
    pointer-events: none;
}

#wave-canvas {
    width: 100%;
    height: 100%;
}

/* ──────────────── Hero Section ──────────────── */
.hero {
    max-width: 1200px;
    width: 100%;
    padding: 0 5%;
    z-index: 10;
    margin-top: 80px;
    /* Offset for header */
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titles-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
}

.title-main {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.08em;
    white-space: nowrap;
    margin-bottom: 0.3rem;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(197, 165, 90, 0.3));
    position: relative;
}

.title-main::after {
    content: 'SOUND STUDIO HANNOVER';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

.title-sub {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    white-space: nowrap;
    margin-bottom: 0.4rem;
    background: linear-gradient(180deg, var(--silver-light) 0%, var(--silver) 50%, var(--silver-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 10px rgba(184, 192, 204, 0.2));
}

.title-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 1.8vw, 1.4rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
    background: linear-gradient(180deg, var(--gold-light) 10%, var(--gold) 60%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.powered-by {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-primary {
    color: #000;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    box-shadow: 0 4px 20px rgba(197, 165, 90, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(197, 165, 90, 0.8), 0 0 60px rgba(197, 165, 90, 0.4);
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.2);
}

.btn-secondary {
    color: var(--silver-light);
    border: 1px solid rgba(184, 192, 204, 0.35);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-3px);
}

/* ──────────────── Scroll Indicator ──────────────── */
.scroll-indicator {
    position: absolute;
    top: calc(100vh - 80px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 20;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border-radius: 12px;
    border: 1.5px solid rgba(197, 165, 90, 0.4);
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: var(--gold);
    animation: scrollBounce 2s infinite;
}

.scroll-text {
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: rgba(197, 165, 90, 0.5);
    font-weight: 500;
}

.mirror-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0 3%;
    margin: 60px auto 0 auto;
    width: 100%;
    max-width: 1600px;
    min-height: calc(100vh - 120px);
    position: relative;
    z-index: 10;
}

.mirror-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.center-column {
    flex: 2;
    text-align: center;
    width: 50%;
}

.side-column {
    flex: 1;
    max-width: 380px;
    width: 25%;
}

.center-column .hero {
    margin-top: 0;
    max-width: 100%;
}

.side-column .generator-section {
    padding: 20px 0;
}

/* ──────────────── Responsive Mirror ──────────────── */
@media (max-width: 1200px) {
    .mirror-container {
        flex-direction: column;
        gap: 50px;
        padding-top: 50px;
    }

    .center-column,
    .side-column {
        width: 100%;
        max-width: 600px;
    }

    .mirror-column {
        min-height: auto;
    }

    .left-side {
        order: 2;
    }

    .center-column {
        order: 1;
    }

    .right-side {
        order: 3;
    }
}

/* ──────────────── Animations ──────────────── */
@keyframes shimmer {

    0%,
    100% {
        background-position: -200% 0;
    }

    50% {
        background-position: 200% 0;
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

/* ──────────────── Prompt Generator ──────────────── */
.generator-section {
    padding: 40px 20px 100px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.glass-panel-generator {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 165, 90, 0.15);
    border-radius: 30px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.glass-panel-generator:hover {
    border-color: rgba(197, 165, 90, 0.3);
    transform: translateY(-5px);
}

.generator-title {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--white);
}

.generator-title .highlight {
    color: var(--gold);
    text-shadow: 0 0 15px rgba(197, 165, 90, 0.3);
}

.generator-subtitle {
    color: var(--silver);
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.input-group-gen {
    text-align: left;
    margin-bottom: 20px;
}

.input-group-gen label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 8px;
    opacity: 0.9;
}

.input-group-gen select, .custom-input {
    width: 100%;
    background: rgba(15, 17, 21, 0.6);
    border: 1px solid rgba(197, 165, 90, 0.2);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c5a55a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.input-group-gen select:focus, .custom-input:focus {
    border-color: var(--gold);
    background: rgba(15, 17, 21, 0.8);
}

.custom-input {
    background-image: none !important;
    padding-right: 15px !important;
    cursor: text !important;
}

.btn-gen {
    width: 100%;
    margin-top: 10px;
    padding: 18px;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.result-box {
    margin-top: 25px;
    padding: 15px;
    background: rgba(197, 165, 90, 0.05);
    border-radius: 8px;
    border: 1px solid var(--gold-dark);
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.result-box-show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.generated-prompt {
    font-family: 'Inter', monospace;
    font-size: 0.8rem;
    color: var(--silver);
    line-height: 1.5;
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(197, 165, 90, 0.1);
    margin-bottom: 15px;
    word-wrap: break-word;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

/* ──────────────── AI Sound Engine Specific ──────────────── */
.status-display {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(197, 165, 90, 0.03);
    border: 1px dashed rgba(197, 165, 90, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
}

.status-display p {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gold-light);
    margin: 0;
}

.status-active p {
    animation: goldPulse 2s infinite ease-in-out;
}

@keyframes goldPulse {
    0% {
        opacity: 0.6;
        text-shadow: 0 0 5px rgba(212, 175, 55, 0);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }

    100% {
        opacity: 0.6;
        text-shadow: 0 0 5px rgba(212, 175, 55, 0);
    }
}

.waveform-container {
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(197, 165, 90, 0.1);
    min-height: 60px;
    display: none;
    /* Hidden until loaded */
}

#waveform {
    width: 100%;
}

/* ──────────────── Pulse Animation ──────────────── */
.engine-pulse {
    position: relative;
    will-change: transform;
    transform: translateZ(0);
}

.engine-pulse::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    box-shadow: 0 0 30px 10px rgba(212, 175, 55, 0.4);
    opacity: 0;
    animation: engineGoldPulse 0.8s ease-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes engineGoldPulse {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* ──────────────── Magic Touch UX ──────────────── */
.breathe {
    position: relative;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.breathe::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    box-shadow: 0 0 25px rgba(197, 165, 90, 0.6);
    opacity: 0.5;
    animation: breatheOpacity 2.5s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes breatheOpacity {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.98);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.btn-copy,
.btn-copy-2 {
    width: 100%;
    flex: 1;
    font-size: 0.75rem;
    padding: 12px 15px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: #3e2723 !important;
    background: var(--gold);
    border: 1px solid var(--gold-dark);
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
}

.btn-copy-2:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 165, 90, 0.4);
}

/* ──────────────── Magic Touch UX ──────────────── */
.btn-breathe {
    animation: breathe 2.5s infinite ease-in-out;
}

@keyframes breathe {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(197, 165, 90, 0.3);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(197, 165, 90, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(197, 165, 90, 0.3);
    }
}

.reset-wrapper {
    margin-top: 15px;
}

.reset-link {
    font-size: 0.7rem;
    color: var(--silver);
    text-decoration: none;
    letter-spacing: 1px;
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
}

.reset-link:hover {
    opacity: 1;
    color: var(--gold);
    cursor: pointer;
}

.download-toast {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    white-space: nowrap;
}

.download-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    font-size: 1rem;
}

.btn-play {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 165, 90, 0.4);
    color: var(--text-primary);
}

.btn-play:hover {
    background: rgba(197, 165, 90, 0.2);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 165, 90, 0.2);
}

.btn-copy {
    color: #3e2723;
    /* Dark Brown */
    font-weight: 600;
}

/* ──────────────── Sound Portfolio Section ──────────────── */
.samples-section {
    padding-top: 180px;
    /* Increased padding for more "breathing room" */
    padding-bottom: 80px;
    padding-left: 5%;
    padding-right: 5%;
    width: 100%;
    background: transparent;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 50px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.samples-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.sample-card {
    flex: 1 1 300px;
    max-width: 400px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(197, 165, 90, 0.1);
    position: relative;
    overflow: hidden;
}

.sample-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(197, 165, 90, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(197, 165, 90, 0.1);
}

.sample-icon {
    font-size: 2rem;
    background: rgba(197, 165, 90, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(197, 165, 90, 0.2);
    transition: all 0.3s ease;
}

.sample-card:hover .sample-icon {
    background: var(--gold);
    color: #000;
}

.sample-info {
    flex: 1;
}

.sample-genre {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: block;
}

.sample-name {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    font-weight: 500;
}

/* Play Indicator Animation */
.play-indicator {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 15px;
}

.sample-card.playing .play-indicator {
    display: flex;
}

.play-indicator span {
    width: 3px;
    height: 100%;
    background: var(--gold);
    animation: bounce 0.6s ease-in-out infinite alternate;
}

.play-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.play-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from {
        height: 30%;
    }

    to {
        height: 100%;
    }
}

/* ──────────────── Responsive ──────────────── */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem 5%;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .glass-panel-generator {
        padding: 30px 20px;
    }
}

/* ──────────────── Workflow Section (Brochure Style) ──────────────── */
.gold-separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
    margin: 80px 0 0 0;
    width: 100%;
}

.workflow-section {
    background: rgba(10, 10, 11, 0.4);
    padding: 120px 20px;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.workflow-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.workflow-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(197, 165, 90, 0.15);
    opacity: 0.85;
}

.workflow-content {
    color: var(--silver);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
    font-weight: 300;
}

.workflow-intro {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
}

.workflow-content p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.workflow-highlight {
    font-size: 1.1rem;
    color: var(--gold-light);
    font-style: italic;
    margin-top: 50px;
    opacity: 0.9 !important;
}

.workflow-actions {
    margin-top: 80px;
}

.btn-workflow {
    background: transparent;
    border: 1px solid rgba(197, 165, 90, 0.3);
    color: var(--gold);
    padding: 15px 40px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s ease;
    display: inline-block;
}

.btn-workflow:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(197, 165, 90, 0.3);
    transform: translateY(-3px);
}

/* ──────────────── About Me Section ──────────────── */
.about-section {
    padding: 120px 20px;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 10;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 8px;
    color: var(--white);
    margin-bottom: 50px;
}

.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 70px;
}

.about-intro {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: var(--silver);
    line-height: 1.8;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.about-pillar {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 165, 90, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
}

.about-pillar:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 165, 90, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(197, 165, 90, 0.3));
}

.about-pillar h3 {
    font-family: 'Inter', sans-serif;
    color: var(--gold);
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.pillar-subtitle {
    font-size: 0.95rem;
    color: var(--silver);
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
}

.pillar-subtitle strong {
    display: block;
    color: var(--white);
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 1;
}

.pillar-text {
    font-size: 1rem;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: left;
}

.about-pillar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.about-pillar ul li {
    font-size: 0.9rem;
    color: var(--silver);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.about-pillar ul li::before {
    content: '•';
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.about-footer {
    margin-top: 40px;
    text-align: center;
}

.about-claim {
    font-size: 1.1rem;
    color: var(--silver);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.about-claim strong {
    color: var(--gold);
    font-weight: 600;
}

.about-certificates {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed rgba(197, 165, 90, 0.2);
}

.about-certificates p {
    color: var(--silver);
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.certs-placeholder {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cert-logo {
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(197, 165, 90, 0.15));
    opacity: 0.7;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.cert-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(197, 165, 90, 0.4));
}

/* ──────────────── Services Section ──────────────── */
.services-section {
    padding: 100px 20px;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 10;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 8px;
    color: var(--white);
    margin-bottom: 50px;
}

.services-header {
    margin-bottom: 70px;
}

.services-intro {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: var(--silver);
    line-height: 1.8;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.service-card {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 165, 90, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 165, 90, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.service-card.premium {
    border: 1px solid rgba(197, 165, 90, 0.5);
    background: rgba(40, 35, 20, 0.4);
    box-shadow: 0 0 30px rgba(197, 165, 90, 0.05);
}

.service-card.premium:hover {
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(197, 165, 90, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(197, 165, 90, 0.3));
    text-align: center;
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    color: var(--gold);
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: center;
}

.service-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card ul li {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--silver);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.service-card ul li::before {
    content: '•';
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.service-card ul li strong {
    color: var(--white);
    font-weight: 500;
}

/* ──────────────── Contact Section ──────────────── */
.contact-section {
    padding: 100px 20px;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 10;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 8px;
    color: var(--white);
    margin-bottom: 50px;
}

.contact-header {
    margin-bottom: 70px;
}

.contact-intro {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: var(--silver);
    line-height: 1.8;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.contact-info-card,
.contact-form-card {
    padding: 40px 30px;
    text-align: left;
    height: 100%;
}

.contact-info-card h3,
.contact-form-card h3 {
    font-family: 'Inter', sans-serif;
    color: var(--gold);
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.contact-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--silver);
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(197, 165, 90, 0.3));
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-content strong {
    font-family: 'Inter', sans-serif;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-content a,
.info-content span {
    font-family: 'Inter', sans-serif;
    color: var(--silver);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    padding: 5px;
}

.social-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(150%) sepia(100%) hue-rotate(5deg) saturate(300%) contrast(0.8) drop-shadow(0 0 5px rgba(197, 165, 90, 0.3));
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon:hover .social-img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

/* Contact Form Specifics */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(197, 165, 90, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(197, 165, 90, 0.2);
    background: rgba(15, 15, 15, 0.8);
}

@media (max-width: 768px) {
    .app-header {
        padding: 10px 20px !important;
        min-height: auto !important;
        height: auto !important;
        position: relative !important;
        isolation: isolate !important; /* Ensure blend modes work correctly against the header bg */
    }

    .header-main-row {
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
    }

    /* Row 1, Left: Hamburger */
    /* Row 1, Left: Hamburger */
    .header-left {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding-left: 15px !important; /* Global horizontal alignment start */
    }

    /* Row 1, Right: Flags */
    .header-right {
        order: 2 !important;
        flex: 1 1 50% !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    /* Row 2: Logo Aligned with Hamburger Left Edge */
    .header-logo-row {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important;
        padding: 5px 0 10px 15px !important; /* Matches hamburger padding */
        margin-top: -5px !important; /* Tighten vertical gap */
        background: none !important;
        border: none !important;
    }

    .logo-link {
        background: none !important;
        border: none !important;
        display: inline-block !important;
    }

    #logo-premium {
        height: 38px !important; /* Smaller as requested */
        width: auto !important;
        mix-blend-mode: screen !important; /* Force black transparency */
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4)) !important;
        display: block !important;
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        -webkit-user-drag: none;
        pointer-events: none; /* Make "unactive" as implied by user */
    }

    .header-logo-row {
        display: none !important;
    }

    .header-center {
        order: 3 !important;
        flex: 1 1 100% !important;
        justify-content: flex-start !important;
        margin-top: 10px !important;
        padding-left: 0 !important;
    }

    .nav {
        display: none !important;
    }

    .header-title-container {
        display: none !important;
    }

    .logo-img {
        height: 48px !important;
        mix-blend-mode: screen !important;
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4)) !important;
    }

    .hamburger-menu {
        display: flex !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .header-title-container {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        margin-left: 10px;
    }

    .header-title-main {
        font-size: 1.2rem;
        white-space: nowrap;
        letter-spacing: 4px;
    }

    .header-title-sub {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }

    .logo-img {
        height: 45px;
    }

    .lang-selector-nav {
        gap: 0.8rem;
        padding-left: 0;
    }

    .lang-option {
        padding: 5px;
    }

    .lang-flag {
        width: 32px;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    }

    /* Wider Panels and Elements */
    .mirror-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 5px;
        margin-top: 20px;
    }

    .glass-panel-generator {
        width: 100% !important;
        max-width: none !important;
        padding: 50px 30px;
    }

    .btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }

    .generator-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
        line-height: 1.2;
    }

    .generator-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .titles-wrapper {
        display: none !important;
    }

    .title-tagline {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
        text-align: center;
        display: block !important;
    }

    .powered-by {
        font-size: 1.2rem !important;
        margin-bottom: 25px;
        opacity: 0.8;
        text-align: center;
    }

    /* Scaling buttons */
    .cta-button, .btn-primary, .btn-secondary {
        padding: 18px 30px !important;
        font-size: 1rem !important;
        letter-spacing: 2px !important;
    }

    .generator-section input, 
    .generator-section select {
        width: 100% !important;
        padding: 15px !important;
        font-size: 1rem !important;
    }

    .input-group-gen {
        margin-bottom: 25px;
    }
}

/* =========================================================================
   FOOTER (Global)
   ========================================================================= */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--silver-dark);
    background: transparent;
    position: relative;
    z-index: 10;
    margin-top: 40px;
    border-top: 1px solid rgba(197, 165, 90, 0.1);
}

.site-footer .footer-sep {
    margin: 0 10px;
    color: rgba(197, 165, 90, 0.4);
}

.site-footer .footer-link {
    color: var(--silver-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer .footer-link:hover {
    color: var(--gold-light);
}

/* =========================================================================
   PRIVACY POLICY TYPOGRAPHY
   ========================================================================= */
.privacy-content h3 {
    font-size: 1.1rem;
    color: var(--silver);
    /* Subtly lighter than paragraph text */
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.privacy-content p {
    font-size: 0.85rem;
    /* Smaller font */
    line-height: 1.6;
    /* Generous line height for readability */
    color: var(--silver-dark);
    /* Light-silver color */
    margin-bottom: 1.2rem;
    font-weight: 300;
    /* Lighter weight for subtlety */
}

.privacy-content strong {
    font-weight: 500;
    color: rgba(230, 230, 230, 0.85);
    /* Slightly brighter for emphasis */
}

.privacy-content a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-content a:hover {
    color: var(--gold-light);
}

/* ──────────────── Lyrics Notepad Overlay ──────────────── */
.lyrics-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lyrics-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lyrics-notepad {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 70vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Enhancing the glass effect to look like a premium notepad */
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(15, 15, 15, 0.95));
    border: 1px solid rgba(197, 165, 90, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(197, 165, 90, 0.05);
}

.lyrics-overlay.active .lyrics-notepad {
    transform: translateY(0);
}

.close-notepad {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--silver);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-notepad:hover {
    color: var(--gold-light);
    transform: scale(1.1) rotate(90deg);
}

.notepad-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(197, 165, 90, 0.2);
    padding-bottom: 1rem;
}

.animated-pencil {
    font-size: 1.5rem;
    color: var(--gold-light);
    display: inline-block;
    animation: scribble 2s ease-in-out infinite;
    transform-origin: bottom left;
}

@keyframes scribble {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    25% {
        transform: rotate(15deg) translate(2px, -2px);
    }

    50% {
        transform: rotate(0deg) translate(0, 0);
    }

    75% {
        transform: rotate(-10deg) translate(-2px, -1px);
    }

    100% {
        transform: rotate(0deg) translate(0, 0);
    }
}

.notepad-hint {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.lyrics-textarea {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--silver-light);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    resize: none;
    outline: none;
    /* Subtle horizontal lines to mimic a real notepad */
    background-image: repeating-linear-gradient(transparent, transparent 31px, rgba(255, 255, 255, 0.03) 31px, rgba(255, 255, 255, 0.03) 32px);
    background-attachment: local;
    padding: 0 10px;
}

.lyrics-textarea::placeholder {
    color: rgba(200, 200, 200, 0.2);
    font-style: italic;
}

.lyrics-textarea::-webkit-scrollbar {
    width: 6px;
}

.lyrics-textarea::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.lyrics-textarea::-webkit-scrollbar-thumb {
    background: rgba(197, 165, 90, 0.3);
    border-radius: 3px;
}

.lyrics-textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(197, 165, 90, 0.6);
}

.notepad-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
}


/* =========================================================================
   NEWSLETTER SECTION
   ========================================================================= */
.newsletter-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, transparent, rgba(5, 5, 5, 0.9));
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.newsletter-container {
    max-width: 600px;
    width: 100%;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(197, 165, 90, 0.15);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.newsletter-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(197, 165, 90, 0.3);
}

.newsletter-subtitle {
    font-size: 0.95rem;
    color: var(--silver);
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form .row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    align-items: stretch;
}

.newsletter-form .input-gen {
    margin-bottom: 0;
    padding: 12px 20px;
    width: 100%;
    background: rgba(15, 17, 21, 0.6);
    border: 1px solid rgba(197, 165, 90, 0.2);
    border-radius: 12px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
}

#btn-newsletter,
#btn-newsletter-loading {
    width: 100%;
    padding: 12px 30px;
    white-space: nowrap;
    height: 48px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--gold);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--silver);
    line-height: 1.4;
    cursor: pointer;
}

.gold-link {
    color: var(--gold);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.gold-link:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(197, 165, 90, 0.4);
}

.success-message {
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 20px;
    text-shadow: 0 0 10px rgba(197, 165, 90, 0.3);
    padding: 15px;
    border: 1px solid rgba(197, 165, 90, 0.3);
    background: rgba(197, 165, 90, 0.05);
    border-radius: 8px;
    animation: pulseGlow 2s infinite alternate;
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Newsletter Responsive Adjustments */
@media (max-width: 600px) {
    .newsletter-form .row {
        flex-direction: column;
    }

    #btn-newsletter {
        width: 100%;
    }
}


/* MailerLite Overrides */
.ml-block-form .loading {
    display: none !important;
}

.ml-block-form.ml-block-form--loading .loading {
    display: inline-flex !important;
}

.ml-block-form.ml-block-form--loading .primary {
    display: none !important;
}

/* Phase 32 CSS Performance Isolations */
.hero {
    contain: layout;
}

.generator-section {
    contain: layout paint;
}

.mirror-container {
    contain: layout;
}

.wave-section {
    contain: layout paint;
}

.sound-section {
    contain: layout paint;
}

.notepad-wrapper {
    contain: layout paint;
}

.portfolio-section {
    contain: layout paint;
}

.site-footer {
    contain: layout paint;
}

/* GPU Forcing — push animated/canvas elements to compositor layer */
#particles-canvas,
#wave-canvas {
    will-change: transform;
    transform: translateZ(0);
}

.gradient-3d {
    will-change: transform;
    transform: translateZ(0);
}

.gold-glow-container {
    will-change: transform;
    transform: translateZ(0);
}

/* Phase 39: Animation Pause Class — toggled by Visibility API when tab is hidden */
.paused-anim,
.paused-anim * {
    animation-play-state: paused !important;
}

/* --- Phase 40: Comprehensive Mobile Scalability & Readability Fixes --- */
@media (max-width: 900px) {
    /* 1. Hero Text Scaling (Index) */
    .title-main {
        font-size: 1.8rem !important;
        letter-spacing: 0.1em !important;
    }
    .title-sub {
        font-size: 1.05rem !important;
        margin-top: 15px !important;
    }
    .title-tagline {
        font-size: 0.9rem !important;
        margin-top: 15px !important;
        letter-spacing: 0.15em !important;
    }
    .powered-by {
        font-size: 0.75rem !important;
        margin-bottom: 25px !important;
    }
    
    /* Center and stack buttons in hero */
    .cta-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        margin-top: 30px !important;
    }
    .cta-group .btn {
        width: 100% !important;
        max-width: 280px !important;
        font-size: 0.85rem !important;
        padding: 15px 20px !important;
    }

    /* 2. Workflow Section Fixes (Index) */
    .workflow-title {
        font-size: 1.5rem !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }
    .workflow-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        text-align: center !important;
        padding: 0 5px !important;
    }
    
    .workflow-content .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin-top: 20px !important;
    }

    /* 3. About Grid 3-to-1 Column Fix (About Page) */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    .about-pillar {
        padding: 30px 20px !important;
    }
    .pillar-icon {
        font-size: 2.5rem !important;
    }
    .about-pillar h3 {
        font-size: 1.2rem !important;
        letter-spacing: 1px !important;
        line-height: 1.4 !important;
    }
    .pillar-subtitle {
        font-size: 0.95rem !important;
    }
    .pillar-text {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    .about-intro {
        font-size: 1rem !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
    
    /* 4. Contact Info Cards Fix */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* 5. Services Grid Fix */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .service-card {
        padding: 25px 20px !important;
    }

    /* 6. Contact/Portfolio Button Fix */
    .contact-btn, .portfolio-page .btn {
        width: 100% !important;
        max-width: 280px !important;
        white-space: normal !important;
        height: auto !important;
        line-height: 1.4 !important;
        padding: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* --- Phase 42: Web Audio API Player Controls & EQ --- */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
    background: rgba(15, 17, 21, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    width: 100%;
}

.btn-play-pause-ui {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    border: none;
    color: #000;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(197, 165, 90, 0.4);
}
.btn-play-pause-ui:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(197, 165, 90, 0.8), 0 0 60px rgba(197, 165, 90, 0.4);
    filter: brightness(1.2);
}

.generated-prompt {
    background: linear-gradient(to right, #ffeb99, #ffd700, #d4af37, #ffeb99);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    text-align: center;
    line-height: 1.6;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.eq-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-top: 5px;
}

.eq-slider-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.eq-slider-group label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: #ffd700;
    letter-spacing: 1px;
    font-weight: 600;
}

.eq-slider {
    -webkit-appearance: slider-vertical;
    writing-mode: bt-lr;
    width: 6px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 5px;
    cursor: pointer;
}
.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* --- Phase 41: Mobile Lyrics Button UX Logic --- */
.mobile-lyrics-container {
    display: none;
}

@media (max-width: 1200px) {
    /* Hide the original Hero Lyrics button on Mobile */
    .cta-group [data-i18n="btn_project"] {
        display: none !important;
    }
    
    /* Show the new chronological UX Analytics button below generators */
    .mobile-lyrics-container {
        display: flex !important;
        justify-content: center;
        order: 4;
        width: 100%;
        margin-top: 40px;
        margin-bottom: 20px;
    }
    
    .mobile-lyrics-container .btn {
        width: 100% !important;
        max-width: 320px !important;
        padding: 18px 20px !important;
        font-size: 1rem !important;
        margin: 0 auto;
    }
}

/* --- Phase 105: Horizontal Custom Scrubber --- */
.scrubber-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}

.scrubber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
    border: 2px solid #000;
}

.scrubber-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
    border: 2px solid #000;
}

/* ──────────────── AI Generator Loader ──────────────── */
.loader-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    width: 100%;
}

.dot-spinner {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-spinner__dot {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
}

.dot-spinner__dot::before {
    content: '';
    height: 15%;
    width: 15%;
    border-radius: 50%;
    background-color: var(--gold);
    transform: scale(0);
    opacity: 0.5;
    animation: pulse0112 calc(0.9s * 1.111) ease-in-out infinite;
    box-shadow: 0 0 10px var(--gold-dark);
}

.dot-spinner__dot:nth-child(2) { transform: rotate(45deg); }
.dot-spinner__dot:nth-child(2)::before { animation-delay: calc(0.9s * -0.875); }
.dot-spinner__dot:nth-child(3) { transform: rotate(90deg); }
.dot-spinner__dot:nth-child(3)::before { animation-delay: calc(0.9s * -0.75); }
.dot-spinner__dot:nth-child(4) { transform: rotate(135deg); }
.dot-spinner__dot:nth-child(4)::before { animation-delay: calc(0.9s * -0.625); }
.dot-spinner__dot:nth-child(5) { transform: rotate(180deg); }
.dot-spinner__dot:nth-child(5)::before { animation-delay: calc(0.9s * -0.5); }
.dot-spinner__dot:nth-child(6) { transform: rotate(225deg); }
.dot-spinner__dot:nth-child(6)::before { animation-delay: calc(0.9s * -0.375); }
.dot-spinner__dot:nth-child(7) { transform: rotate(270deg); }
.dot-spinner__dot:nth-child(7)::before { animation-delay: calc(0.9s * -0.25); }
.dot-spinner__dot:nth-child(8) { transform: rotate(315deg); }
.dot-spinner__dot:nth-child(8)::before { animation-delay: calc(0.9s * -0.125); }

@keyframes pulse0112 {
    0%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 15px var(--gold);
    }
}