:root {
    --primary-color: #0077b6;
    --secondary-color: #00b4d8;
    --accent-color: #90e0ef;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #0a192f;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    color: var(--text-color);
    padding: 1rem 0;
    line-height: 1.6;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero.png') no-repeat center center/cover;
    filter: brightness(0.4) blur(3px);
    z-index: -1;
    animation: zoomInOut 20s infinite alternate;
    will-change: transform;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 200px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    animation: floatLogo 4s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatLogo {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #fff;
}

h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 1rem;
    opacity: 0.95;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1.5rem;
    opacity: 0.9;
}

.gradient-text {
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.sub-title {
    display: block;
    font-size: 0.6em;
    opacity: 0.8;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #e0e0e0;
}

.redirect-box {
    margin-top: 1rem;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.1s linear;
}

.countdown-text {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.enter-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.3);
    border: none;
    cursor: pointer;
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 119, 182, 0.5);
    filter: brightness(1.1);
}

.enter-btn:active {
    transform: translateY(-1px);
}

[dir="rtl"] h1,
[dir="rtl"] p {
    text-align: center;
}

/* Mobile Responsiveness - Critical for SEO */
@media (max-width: 768px) {
    .container {
        padding: 1.25rem;
        border-radius: 16px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1rem;
    }

    h3 {
        font-size: 0.95rem;
    }

    .logo {
        width: 150px;
        margin-bottom: 0.75rem;
    }

    p {
        font-size: 0.95rem;
    }

    .enter-btn {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem 0;
    }

    .container {
        width: 95%;
        padding: 1rem;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 0.9rem;
    }

    .logo {
        width: 120px;
        margin-bottom: 0.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    .enter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .countdown-text {
        font-size: 0.85rem;
    }

    .progress-container {
        height: 4px;
        margin-bottom: 0.75rem;
    }
}

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

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0a192f;
    }
}

/* High contrast mode */
@media (prefers-contrast: more) {
    .gradient-text {
        filter: contrast(1.5);
    }
}

/* Print styles for better SEO */
@media print {
    .redirect-box,
    .progress-container,
    .enter-btn {
        display: none;
    }

    body {
        background: white;
        color: #000;
    }

    .container {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}