/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #1e3a5f;
    --secondary-color: #2d5a8c;
    --accent-color: #4a90e2;
    --gold-accent: #d4af37;
    --success-color: #10b981;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2d5a8c 0%, #2d5a8c 50%, #4a90e2 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(74, 144, 226, 1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Amiri', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.8;
    min-height: 100vh;
    direction: rtl;
}

/* ==================== BACKGROUND ANIMATION ==================== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-primary);
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 7s;
}

.circle-3 {
    width: 400px;
    height: 400px;
    bottom: -10%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.5;
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.4;
    }
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 90px 10px, white, transparent);
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
    opacity: 0.3;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }
}

/* ==================== MAIN CONTAINER ==================== */
.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==================== LOGO SECTION ==================== */
.logo-container {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 1s ease;
}

.logo {
    width: 220px;
    object-fit: contain;
    filter: brightness(100);
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(74, 144, 226, 0.5));
    }
}

.brand-name {
    font-size: 3rem;
    font-weight: 700;
    margin-top: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* ==================== CONTENT SECTION ==================== */
.content {
    text-align: center;
    width: 1100px;

    animation: fadeInUp 1s ease 0.3s backwards;
}

.tagline {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.2;
}

.description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== FEATURES ==================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease backwards;
}

.feature-item:nth-child(1) {
    animation-delay: 0.4s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.5s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.7s;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==================== COUNTDOWN ==================== */
.countdown-section {
    margin: var(--spacing-xl) 0;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.countdown-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    font-weight: 600;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    min-width: 100px;
    transition: all var(--transition-normal);
}

.countdown-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-glow);
}

.countdown-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.countdown-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ==================== NOTIFICATION FORM ==================== */
.notify-section {
    margin: var(--spacing-xl) 0;
    animation: fadeInUp 1s ease 0.9s backwards;
}

.notify-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-weight: 600;
}

.notify-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.email-input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    font-family: 'Poppins', sans-serif;
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.submit-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
}

.submit-btn:hover .btn-icon {
    transform: translateX(-4px);
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.success-message {
    display: none;
    background: var(--success-color);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
    animation: slideIn 0.5s ease;
}

.success-message.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== SOCIAL LINKS ==================== */
.social-links {
    margin-top: var(--spacing-xl);
    animation: fadeInUp 1s ease 1s backwards;
}

.follow-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* ==================== FOOTER ==================== */
.footer {
    margin-top: auto;
    padding-top: var(--spacing-xl);
    text-align: center;
    animation: fadeIn 1s ease 1.1s backwards;
}

.footer p {
    font-size: 0.875rem;
    color: #FFF;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .brand-name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.75rem;
    }

    .description {
        font-size: 1rem;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .countdown {
        gap: var(--spacing-sm);
    }

    .countdown-item {
        min-width: 80px;
        padding: var(--spacing-md);
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .input-group {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    .container {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-icon {
        font-size: 2rem;
    }
}

/* ==================== RTL ADJUSTMENTS ==================== */
[dir="rtl"] .email-input {
    text-align: right;
}

[dir="rtl"] .brand-name {
    letter-spacing: 0;
}

[dir="rtl"] .countdown-label {
    letter-spacing: 0;
}

/* ==================== PRINT STYLES ==================== */
@media print {

    .background-animation,
    .social-links,
    .notify-section {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}