/* Global Styles */

*,
::before,
::after {
    box-sizing: border-box;
}

:root {
    --primary: #FF6B00;
    --primary-hover: #e05e00;
    --accent: #FF6B00;
    --bg: #0a0f1c;
    --text: #ffffff;
    --dark: var(--bg);
    --darker: #05080f;
    --light: #e0e6ed;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Inter', sans-serif;
    --on-primary: #fff;
    --muted: rgba(255, 255, 255, 0.6);
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-ar);
    line-height: 1.6;
    overflow-x: hidden;
}

body.ltr {
    font-family: var(--font-en);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    transition: background 0.3s, padding 0.3s;
}

header.sticky {
    background: rgba(10, 15, 28, 0.95);
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Dropdown Menu */
.dropdown-trigger {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    text-align: left;
    background: var(--darker);
    list-style: none;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

html[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
    text-align: right;
}

.dropdown-trigger:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin-bottom: 5px;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu li a {
    color: var(--muted);
    font-size: 0.9rem;
    display: block;
    padding: 5px;
}

.dropdown-menu li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.btn-main {
    background: var(--primary);
    color: var(--on-primary);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: 2px solid var(--primary);
}

.btn-main:hover {
    background: transparent;
    color: var(--primary);
}

/* Hero Section */
/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
    top: 20%;
    left: -100px;
    z-index: -1;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 50px rgba(255, 107, 0, 0.3));
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--muted);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 20px;
    transition: 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--darker);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* Utils */
.lang-switch {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 5px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Partners */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* ... existing partner code ... */
/* Gallery Overlay */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    color: var(--text);
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.category-tag {
    background: var(--primary);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.partner-card {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 100px;
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: 0.3s;
}

.partner-card img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .nav-links.d-none.d-lg-flex {
        display: none !important;
    }
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
}

.menu-toggle:hover {
    color: var(--primary);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    width: 300px;
    height: 100vh;
    background: var(--darker);
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 30px;
    overflow-y: auto;
}

[dir="ltr"] .mobile-sidebar {
    left: -100%;
    border-right: 1px solid var(--border);
}

[dir="rtl"] .mobile-sidebar {
    right: -100%;
    border-left: 1px solid var(--border);
}

[dir="ltr"] .mobile-sidebar.active {
    left: 0;
}

[dir="rtl"] .mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

[dir="rtl"] .sidebar-header {
    flex-direction: row-reverse;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 15px;
}

.sidebar-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-links a.sub-link {
    font-size: 0.95rem;
    color: var(--text);
    opacity: 0.6;
}

[dir="ltr"] .sidebar-links a.sub-link {
    padding-left: 20px;
}

[dir="rtl"] .sidebar-links a.sub-link {
    padding-right: 20px;
}

.sidebar-links a:hover {
    color: var(--primary);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: 0.4s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

body.no-scroll {
    overflow: hidden;
}

.carousel-height {
    height: 100vh;
}

@media (max-width: 768px) {
    .carousel-height {
        height: 500px;
    }

    .carousel-item h1 {
        font-size: 1.8rem !important;
    }

    .carousel-item p {
        font-size: 1rem !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Hero Responsive */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        min-height: 400px;
        height: auto;
        padding-bottom: 50px;
    }

    .hero-img {
        margin-top: 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.2rem;
    }

    .achievements-grid>div {
        min-width: 100% !important;
    }
}