@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@500;700;900&display=swap');
*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    /* خلفية سوداء عميقة مع إضاءة حمراء خافتة جداً في المنتصف متناسقة مع اللوجو */
    background: radial-gradient(circle at center, #1a0505 0%, #000000 100%);
    color: #ffffff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    text-align: center;
    z-index: 5;
    padding: 20px;
}

.logo-box img {
    width: 230px;
    border-radius: 50%;
    animation: logoShow 1.5s ease, glow 2.5s infinite alternate;
}

@keyframes logoShow {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1)); }
    /* لمعان أحمر داكن وهادي */
    to { filter: drop-shadow(0 0 25px rgba(171, 30, 40, 0.6)); }
}

h1 {
    font-size: 45px;
    margin-top: 25px;
    animation: fade 2s;
}

h2 {
    font-size: 25px;
    margin: 15px;
}

h2 span, .finish span {
    color: #d12c38; /* أحمر طبيعي مش فاقع */
}

.arabic {
    margin-top: 25px;
    animation: fade 3s;
    font-family: 'Tajawal', sans-serif; /* تغيير الخط هنا */
}

    .arabic h3 {
        font-size: 35px;
        color: #f4f5f7;
    }

    /* الجزء ده ضفناه مخصوص عشان نكبر جملة لقد تخطيت */
    .arabic p {
        font-size: 24px; /* كبرنا الحجم اهو */
        font-weight: 600;
        margin-top: 10px;
        color: #e0e0e0;
        line-height: 1.5; /* عشان لو الكلام سطرين ميبقاش لازق في بعضه */
    }

.finish {
    margin-top: 35px;
    font-size: 28px;
    /* بوكس هادي ورايق */
    border: 2px solid rgba(209, 44, 56, 0.4);
    padding: 15px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(209, 44, 56, 0.15);
    background-color: rgba(255, 255, 255, 0.03);
}

.social {
    margin-top: 35px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social a {
    text-decoration: none;
    color: #f4f5f7;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 25px;
    transition: 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.social a:hover {
    background: #ab1e28; /* لون اللوجو الأساسي عند الوقوف عليه */
    border-color: #ab1e28;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(171, 30, 40, 0.3);
}

@keyframes fade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Balloons */
/* =========================================
   Realistic Balloons with Strings update
   ========================================= */

.balloons-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1; /* behind main content */
}

.balloon {
    position: absolute;
    bottom: -150px;
    width: 55px;
    height: 75px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    box-shadow: inset 0 -10px 15px rgba(0,0,0,0.2);
    opacity: 0.95;
    overflow: visible;
    z-index: 1;
    /* السطرين دول اللي هيخلوا البلالين تفضل تطلع على طول من غير ما تقف */
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

    /* 1. Glossy Reflection (The shine on top) */
    .balloon::after {
        content: '';
        position: absolute;
        top: 10px;
        left: 10px;
        width: 20px;
        height: 30px;
        background: rgba(255, 255, 255, 0.3); /* highlights */
        border-radius: 50%;
        transform: rotate(-15deg);
        filter: blur(1px); /* soften the highlight */
    }

    /* 2. The Knot and the String ( الخيط والعقدة) */
    .balloon::before {
        content: '';
        position: absolute;
        bottom: -6px; /* Knot position inside the tie */
        left: 50%;
        transform: translateX(-50%);
        /* The Knot (small triangle at base) */
        width: 10px;
        height: 10px;
        background: inherit; /* same color as balloon */
        border-radius: 2px;
        z-index: 1;
        /* The String (الخيط) */
        box-shadow: 1px 8px 0px 0px rgba(180, 180, 180, 0.6), /* top of string */
        1px 25px 0px 0px rgba(180, 180, 180, 0.5), /* middle of string */
        1px 50px 0px 0px rgba(180, 180, 180, 0.4), /* long string */
        1px 75px 0px 0px rgba(180, 180, 180, 0.3); /* fading string end */
    }

/* Animations Names defined in JS (flyA, flyB) for varied swaying */

@keyframes flyA {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
    }

    100% {
        transform: translateY(-130vh) rotate(15deg) translateX(50px);
    }
}

@keyframes flyB {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
    }

    100% {
        transform: translateY(-130vh) rotate(-15deg) translateX(-50px);
    }
}

/* Confetti */
.confetti {
    position: absolute;
    width: 8px;
    height: 16px;
    animation: fall linear infinite;
    opacity: 0.9;
}

@keyframes fall {
    to { transform: translateY(110vh) rotate(720deg); }
}

@media(max-width: 600px) {
    .logo-box img { width: 170px; }
    h1 { font-size: 32px; }
    h2 { font-size: 20px; }
    .finish { font-size: 20px; }
}