/* 5D ENERQI - Ethereal Flow Style */

/* Base settings */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #050505;
    color: #F5F5F0;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4AF37 0%, #8B7355 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFD700 0%, #D4AF37 100%);
}

/* Typography */
.font-display {
    font-family: 'Cinzel', serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

/* ========== ETHEREAL FLOW EFFECTS ========== */

/* Animated Gold Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #FFD700 0%, transparent 70%);
    border-radius: 50%;
    animation: float-particle 15s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes float-particle {
    0%, 100% { 
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(80vh) translateX(20px) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translateY(40vh) translateX(-30px) scale(0.8);
    }
    90% {
        opacity: 0.2;
        transform: translateY(0vh) translateX(10px) scale(0.3);
    }
}

/* Liquid Gold Wave Background */
.liquid-gold-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.2) 0%, transparent 40%);
    animation: liquid-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquid-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Flowing Gold Waves */
.flow-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.1) 25%, 
        rgba(255, 215, 0, 0.2) 50%, 
        rgba(212, 175, 55, 0.1) 75%, 
        transparent 100%);
    animation: wave-flow 10s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes wave-flow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.1) 50%, 
        transparent 100%);
    transition: left 0.8s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 0.2),
        inset 0 0 20px rgba(212, 175, 55, 0.05);
    transform: translateY(-8px);
}

/* ========== ANIMATIONS ========== */

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay-1 {
    animation: float 7s ease-in-out infinite 1s;
}

.animate-float-delay-2 {
    animation: float 8s ease-in-out infinite 2s;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
    50% { box-shadow: 0 0 30px 15px rgba(212, 175, 55, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    animation: pulse-glow 2s infinite;
}

/* Breathing Glow Animation */
@keyframes breathe-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.5), 0 0 60px rgba(212, 175, 55, 0.2);
    }
}

.breathe-glow {
    animation: breathe-glow 4s ease-in-out infinite;
}

/* Text Glow */
.text-glow {
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.1);
}

/* Animated Text Shimmer */
@keyframes text-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-shimmer {
    background: linear-gradient(90deg, 
        #D4AF37 0%, 
        #FFD700 25%, 
        #FFFFFF 50%, 
        #FFD700 75%, 
        #D4AF37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 4s linear infinite;
}

/* Video Overlay Gradient */
.video-overlay {
    background: linear-gradient(to bottom, 
        rgba(5,5,5,0.2) 0%, 
        rgba(5,5,5,0.4) 30%,
        rgba(5,5,5,0.7) 70%, 
        rgba(5,5,5,1) 100%);
}

/* Hero Vignette */
.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(5,5,5,0.8) 100%);
    pointer-events: none;
}

/* ========== SCROLL ANIMATIONS ========== */

.opacity-0-start {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation Classes */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ========== SPECIAL EFFECTS ========== */

/* Energy Ring */
@keyframes energy-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.energy-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    animation: energy-ring 3s ease-out infinite;
}

/* Torus Field Effect */
@keyframes rotate-torus {
    0% { transform: rotateX(60deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateZ(360deg); }
}

.torus-field {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: rotate-torus 20s linear infinite;
    transform-style: preserve-3d;
}

/* Gold Gradient Border */
.gold-border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(#050505, #050505) padding-box,
                linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%) border-box;
}

/* Ambient Glow Orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orb-float 10s ease-in-out infinite;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(0, -50px) scale(0.9); }
    75% { transform: translate(-50px, -20px) scale(1.05); }
}

/* ========== INPUT STYLES ========== */

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #050505 inset !important;
    -webkit-text-fill-color: #F5F5F0 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Focus Ring */
input:focus {
    box-shadow: 0 2px 0 #D4AF37;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .text-glow {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    }
    
    .glass-card:hover {
        transform: translateY(-4px);
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
}

/* ========== LOADING STATE ========== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Video Fallback */
.video-fallback {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        transparent 50%,
        rgba(212, 175, 55, 0.05) 100%);
    animation: fallback-pulse 4s ease-in-out infinite;
}

@keyframes fallback-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}
