:root {
    --primary-raw: #FF00FF;
    --tattoo-color: transparent;
    --magic-speed-shimmer: 12s;
    --magic-speed-breath: 8s;
    --primary-hue: 300;
    --primary-saturation: 100%;
    --primary-lightness: 50%;
    
    --primary-color: hsl(var(--primary-hue), var(--primary-saturation), var(--primary-lightness));
    --primary-glow: hsl(var(--primary-hue), var(--primary-saturation), 70%);
    --bg-color: #0d0d12;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    
    --brightness-mod: 100%;

    filter: brightness(var(--brightness-mod));
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Typography elements */
.headline {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 0 20px var(--primary-glow);
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 2px;
}

.sub-headline {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-glow);
    margin-bottom: 3rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3.5rem;
}

.title-magic {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    
    background: linear-gradient(
        45deg,
        var(--primary-color),
        #FFFFFF 50%,
        var(--primary-color)
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    animation: shimmer var(--magic-speed-shimmer) linear infinite, breathe var(--magic-speed-breath) ease-in-out infinite alternate;
    will-change: background-position, transform, filter;
}

.title-diamond {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    
    background: linear-gradient(
        45deg,
        #C0C0C0 0%,
        #FFFFFF 25%,
        #E0FFFF 50%,
        #FFFFFF 75%,
        #C0C0C0 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    animation: shimmer var(--magic-speed-shimmer) linear infinite;
    filter: drop-shadow(0 0 2px var(--primary-glow)) drop-shadow(0px 0px 1.5px var(--tattoo-color));
    will-change: background-position;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
}

nav .logo {
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    margin-right: auto;
    white-space: nowrap;
    z-index: 200;
    max-width: 75vw;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    z-index: 200;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, var(--primary-color));
    border-radius: 3px;
    box-shadow: 0 0 5px var(--primary-glow);
}

.mobile-overlay {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-glow);
}

/* Layout Utilities */
.section-spacing {
    padding: 8rem 5% 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Customizer Aside */
.customizer-panel {
    /* Mobile-First setup */
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(0);
    transition: transform 0.4s ease;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(15px);
    border: 2px solid var(--primary-color);
    border-right: none;
    border-radius: 16px 0 0 16px;
    padding: 1.5rem;
    width: 260px;
    z-index: 500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,0,255,0.2);
}

.customizer-panel.collapsed {
    transform: translateY(-50%) translateX(100%);
}

.toggle-btn {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: rgba(20, 20, 30, 0.9);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px var(--primary-glow);
    z-index: 501;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    /* Ensure easy thumb tap targeting */
    touch-action: manipulation;
}

.toggle-btn:hover {
    box-shadow: 0 0 25px var(--primary-glow);
    border-color: #FFD700;
}

