/* CSS Variables */
:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Expanding Glow Rings */
.glow-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: expandRing 3s ease-in-out infinite;
}

.glow-ring-1 {
    animation-delay: 0s;
}

.glow-ring-2 {
    animation-delay: 1s;
    width: 300px;
    height: 300px;
}

.glow-ring-3 {
    animation-delay: 2s;
    width: 400px;
    height: 400px;
}

@keyframes expandRing {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 3D Watch Container */
.watch-3d-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 3rem;
    perspective: 1200px;
    perspective-origin: center center;
}

.watch-3d {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate3D 4s linear infinite;
}

@keyframes rotate3D {
    0% {
        transform: rotateY(0deg) rotateX(5deg);
    }
    25% {
        transform: rotateY(90deg) rotateX(5deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(0deg);
    }
    75% {
        transform: rotateY(270deg) rotateX(-5deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(5deg);
    }
}

/* Watch Face */
.watch-face-3d {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1a1a 0%, #0a0a0a 100%);
    border: 6px solid #D4AF37;
    position: relative;
    margin: 25px auto;
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 0.8),
        0 0 80px rgba(212, 175, 55, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 10px 50px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(212, 175, 55, 0.8),
            0 0 80px rgba(212, 175, 55, 0.4),
            inset 0 0 30px rgba(0, 0, 0, 0.5),
            0 10px 50px rgba(0, 0, 0, 0.5);
        border-color: #D4AF37;
    }
    50% {
        box-shadow: 
            0 0 60px rgba(212, 175, 55, 1),
            0 0 120px rgba(212, 175, 55, 0.6),
            inset 0 0 40px rgba(0, 0, 0, 0.3),
            0 15px 70px rgba(0, 0, 0, 0.6);
        border-color: #F4D03F;
    }
}

/* Hour Markers */
.hour-marker {
    position: absolute;
    width: 3px;
    height: 15px;
    background: linear-gradient(180deg, #D4AF37 0%, #F4D03F 100%);
    top: 20px;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(calc(var(--i) * 30deg));
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
}

/* Watch Hands */
.watch-hand {
    position: absolute;
    background: linear-gradient(180deg, #D4AF37 0%, #F4D03F 100%);
    border-radius: 2px;
    transform-origin: bottom center;
    left: 50%;
    bottom: 50%;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
}

.hour-hand {
    width: 4px;
    height: 60px;
    margin-left: -2px;
    animation: rotateHour 8s linear infinite;
}

.minute-hand {
    width: 3px;
    height: 80px;
    margin-left: -1.5px;
    animation: rotateMinute 4s linear infinite;
}

.second-hand {
    width: 2px;
    height: 90px;
    margin-left: -1px;
    background: linear-gradient(180deg, #FF6B6B 0%, #D4AF37 100%);
    animation: rotateSecond 2s linear infinite;
}

@keyframes rotateHour {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes rotateMinute {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes rotateSecond {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* Watch Center */
.watch-center {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #D4AF37 0%, #F4D03F 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #F4D03F 0%, #D4AF37 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    animation: floatParticle 3s ease-in-out infinite;
    animation-delay: var(--delay);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateX(120px);
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateX(120px) translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateX(140px) translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Brand Text */
.loading-brand {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(
        135deg,
        #FFD700 0%,
        #FFA500 20%,
        #FFD700 40%,
        #FFF8DC 50%,
        #FFD700 60%,
        #FFA500 80%,
        #FFD700 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmerText 3s ease-in-out infinite;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

@keyframes shimmerText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.loading-tagline {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: rgba(212, 175, 55, 0.8);
    letter-spacing: 2px;
    margin-bottom: 3rem;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Progress Bar */
.progress-container {
    width: 300px;
    margin-top: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D4AF37 0%, #F4D03F 50%, #D4AF37 100%);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: shimmerProgress 2s linear infinite;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

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

.progress-percentage {
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: #D4AF37;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 767px) {
    .watch-3d-container {
        width: 200px;
        height: 200px;
    }
    
    .watch-face-3d {
        width: 180px;
        height: 180px;
    }
    
    .loading-brand {
        font-size: 2.5rem;
    }
    
    .progress-container {
        width: 250px;
    }
    
    .particle {
        transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateX(90px);
    }
    
    @keyframes floatParticle {
        0%, 100% {
            transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateX(90px) translateY(0) scale(1);
            opacity: 0.8;
        }
        50% {
            transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateX(110px) translateY(-15px) scale(1.2);
            opacity: 1;
        }
    }
}
