/* ==========================================================
   SkySoft Main Master Style Sheet
   Font: Cairo
========================================================== */

/* --- Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --dark-bg: #0f172a;
    --bg-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(255, 255, 255, 0.85);
    --text-main: #0f172a;
    --text-muted: #475569;
    --white: #ffffff;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    padding-top: 170px; /* مسافة أمان موحدة لمنع اختفاء المحتوى تحت الهيدر الثابت */
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================
   Fixed Header & Navigation Bar
========================================================== */

header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    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;
    padding: 12px 0;
}

/* محاذاة اللوجو في منتصف الجزء العلوي */
.top-logo {
    text-align: center;
    margin-bottom: 8px;
}

.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: 10px;
}

.navbar-bottom nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.navbar-bottom nav ul li a {
    color: var(--text-main);
    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);
}

/* زر الهيدر الموحد */
header .btn,
.navbar-bottom .btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    padding: 9px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
    display: inline-block;
    border: none;
    cursor: pointer;
}

header .btn:hover,
.navbar-bottom .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

/* ==========================================================
   Features Page & Glassmorphism Sections
========================================================== */

.features-page,
.about-page {
    position: relative;
    padding-top: 40px;
    padding-bottom: 100px;
    min-height: 85vh;
}

/* الإضاءات الخلفية النيون */
.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.35;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: #38bdf8;
    top: 5%;
    right: -100px;
}

.glow-2 {
    width: 450px;
    height: 450px;
    background: #818cf8;
    bottom: 5%;
    left: -100px;
}

/* عنوان الصفحة */
.page-header,
.about-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
}

.badge {
    background: linear-gradient(135deg, #0284c7, #6366f1);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.page-header h1,
.about-header h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 15px;
}

.page-header p,
.about-header p {
    font-size: 19px;
    color: var(--text-muted);
}

/* شبكة البطاقات */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* البطاقة الزجاجية */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 35px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.4);
    background: rgba(255, 255, 255, 0.92);
}

.card-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: var(--white);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.3);
    transition: transform 0.3s ease;
}

.glass-card:hover .card-icon {
    transform: rotate(-8deg) scale(1.1);
}

.card-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.card-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.card-footer-tag {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(2, 132, 199, 0.08);
    padding: 4px 12px;
    border-radius: 8px;
}

/* ==========================================================
   Footer
========================================================== */

footer {
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    font-size: 15px;
}

/* ==========================================================
   Responsive Design
========================================================== */

@media (max-width: 992px) {
    body {
        padding-top: 220px;
    }

    .navbar-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-bottom nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-header h1,
    .about-header h1 {
        font-size: 30px;
    }

    .glass-card {
        padding: 25px 20px;
    }
}