.customizer-header {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.customizer-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customizer-body label {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rhythm-preview-icon {
    font-size: 1.2rem;
    display: inline-block;
    animation: pulse 8s infinite alternate ease-in-out;
}

#color-picker {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

#brightness-slider {
    width: 100%;
}

.reset-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.reset-buttons button {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.reset-buttons button:hover {
    background: var(--primary-color);
    color: #000;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
}

.hero-visual {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aura {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.5;
    animation: pulse 4s ease-in-out infinite alternate;
}

.animated-earth {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
}

/* Projects / VIP Vault */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    width: 100%;
    max-width: 1000px;
}

.project-card {
    background-color: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
    /* Soft, premium glowing outline */
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4), inset 0 0 10px rgba(255, 0, 255, 0.2);
    /* Premium gold/fuchsia gradient border */
    background-clip: padding-box, border-box;
    background-image: linear-gradient(var(--bg-color), var(--bg-color)), linear-gradient(45deg, #FFD700, var(--primary-color));
    background-origin: padding-box, border-box;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 35px var(--primary-glow), 0 0 15px #FFD700;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-type {
    color: var(--primary-glow);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.store-badge {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Privacy Section */
.privacy-content {
    text-align: center;
    max-width: 800px;
}

.turtle-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.turtle-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: gentle-rock 4s infinite ease-in-out alternate;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}

.privacy-text {
    font-size: 1.3rem;
    background: rgba(0,0,0,0.4);
    padding: 2rem;
    border-radius: 16px;
    border: 1px dashed var(--primary-color);
}

.quality-hint {
    height: 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Center the text horizontally to match the sub-header */
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
    transform: translateY(-2rem); /* Elevate cleanly into the 3rem paragraph margin gap above the video */
    transition: opacity 1s ease; /* Fade-in only. Zero layout shift limits */
}

.quality-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.hint-text {
    font-size: clamp(0.75rem, 2.5vw, 0.95rem) !important;
    letter-spacing: 0.15em !important;
    text-transform: none !important;
    white-space: nowrap;
}

.hint-arrow {
    width: clamp(14px, 3vw, 20px);
    height: clamp(14px, 3vw, 20px);
    animation: float-arrow 1.5s ease-in-out infinite alternate;
}

@keyframes float-arrow {
    0% { transform: translate(-2px, -2px); }
    100% { transform: translate(2px, 2px); }
}

@media (max-width: 768px) {
    .hint-text {
        letter-spacing: 0.1em !important; /* Compress layout safely to heavily ensure one line bounds */
    }
    .quality-hint {
        transform: translateY(-1.5rem); /* Nudge cleanly preventing crowding with the video container strictly */
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .quality-hint {
        width: 95% !important;
        flex-direction: column; /* Stack arrow safely below the text to prevent geometry overlap */
        gap: 0.2rem;
        transform: translateY(-2.2rem); /* Nudge further upward natively to account for multi-line block expanding downwards */
    }
    .hint-text {
        font-size: clamp(0.8rem, 4vw, 0.9rem) !important;
        white-space: normal !important; /* Allow elegant soft-wrapping strictly inside maximum constraints */
        text-align: center;
    }
    .hint-arrow {
        margin-top: 0.2rem;
    }
}

/* Vision / Music Video Section */
.vision {
    width: 100%;
}

.vision-content {
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto;
    background: var(--card-bg);
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(var(--bg-color), var(--bg-color)), linear-gradient(45deg, #FFD700, var(--primary-color));
    background-origin: padding-box, border-box;
    animation: glow-breathe var(--magic-speed-breath) ease-in-out infinite alternate;
    transition: box-shadow 0.6s ease;
}

.video-container:hover {
    box-shadow: 0 0 40px var(--primary-color), inset 0 0 20px var(--primary-glow) !important;
    animation-play-state: paused;
}

.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 10;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    cursor: pointer;
}

.video-cover.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://img.youtube.com/vi/s5fF1URKwm4/maxresdefault.jpg') center/cover no-repeat;
    opacity: 0.6;
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.video-cover:hover .cover-overlay {
    opacity: 0.8;
    filter: brightness(1.2);
}

.logo-mark {
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.2em;
}

.magic-play-btn {
    position: relative;
    z-index: 12;
    background: linear-gradient(45deg, #FFD700, var(--primary-color));
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    cursor: pointer;
    transform: scale(1.0);
    animation: pulse-btn var(--magic-speed-breath) ease-in-out infinite alternate;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-cover:hover .magic-play-btn {
    transform: scale(1.15);
}

.video-player-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    border: none;
}

iframe#video-player-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px !important;
    height: 1080px !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    z-index: 5;
    border: none;
}

/* Contact Section */
.contact-card {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 0 15px var(--primary-glow);
    margin: 0 auto;
}

.contact-card form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.submit-btn {
    background: linear-gradient(45deg, #FFD700, var(--primary-color));
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Menu Overlay */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(13, 13, 18, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.4s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    nav ul {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }
    
    nav a {
        font-family: 'Montserrat', sans-serif;
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        background: linear-gradient(45deg, #C0C0C0 0%, #FFFFFF 25%, var(--primary-color) 50%, #FFFFFF 75%, #C0C0C0 100%);
        background-size: 200% auto;
        -webkit-background-clip: text;
        color: transparent;
        animation: shimmer var(--magic-speed-shimmer) linear infinite;
        filter: drop-shadow(0 0 1px rgba(255, 0, 255, 0.4)) drop-shadow(0px 0px 1.5px var(--tattoo-color));
    }
    
    .hero.section-spacing {
        padding-top: 180px;
    }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    from { opacity: 0.3; transform: scale(0.9); }
    to { opacity: 0.8; transform: scale(1.1); }
}

@keyframes gentle-rock {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes breathe {
    0% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 2px var(--primary-color)) drop-shadow(0 0 10px var(--primary-glow)) drop-shadow(0px 0px 1.5px var(--tattoo-color));
    }
    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 4px var(--primary-color)) drop-shadow(0 0 20px var(--primary-glow)) drop-shadow(0px 0px 1.5px var(--tattoo-color));
    }
}

@keyframes glow-breathe {
    0% {
        box-shadow: 0 0 10px rgba(0,0,0,0.5), inset 0 0 5px rgba(0,0,0,0.2);
    }
    100% {
        box-shadow: 0 0 35px var(--primary-glow), inset 0 0 15px var(--primary-color);
    }
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 15px var(--primary-color);
    }
    100% {
        box-shadow: 0 0 35px var(--primary-glow);
    }
}

/* Intersection Observer Bloom */
.fade-element {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-element.bloom {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Sub-Footer Patreon Link */
.sub-footer {
    text-align: center;
    padding: 1rem 0 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.patreon-link {
    font-size: 0.75rem !important;
    letter-spacing: 0.1em;
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.6s ease, text-shadow 0.6s ease;
    animation: slow-breathe 20s ease-in-out infinite alternate;
}

.patreon-link:hover {
    opacity: 1;
    text-shadow: 0 0 15px var(--primary-glow);
}

@keyframes slow-breathe {
    0% { transform: scale(0.98); opacity: 0.5; }
    100% { transform: scale(1.02); opacity: 0.7; }
}
