/* ============================================
   GLOBAL STYLES & TYPOGRAPHY
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&display=swap');

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Cinzel', serif;
    background: #000;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/background.jpg') center/cover no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

/* ============================================
   EFFECTS CONTAINER - OPTIMIZED FOR PERFORMANCE
   ============================================ */

.effects-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Wind Effect */
.wind-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.02) 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.02) 75%, 
        transparent 100%);
    animation: windMove 7s ease-in-out infinite;
    will-change: transform;
}

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

/* Rain Particles */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rain-particle {
    position: absolute;
    width: 1px;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0.2;
    animation: rainFall linear infinite;
    will-change: transform;
}

@keyframes rainFall {
    0% {
        transform: translateY(-10vh);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Fog/Mist Layer */
.fog-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(200, 180, 150, 0.08) 0%, transparent 70%);
    animation: fogDrift 15s ease-in-out infinite;
    will-change: transform;
}

@keyframes fogDrift {
    0%, 100% {
        transform: translateX(-2%) translateY(-1%);
        opacity: 0.12;
    }
    50% {
        transform: translateX(2%) translateY(1%);
        opacity: 0.15;
    }
}

/* Dust/Spiritual Particles */
.dust-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dust-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 163, 106, 0.4), transparent);
    animation: dustFloat ease-in-out infinite;
    will-change: transform;
}

@keyframes dustFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Light Sweep Effect */
.light-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        transparent 100%);
    animation: lightSweep 8s ease-in-out infinite;
    z-index: 1;
    will-change: transform;
}

@keyframes lightSweep {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

/* ============================================
   CONTENT OVERLAY
   ============================================ */

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    pointer-events: auto;
    padding-bottom: 60px;
    overflow: hidden;
}

/* Logo Container - Top Position */
.logo-container {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    animation: logoFadeIn 1.5s ease-out forwards;
    flex-shrink: 0;
}

.logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(201, 163, 106, 0.3));
    animation: logoShimmer 3s ease-in-out infinite;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoShimmer {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(201, 163, 106, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(201, 163, 106, 0.6));
    }
}

/* ============================================
   HEADLINE WITH IMPACT ANIMATION
   ============================================ */

.headline-container {
    text-align: center;
    margin-bottom: 15px;
    animation: headlineFadeIn 1.8s ease-out 0.3s forwards;
    opacity: 0;
    flex-shrink: 0;
}

.headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 
        0 0 15px rgba(212, 175, 55, 0.8),
        0 4px 20px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.9);
    margin: 0;
    line-height: 1.2;
    animation: headlineImpact 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

@keyframes headlineFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes headlineImpact {
    0% {
        transform: scale(0.5) rotateX(-90deg);
        opacity: 0;
        text-shadow: 
            0 0 5px rgba(212, 175, 55, 0.3),
            0 2px 10px rgba(212, 175, 55, 0.2);
    }
    50% {
        transform: scale(1.15) rotateX(10deg);
        text-shadow: 
            0 0 30px rgba(212, 175, 55, 1),
            0 8px 30px rgba(212, 175, 55, 0.8),
            0 0 60px rgba(212, 175, 55, 0.5);
    }
    100% {
        transform: scale(1) rotateX(0deg);
        opacity: 1;
        text-shadow: 
            0 0 15px rgba(212, 175, 55, 0.8),
            0 4px 20px rgba(212, 175, 55, 0.6),
            0 0 40px rgba(212, 175, 55, 0.3);
    }
}

/* Continuous pulse effect for gamer attention */
.headline {
    animation: 
        headlineImpact 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards,
        headlinePulse 2s ease-in-out 1.3s infinite;
}

@keyframes headlinePulse {
    0%, 100% {
        text-shadow: 
            0 0 15px rgba(212, 175, 55, 0.8),
            0 4px 20px rgba(212, 175, 55, 0.6),
            0 0 40px rgba(212, 175, 55, 0.3);
    }
    50% {
        text-shadow: 
            0 0 25px rgba(212, 175, 55, 1),
            0 6px 25px rgba(212, 175, 55, 0.8),
            0 0 50px rgba(212, 175, 55, 0.5);
    }
}

/* ============================================
   SECONDARY TEXT - WHITE WITH SANDY SHADOW
   ============================================ */

.secondary-text-container {
    text-align: center;
    margin-bottom: 30px;
    animation: secondaryFadeIn 1.8s ease-out 0.5s forwards;
    opacity: 0;
    flex-shrink: 0;
}

.secondary-text {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 
        0 0 8px rgba(212, 175, 55, 0.6),
        0 3px 12px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.2);
    margin: 0 0 10px 0;
}

.subline {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 
        0 0 6px rgba(212, 175, 55, 0.5),
        0 2px 8px rgba(212, 175, 55, 0.4),
        0 0 15px rgba(212, 175, 55, 0.15);
    margin: 0;
    font-weight: 400;
}

@keyframes secondaryFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CTA BUTTON - ULTRA-FAST BLINKING
   ============================================ */

.cta-wrapper {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.cta-button {
    padding: 14px 40px;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a;
    background: linear-gradient(135deg, #d9b77c 0%, #b68a4d 100%);
    border: 1px solid #f0d49a;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(201, 163, 106, 0.6);
    transition: all 0.3s ease;
    animation: 
        buttonFadeIn 0.2s ease-out 0.1s forwards,
        ultraFastBlink 0.2s ease-in-out 0.3s infinite;
    opacity: 0;
    pointer-events: auto;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(201, 163, 106, 0.9);
}

.cta-button:active {
    transform: scale(0.98);
}

@keyframes buttonFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ultra-fast blinking animation (0.1s to 0.3s) */
@keyframes ultraFastBlink {
    0%, 100% {
        box-shadow: 0 0 15px rgba(201, 163, 106, 0.6);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 30px rgba(201, 163, 106, 0.95);
        opacity: 0.85;
    }
}

/* Button text */
.button-text {
    position: relative;
    z-index: 2;
    display: block;
}

/* Button shimmer effect */
.button-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: buttonShimmer 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes buttonShimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

/* ============================================
   PARALLAX EFFECT
   ============================================ */

.background {
    transform-origin: center;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

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

@media (max-width: 768px) {
    .headline {
        font-size: 1.8rem;
    }

    .secondary-text {
        font-size: 1rem;
    }

    .subline {
        font-size: 0.75rem;
    }

    .cta-button {
        padding: 12px 32px;
        font-size: 0.85rem;
    }

    .logo {
        width: 80px;
    }

    .content-overlay {
        padding-top: 30px;
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 1.3rem;
        letter-spacing: 0.1em;
    }

    .secondary-text {
        font-size: 0.8rem;
    }

    .subline {
        font-size: 0.65rem;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 0.75rem;
    }

    .logo {
        width: 60px;
    }

    .content-overlay {
        padding-top: 20px;
        padding-bottom: 70px;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
