:root {
    --primary-color: #ff5a1e;
    --secondary-color: #23316b;
    --text-color: #ffffff;
    --background-color: #23316b;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

body {
    background-color: var(--background-color);
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    scroll-snap-align: start;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    padding: 40px;
}

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

h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

p {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 400;
    color: var(--text-color);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

#countdown {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.down-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5em;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: bounce 2s infinite;
    transition: background-color 0.3s ease;
    will-change: transform;
}

.down-indicator:hover {
    background-color: #e24d1b;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.services-section {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.services-section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    align-self: center
}

.services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1; /* Let it take all remaining space */
    justify-content: flex-start; /* Align content to the top */
    width: 100%;
}

.service {
    text-align: center;
}

.service a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.service-logo {
    width: 150px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.service-logo:hover, .service a:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}



.copyright {
    margin-top: auto; /* Push the copyright to the bottom */
    padding: 10px 0;
    font-size: 0.9em;
    color: var(--text-color);
    width: 100%;
    text-align: center;
}