/* ==========================================================================
   MoonTube Official Design System — Signature Lunar Gold & Electric Blue
   ========================================================================== */

:root {
    --brand-gold-50: #fffbea;
    --brand-gold-100: #fff3c4;
    --brand-gold-200: #fee78a;
    --brand-gold-300: #fde047;
    --brand-gold-400: #facc15;
    --brand-gold-500: #f6c324;
    --brand-gold-600: #ca8a04;
    --brand-gold-700: #a16207;
    --brand-glow: rgba(246, 195, 36, 0.45);
    
    --accent-blue-400: #60a5fa;
    --accent-blue-500: #1181f8;
    --accent-blue-600: #2563eb;
    
    --bg-dark-950: #050608;
    --bg-dark-900: #07080c;
    --bg-dark-800: #0f111a;
    --bg-dark-700: #141721;
    --bg-dark-600: #1f2334;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(246, 195, 36, 0.35);
}

/* Smooth Scrolling with Offset for Fixed Header */
html {
    scroll-behavior: smooth;
    color-scheme: dark;
    scroll-padding-top: 5.5rem;
}

body {
    background-color: var(--bg-dark-900);
    color: #e2e8f0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Seamless Animated Ambient Gradients (Signature Lunar Gold & Sapphire Blue)
   ========================================================================== */
.ambient-mesh-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -10;
    overflow: hidden;
}

.aurora-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(130px);
    opacity: 0.32;
    mix-blend-mode: screen;
    will-change: transform;
}

.orb-gold-1 {
    top: -12%;
    left: 15%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #f6c324 0%, rgba(250, 204, 21, 0.35) 55%, transparent 80%);
    animation: floatOrbGold1 20s ease-in-out infinite alternate;
}

.orb-blue-1 {
    top: 30%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1181f8 0%, rgba(37, 99, 235, 0.3) 55%, transparent 80%);
    animation: floatOrbBlue1 24s ease-in-out infinite alternate;
}

.orb-gold-2 {
    bottom: 5%;
    left: 10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #eab308 0%, rgba(202, 138, 4, 0.25) 55%, transparent 80%);
    animation: floatOrbGold2 22s ease-in-out infinite alternate;
}

@keyframes floatOrbGold1 {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(90px, 110px) scale(1.15); }
    100% { transform: translate(-70px, 50px) scale(0.95); }
}

@keyframes floatOrbBlue1 {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(-110px, -70px) scale(1.2); }
    100% { transform: translate(60px, 80px) scale(1); }
}

@keyframes floatOrbGold2 {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(100px, -80px) scale(1.12); }
    100% { transform: translate(-50px, -60px) scale(0.92); }
}

/* Subtle Starfield & Precision Grid Overlay */
.grid-pattern-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
    z-index: -5;
    mask-image: radial-gradient(ellipse at 50% 35%, black 45%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 45%, transparent 85%);
}

/* ==========================================================================
   Glassmorphism, Badges & Buttons
   ========================================================================== */
.glass-card {
    background: rgba(15, 17, 26, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(246, 195, 36, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -15px rgba(246, 195, 36, 0.12);
}

.glass-nav {
    background: rgba(7, 8, 12, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Gold Gradient Typography */
.brand-gold-text {
    background: linear-gradient(135deg, #ffffff 15%, #fde047 50%, #f6c324 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* High-Contrast Gold Button */
.brand-gold-btn {
    background: linear-gradient(135deg, #fde047 0%, #f6c324 50%, #eab308 100%);
    color: #07080c;
    font-weight: 800;
    box-shadow: 0 8px 24px -4px rgba(246, 195, 36, 0.45);
    transition: all 0.25s ease;
}

.brand-gold-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -4px rgba(246, 195, 36, 0.65);
}

.brand-gold-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Blue Accent Button */
.brand-blue-btn {
    background: linear-gradient(135deg, #38bdf8 0%, #1181f8 50%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px -4px rgba(17, 129, 248, 0.4);
    transition: all 0.25s ease;
}

.brand-blue-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(17, 129, 248, 0.6);
}

/* Code Badges */
.code-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #07080c;
}

::-webkit-scrollbar-thumb {
    background: #1f2334;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f6c324;
}
