@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #ffffff 50%, #bae6fd 100%);
    --text-primary: #0f172a;
    --text-navy: #1e3a8a;
    --accent-slate: #475569;
    --accent-slate-hover: #334155;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 95%;
    max-width: 1050px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    padding: 10px 18px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    list-style: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--text-navy);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.06);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-btn:hover,
.nav-btn:focus {
    background: var(--accent-slate);
    color: #ffffff;
    border-color: var(--accent-slate);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(71, 85, 105, 0.25);
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.2) 0%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 2;
}

.hero-glass-card {
    position: relative;
    z-index: 3;
    max-width: 850px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.25) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 28px;
    border-top: 2px solid rgba(255, 255, 255, 0.95);
    border-left: 2px solid rgba(255, 255, 255, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16), inset 0 0 25px rgba(255, 255, 255, 0.55);
}

.intro-motion {
    animation: introSlideUp 1s ease-out forwards;
}

@keyframes introSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-navy);
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.85);
}

.hero-subtitle {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--accent-slate);
    margin-bottom: 22px;
    display: inline-block;
    padding: 5px 22px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-desc {
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 720px;
    margin: 0 auto 35px;
    line-height: 1.85;
}

.hero-btn {
    display: inline-block;
    padding: 14px 38px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-slate) 0%, var(--text-navy) 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.25);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.35);
    background: linear-gradient(135deg, var(--text-navy) 0%, var(--accent-slate) 100%);
}

.scroll-motion {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.main-content {
    max-width: 1150px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-block {
    padding: 85px 0 30px;
    scroll-margin-top: 70px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-navy);
    text-align: center;
    margin-bottom: 45px;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 4px;
    background: var(--accent-slate);
    border-radius: 2px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.media-item {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.media-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.16);
}

.media-item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid rgba(71, 85, 105, 0.15);
    transition: transform 0.4s ease;
    display: block;
}

.media-item:hover img {
    transform: scale(1.03);
}

.media-caption {
    margin-top: 15px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-navy);
}

.goals-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.goal-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-top: 4px solid var(--accent-slate);
    border-radius: 20px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.goal-item:hover {
    transform: translateY(-5px);
}

.goal-item h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-navy);
    margin-bottom: 12px;
}

.goal-item p {
    font-size: 0.98rem;
    color: var(--text-primary);
    line-height: 1.65;
}

.disclaimer-box {
    margin: 65px auto 25px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px dashed var(--accent-slate);
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.disclaimer-text {
    color: var(--text-navy);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.7;
}

.site-footer {
    padding: 30px 20px 55px;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-item {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ffffff;
    color: var(--text-navy);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.12);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--accent-slate);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(71, 85, 105, 0.3);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 88vh;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    cursor: default;
    object-fit: contain;
    background: #ffffff;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    left: 30px;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .navbar {
        width: 96%;
        padding: 8px 12px;
        top: 10px;
    }

    .nav-btn {
        font-size: 0.82rem;
        padding: 6px 12px;
    }

    .hero-glass-card {
        padding: 35px 22px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .media-item img {
        height: 220px;
    }
}