/* ===== Font Face ===== */
@font-face {
    font-family: 'Zaatar';
    src: url('fonts/Zaatar-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a1321;
    --bg-secondary: #0051c3;
    --bg-gradient-start: #0a1321;
    --bg-gradient-end: #0051c3;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-blue: #0051c3;
    --accent-cyan: #40a6f9;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Zaatar', 'Arial', sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* ===== Animated Background Particles ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ===== Glowing Orbs ===== */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* ===== Main Container ===== */
.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 5rem 2rem;
    max-width: 800px;
    width: 100%;
}

/* ===== Logo ===== */
.logo-wrapper {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 240px;
    width: 100%;
    height: auto;
    /* CSS Filter to convert to white */
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Tagline ===== */
.tagline-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

.line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 0 30px var(--accent-glow);
}

.tagline-ar {
    font-family: var(--font-arabic);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: bold;
    color: var(--text-secondary);
    margin: 0;
    direction: rtl;
    animation: fadeIn 1s ease-out 0.3s both;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== Loading Dots ===== */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.7s both;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-glow);
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ===== Notify Section ===== */
.notify-section {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.notify-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Footer ===== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    text-align: center;
    z-index: 1;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {

    .logo {
        max-width: 250px;
    }

    .tagline-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .line {
        width: 40px;
    }

    .line:first-child {
        display: none;
    }

    .orb-1 {
        width: 250px;
        height: 250px;
    }

    .orb-2 {
        width: 200px;
        height: 200px;
    }

    .orb-3 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 200px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* ===== Glassmorphism Enhancement ===== */
.container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    backdrop-filter: blur(1px);
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}