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

:root {
    --bg-dark: #07080c;
    --bg-card: rgba(18, 22, 33, 0.92);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 240, 255, 0.25);
    
    --primary: #00f0ff; /* Neon water cyan */
    --primary-glow: rgba(0, 240, 255, 0.4);
    --secondary: #ffb700; /* Premium metallic gold */
    --secondary-glow: rgba(255, 183, 0, 0.4);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-arabic: 'Cairo', sans-serif;
    --text-english: 'Montserrat', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--text-arabic);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 1.5rem 1rem;
}

/* Fixed Background Decorations */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
}

.glow-orb-1 {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
    filter: blur(80px);
}

.glow-orb-2 {
    position: absolute;
    bottom: -15%;
    right: -15%;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(255, 183, 0, 0.08) 0%, transparent 70%);
    filter: blur(80px);
}

/* Water Particles Effect */
.water-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.drop {
    position: absolute;
    background: linear-gradient(transparent, rgba(0, 240, 255, 0.5));
    width: 1.5px;
    height: 60px;
    opacity: 0.3;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-80px);
    }
    100% {
        transform: translateY(105vh);
    }
}

/* Main Container Card */
.main-container {
    width: 100%;
    max-width: 620px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 2px solid var(--primary);
    margin: auto;
}

/* Spotlight Beams */
.spotlight-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    border-radius: 24px;
}

.spotlight {
    position: absolute;
    top: 0;
    width: 90px;
    height: 220px;
    background: radial-gradient(ellipse at top, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
    opacity: 0.8;
    filter: blur(4px);
    animation: swing 5s ease-in-out infinite alternate;
    transform-origin: top center;
}

.spotlight:nth-child(1) {
    left: 15%;
    animation-delay: 0s;
}

.spotlight:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
    animation: none;
    opacity: 0.9;
}

.spotlight:nth-child(3) {
    right: 15%;
    animation-delay: -2.5s;
}

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

/* Header & Brand Logo */
.header {
    margin-bottom: 1.5rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-img {
    width: 120px;
    height: auto;
    border-radius: 18px;
    margin-bottom: 0.8rem;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.04);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.4);
}

.brand-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.brand-subtitle {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 0 10px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Video Player Area */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
    background: #000;
    z-index: 5;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sound Toggle Button Overlay */
.sound-toggle-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(18, 22, 33, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-family: var(--text-arabic);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}

.sound-toggle-btn:hover,
.sound-toggle-btn.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: transparent;
}

/* Countdown Section */
.countdown-section {
    width: 100%;
    margin-bottom: 1.5rem;
    z-index: 5;
}

.countdown-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.countdown-seconds {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0 4px;
}

.countdown-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 12px var(--primary-glow);
    transform-origin: right center;
    transform: scaleX(1);
    transition: transform 0.1s linear;
}

/* CTA Button */
.cta-button {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, #0088cc 100%);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.35);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(0, 240, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 240, 255, 0.55);
    background: linear-gradient(135deg, var(--secondary) 0%, #e09f00 100%);
    border-color: rgba(255, 183, 0, 0.4);
    color: #000;
}

.cta-button i {
    transition: var(--transition);
}

.cta-button:hover i {
    transform: translateX(-4px);
}

/* Footer Copyright */
.footer-text {
    margin-top: 1.8rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    z-index: 5;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .main-container {
        padding: 1.5rem 1.2rem;
        border-radius: 20px;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .logo-img {
        width: 100px;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    .video-wrapper {
        min-height: 180px;
    }
}
