/* ========================== */
/* GENERAL    */
/* ========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2a6c, #2a5298, #3a7bd5);
    color: #fff;
    overflow-x: hidden;
    position: relative;
    font-family: "Tajawal", sans-serif !important;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -99;
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -100;
    /*object-fit: contain;*/
    opacity: 2;
    pointer-events: none; /* So it doesn't block clicks */
}

h1, h2, h3, h4, h5, h6, p, .btn {
    font-family: "Tajawal", sans-serif !important;
}
/* ========================== */
/* Welcome    */
/* ========================== */
.animated-welcome {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255,255,255,0.6),
    0 0 20px rgba(255,255,255,0.4);
    animation: fadeGlowScale 1.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
    margin-bottom: 60px;
    z-index: 10;
    position: relative;
}

@keyframes fadeGlowScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
        text-shadow: none;
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(5px);
        text-shadow: 0 0 20px rgba(255,255,255,0.6);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        text-shadow: 0 0 10px rgba(255,255,255,0.3);
    }
}

.animated-welcome span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInLetter 0.6s ease forwards;
}

@keyframes fadeInLetter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
}

.card {
    width: 350px;
    height: 420px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    animation: cardAppear 1s ease-out forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.4s; }
.card:nth-child(2) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-20px) scale(1.03) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
}

.card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-racks {
    background: linear-gradient(to right, #ff9966, #ff5e62);
    color: white;
}

.btn-space {
    background: linear-gradient(to right, #36d1dc, #5b86e5);
    color: white;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

/* ========================== */
/* Welcome WAVES    */
/* ========================== */

/* Waves Animation */
.waves-container {
    position: absolute;
    top: 3rem;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat no-repeat;
    background-position: 0 bottom;
    transform-origin: center bottom;
}

.wave-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(0,123,255,0.5)'%3E%3C/path%3E%3C/svg%3E");
    animation: wave 12s linear infinite;
}

.wave-2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(255,0,0,0.5)'%3E%3C/path%3E%3C/svg%3E");
    animation: wave 18s linear infinite reverse;
    opacity: 0.7;
    color: rgba(255, 0, 0, 0.2);
}

.wave-3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(0,123,255,0.5)'%3E%3C/path%3E%3C/svg%3E");
    animation: wave 25s linear infinite;
    opacity: 0.4;
}

@keyframes wave {
    0% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
    100% { transform: translateX(-50%); }
}

/* 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 cardAppear {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(20deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* ========================== */
/* Welcome LANG    */
/* ========================== */
.lang {
    position: fixed;
    top: 5%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 999;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgb(255, 255, 255);
    color: #6ea3ef;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 1s ease;
    animation: slideInLang 1s ease-out;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.96);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 1s ease;
}

.lang-btn i {
    font-size: 16px;
    animation: glowIcon 1.5s infinite alternate;
}

.lang-btn:hover i {
    animation: spin 4s infinite alternate;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes slideInLang {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.logout {
    position: fixed;
    top: 5%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 999;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgb(117, 30, 30);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 1s ease;
    animation: slideInLogout 1s ease-out;
}

.logout-btn:hover {
    background: rgba(0, 0, 0, 0.96);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 1s ease;
}

.logout-btn i {
    font-size: 16px;
    animation: glowIcon 1.5s infinite alternate;
}

.logout-btn:hover i {
    animation: spin 4s infinite alternate;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes slideInLogout {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ========================== */
/* Welcome MEDIA QUERY    */
/* ========================== */
@media (max-width: 992px) {
    .card {
        width: 300px;
        height: 400px;
    }
}

@media (max-width: 576px) {
    .animated-welcome {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .card {
        width: 90%;
        height: auto;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .waves-container {
        height: 100px;
    }
}
