/* ==================== المتغيرات العامة ==================== */
:root {
    --navy: #0B2E4F;
    --navy-light: #123a63;
    --cyan: #29ABE2;
    --emerald: #1DB980;
    --bg-light: #F5FBFC;
    --white: #ffffff;
    --text-gray: #5a6a75;
    --shadow: rgba(11, 46, 79, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(160deg, #F5FBFC 0%, #EAF6F8 50%, #F0FBF6 100%);
    color: var(--navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* ==================== خلفية الموجات ==================== */
.waves-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25vh;
    z-index: 0;
    pointer-events: none;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
}

.wave-parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.wave-parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 12s; }
.wave-parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 16s; }
.wave-parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 20s; }
.wave-parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 25s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* ==================== فقاعات الماء ==================== */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(41,171,226,0.25), rgba(29,185,128,0.15));
    box-shadow: inset 0 0 8px rgba(255,255,255,0.5);
    animation: rise linear infinite;
}

@keyframes rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.5; }
    100% {
        transform: translateY(-110vh) translateX(20px);
        opacity: 0;
    }
}

/* ==================== الحاوية الرئيسية ==================== */
.container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== الشعار ==================== */
.logo-wrap {
    margin-bottom: 25px;
    animation: floatLogo 4s ease-in-out infinite;
}

.logo {
    width: 140px;
    max-width: 40vw;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(11, 46, 79, 0.2));
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==================== العنوان الرئيسي ==================== */
.main-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.5;
    color: var(--navy);
    margin-bottom: 18px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--cyan) 50%, var(--emerald) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 6s linear infinite;
}

@keyframes shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 45px;
    line-height: 1.9;
    font-weight: 400;
}

/* ==================== العداد التنازلي ==================== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.time-box {
    background: var(--white);
    border-radius: 18px;
    padding: 18px 10px;
    min-width: 85px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid rgba(41, 171, 226, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--cyan), var(--emerald));
}

.time-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(41, 171, 226, 0.25);
}

.time-number {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.time-number.flip {
    animation: flipNum 0.4s ease;
}

@keyframes flipNum {
    0% { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

.time-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 6px;
    font-weight: 500;
}

/* ==================== الفاصل الزخرفي ==================== */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
}

.drop {
    font-size: 1.5rem;
    animation: dropPulse 2s ease-in-out infinite;
}

@keyframes dropPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* ==================== روابط التواصل الاجتماعي ==================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 18px var(--shadow);
    border: 1px solid rgba(41, 171, 226, 0.15);
    transition: all 0.35s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--navy), var(--cyan), var(--emerald));
    color: var(--white);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 25px rgba(41, 171, 226, 0.35);
}

/* ==================== الفوتر ==================== */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 25px 15px;
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-domain {
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.5px;
}

/* ==================== التجاوب مع الشاشات ==================== */
@media (max-width: 600px) {
    .countdown {
        gap: 10px;
    }
    .time-box {
        min-width: 70px;
        padding: 14px 8px;
        border-radius: 14px;
    }
    .social-icon {
        width: 42px;
        height: 42px;
    }
    .logo {
        width: 110px;
    }
}

@media (max-width: 380px) {
    .time-box {
        min-width: 62px;
        padding: 10px 6px;
    }
    .time-label {
        font-size: 0.7rem;
    }
}