/* ==========================================================
   SkySoft Landing Page Style Sheet
   Font: Cairo
========================================================== */

/* --- Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #1565c0;
    --primary-dark: #0d47a1;
    --primary-light: #2196f3;
    --bg-light: #f4f8ff;
    --text-color: #222222;
    --white: #ffffff;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* --- Buttons & Components --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.25);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 26px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

/* ==========================================================
   تنسيق الهيدر مع اللوجو العلوي في المنتصف (Header Top Logo)
========================================================== */

header.header-top-logo {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 12px 0 8px 0;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 9999;
}

/* محاذاة اللوجو في منتصف الجزء العلوي */
.top-logo {
    text-align: center;
    margin-bottom: 7px;
}

.top-logo img {
    height: 80px; /* يمكنك تعديل الارتفاع حسب حجم اللوجو */
    width: auto;
    display: inline-block;
    transition: transform 0.3s ease;
}

.top-logo img:hover {
    transform: scale(1.03);
}

/* شريط التنقل السفلي للهيدر */
.navbar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 8px;
}

.navbar-bottom nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar-bottom nav ul li a {
    color: var(--text-main, #0f172a);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.navbar-bottom nav ul li a:hover,
.navbar-bottom nav ul li a.active {
    color: var(--primary, #0284c7);
}

/* حماية المحتوى من الاختفاء تحت الهيدر الثابت */
body {
    padding-top: 135px !important;
}

/* ==========================================================
   تنسيقات الشاشات الصغيرة والموبايل (Responsive)
========================================================== */
@media (max-width: 768px) {
    .navbar-bottom {
        flex-direction: column;
        gap: 12px;
    }

    .navbar-bottom nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    body {
        padding-top: 195px !important;
    }
}
/* --- Hero Section --- */
.hero {
    padding-top: 150px;
    padding-bottom: 90px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.tag {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 18px;
    border-radius: 30px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 19px;
    opacity: 0.95;
    max-width: 540px;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    animation: float 4s ease-in-out infinite;
}

/* --- Features Section --- */
.features {
    padding: 90px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: var(--primary-dark);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card i {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.card h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

/* --- About Section --- */
.about {
    padding: 90px 0;
    background-color: var(--white);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--primary-dark);
    font-size: 36px;
    margin-bottom: 20px;
}

.about-list {
    margin-top: 20px;
    list-style: none;
}

.about-list li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list li i {
    color: #2e7d32; /* Green checkmark */
}

/* --- Training & Support --- */
#training,
#support {
    padding: 80px 0;
    text-align: center;
}

#training {
    background-color: #eef5ff;
}

#support {
    background-color: var(--white);
}

.section-box h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 15px;
}

.section-box p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
}

/* --- Contact Section --- */
#contact {
    padding: 90px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

#contact h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
}

.contact-form {
    max-width: 600px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 18px;
    border: none;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-dark);
    font-size: 18px;
}

.btn-submit:hover {
    background-color: #052b69;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-size: 15px;
}

/* --- Keyframe Animations --- */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .hero {
        padding-top: 180px;
    }

    .hero-content,
    .about .container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* ==========================================================
   YouTube Videos Grid & Cards Styling
========================================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.4);
}

/* لجعل إطار الفيديو متجاوب بنسبة 16:9 */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 20px;
}

.lesson-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(2, 132, 199, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.video-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}