/* =========================================
   Base & Reset
   ========================================= */
:root {
    --primary: #3a76ef;
    /* Bright energetic blue */
    --primary-hover: #2b5fd0;
    --dark: #1e263a;
    /* Deep techy black/blue */
    --dark-hover: #151b2a;
    --bg-light: #f3f6fc;
    /* Very soft light blue background */
    --text-dark: #2c364c;
    --text-light: #6b7280;
    --white: #ffffff;
    --border-color: #e5e7eb;

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Layout & Typography
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 2rem;
}

.text-white {
    color: var(--white);
}

.text-primary {
    color: var(--primary);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #eef2ff;
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-light {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 3rem;
}

.bg-light {
    background-color: var(--bg-light);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(58, 118, 239, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(58, 118, 239, 0.4);
    color: var(--white);
}

.btn-dark {
    background-color: var(--dark);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(30, 38, 58, 0.2);
}

.btn-dark:hover {
    background-color: var(--dark-hover);
    box-shadow: 0 6px 20px rgba(30, 38, 58, 0.3);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.4);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    padding: 20px 0;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), #759eff);
    border-radius: 6px;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 6px;
    transition: var(--transition);
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 1000;
    padding: 10px 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 14px 24px;
    color: var(--text-dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    padding-left: 28px;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding: 80px 0 120px;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(58, 118, 239, 0.15));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================================
   Split Sections
   ========================================= */
.split-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.split-container.reverse {
    flex-direction: row-reverse;
}

.split-image {
    flex: 1;
}

.split-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.split-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1);
}

.split-content {
    flex: 1;
}

.feature-list {
    margin-bottom: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--dark);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #eef2ff;
    color: var(--primary);
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

/* =========================================
   Progress Bars
   ========================================= */
.progress-bar-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #759eff);
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
}

/* =========================================
   Services Section (Tabs approach)
   ========================================= */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab {
    padding: 16px 32px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(58, 118, 239, 0.2);
}

.services-content {
    background-color: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.services-grid div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--dark);
    font-size: 1.05rem;
}

/* =========================================
   CTA Banner
   ========================================= */
.cta-banner {
    background: linear-gradient(135deg, var(--primary), #2b5fd0);
    padding: 80px 0;
}

.cta-banner h2 {
    color: var(--white);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #94a3b8;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: #94a3b8;
}

.footer ul a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

[dir="rtl"] .footer-contact p i {
    margin-left: 10px;
    margin-right: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #94a3b8;
    font-size: 1.25rem;
    transition: var(--transition);
    display: inline-block;
}

.social-icons a:hover {
    color: var(--white);
    transform: translateY(-3px);
}

.contact-info-card .social-icons a {
    color: var(--white);
}

.contact-info-card .social-icons a:hover {
    color: #93c5fd;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 0.9rem;
}

/* =========================================
   Vision, Mission, Objectives Cards
   ========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: left;
}

[dir="rtl"] .card {
    text-align: right;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(58, 118, 239, 0.1);
    border-color: var(--primary);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.25rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
}

.lang-switch {
    background-color: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary) !important;
}

.lang-switch:hover {
    background-color: #e2e8f0;
}

/* =========================================
   Utility Classes & Services specific
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--primary), #2b5fd0);
    padding: 80px 0 100px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 3rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.service-list-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    font-weight: 500;
    color: var(--dark);
    line-height: 1.4;
}

.service-list-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(58, 118, 239, 0.1);
    transform: translateY(-3px);
    color: var(--primary);
}

.icon-circle {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.highlight-box {
    background-color: var(--white);
    border-left: 6px solid var(--primary);
    padding: 40px 50px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    margin: 60px auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

[dir="rtl"] .highlight-box {
    border-left: none;
    border-right: 6px solid var(--primary);
    border-radius: 12px 0 0 12px;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .split-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .split-container.reverse {
        flex-direction: column-reverse;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .mobile-toggle {
        display: block !important;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        gap: 0;
    }

    .nav-links.active {
        max-height: 600px;
        padding: 20px 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px 30px;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.1rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: var(--bg-light);
        padding: 0;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: flex;
    }

    .lang-switch {
        margin: 15px 30px;
        text-align: center;
        display: inline-block !important;
    }
}

/* =========================================
   Global Viewport Animations
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}