/* ============================================
   Global Styles & CSS Variables
   ============================================ */
:root {
    /* Dark Mode Colors */
    --primary-color: #0066cc;
    --secondary-color: #ffc107;
    --dark-bg: #0a0e27;
    --dark-card: #1a1f3a;
    --dark-text: #e9ecef;
    --dark-text-secondary: #adb5bd;
    
    /* Light Mode Colors */
    --light-bg: #f8f9fa;
    --light-card: #ffffff;
    --light-text: #212529;
    --light-text-secondary: #6c757d;
    
    /* Accent Colors */
    --accent-blue: #0066cc;
    --accent-gold: #ffc107;
    --accent-dark: #1a1f3a;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--dark-bg);
    transition: var(--transition);
    overflow-x: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Loading Screen
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    width: 150px;
    height: auto;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--dark-text-secondary);
    font-size: 1.1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* ============================================
   Controls Bar (Language & Theme)
   ============================================ */
.controls-bar {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

body[dir="rtl"] .controls-bar {
    left: auto;
    right: 20px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--dark-card);
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.light-mode .control-btn {
    background: var(--light-card);
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.control-btn i {
    font-size: 1.2rem;
}

#langText {
    font-size: 0.75rem;
    font-weight: bold;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--dark-text);
}

.light-mode .logo {
    color: var(--light-text);
}

.logo-img {
    width: 80px;
    height: auto;
    transition: transform 0.6s ease;
    animation: logoFloat 3s ease-in-out infinite;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.logo:hover .logo-img {
    animation: logoSpin 1s ease-in-out;
}

@keyframes logoSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--dark-text-secondary);
    margin-top: 2px;
}

.light-mode .logo-tagline {
    color: var(--light-text-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.light-mode .nav-link {
    color: var(--light-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    border-radius: 3px;
    transition: var(--transition);
}

.light-mode .mobile-menu-btn span {
    background: var(--light-text);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: 50px;
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.light-mode .hero-subtitle {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 50px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-gold);
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--dark-text-secondary);
    margin: 0;
    padding: 0 10px;
    line-height: 1.4;
}

.light-mode .stat-label {
    color: var(--light-text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--dark-bg);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* ============================================
   Section Common Styles
   ============================================ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-text-secondary);
}

.light-mode .section-subtitle {
    color: var(--light-text-secondary);
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-description {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--dark-card);
    border-radius: 15px;
    transition: var(--transition);
}

.light-mode .feature-item {
    background: var(--light-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.feature-item h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--dark-text-secondary);
}

.light-mode .feature-item p {
    color: var(--light-text-secondary);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.images-grid .grid-image:first-child {
    grid-column: 1 / -1;
}

.grid-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: var(--transition);
}

.grid-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Partners Section
   ============================================ */
.partners {
    background: var(--dark-card);
}

.light-mode .partners {
    background: #f0f2f5;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.partner-card {
    perspective: 1000px;
    height: 300px;
}

.partner-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.partner-card:hover .partner-inner {
    transform: rotateY(180deg);
}

.partner-front,
.partner-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.partner-front {
    background: var(--dark-bg);
    border: 2px solid var(--accent-blue);
}

.light-mode .partner-front {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.partner-back {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
    color: white;
    transform: rotateY(180deg);
}

.partner-flag {
    font-size: 3rem;
    margin-bottom: 20px;
}

.partner-front h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.partner-country {
    font-size: 0.9rem;
    color: var(--dark-text-secondary);
}

.light-mode .partner-country {
    color: var(--light-text-secondary);
}

.partner-back h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.partner-back p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--dark-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.light-mode .service-card {
    background: var(--light-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2.5rem;
    color: white;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--dark-text-secondary);
    line-height: 1.7;
}

.light-mode .service-desc {
    color: var(--light-text-secondary);
}

/* ============================================
   Projects Section
   ============================================ */
.projects {
    background: var(--dark-card);
}

.light-mode .projects {
    background: #f0f2f5;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-gold);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

.timeline-content {
    flex: 1;
    background: var(--dark-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.light-mode .timeline-content {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.timeline-content p {
    color: var(--dark-text-secondary);
}

.light-mode .timeline-content p {
    color: var(--light-text-secondary);
}

.gallery-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 300px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.2rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--dark-text-secondary);
}

.light-mode .contact-item p {
    color: var(--light-text-secondary);
}

.contact-form {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 15px;
}

.light-mode .contact-form {
    background: var(--light-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-text);
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}

.light-mode .form-group input,
.light-mode .form-group textarea {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: var(--light-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-group label {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--dark-text-secondary);
    pointer-events: none;
    transition: var(--transition);
}

body[dir="ltr"] .form-group label {
    right: auto;
    left: 15px;
}

.light-mode .form-group label {
    color: var(--light-text-secondary);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    right: 10px;
    background: var(--dark-card);
    padding: 0 5px;
    font-size: 0.85rem;
    color: var(--accent-gold);
}

body[dir="ltr"] .form-group input:focus + label,
body[dir="ltr"] .form-group input:not(:placeholder-shown) + label,
body[dir="ltr"] .form-group textarea:focus + label,
body[dir="ltr"] .form-group textarea:not(:placeholder-shown) + label {
    right: auto;
    left: 10px;
}

.light-mode .form-group input:focus + label,
.light-mode .form-group input:not(:placeholder-shown) + label,
.light-mode .form-group textarea:focus + label,
.light-mode .form-group textarea:not(:placeholder-shown) + label {
    background: var(--light-card);
}

.contact-form .btn {
    width: 100%;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark-card);
    padding: 60px 0 20px;
    border-top: 2px solid var(--accent-gold);
}

.light-mode .footer {
    background: #1a1f3a;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 80px;
    margin-bottom: 15px;
}

.footer-col h3 {
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.footer-desc {
    color: var(--dark-text-secondary);
    margin-top: 10px;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: var(--dark-text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a {
    color: var(--dark-text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
}

.footer-col ul li i {
    color: var(--accent-gold);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--dark-text-secondary);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--dark-bg);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 998;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

body[dir="rtl"] .back-to-top {
    left: auto;
    right: 30px;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

/* ============================================
   Notification
   ============================================ */
.notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    background: var(--accent-blue);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large Desktops */
@media (min-width: 1400px) {
    .hero-stats {
        gap: 40px;
        max-width: 1200px;
    }
    
    .stat-item {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .stat-icon {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 600px;
    }
    
    .stat-item {
        min-height: 160px;
        padding: 20px 15px;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    .timeline-content {
        margin-left: 90px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 50px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-stats {
        margin: 30px auto;
        gap: 15px;
        max-width: 100%;
    }
    
    .stat-item {
        text-align: center;
        min-height: 140px;
        padding: 20px 10px;
    }
    
    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        padding: 0 5px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: var(--dark-card);
        flex-direction: column;
        padding: 40px 30px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    body[dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
    }
    
    .light-mode .nav-menu {
        background: white;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    body[dir="rtl"] .nav-menu.active {
        right: auto;
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .services-grid,
    .partners-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 45px;
    }
    
    .logo-name {
        font-size: 1.1rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .controls-bar {
        top: 10px;
        left: 10px;
        flex-direction: column;
        gap: 5px;
    }
    
    body[dir="rtl"] .controls-bar {
        left: auto;
        right: 10px;
    }
    
    .control-btn {
        width: 38px;
        height: 38px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 18px 10px;
        min-height: 145px;
    }
    
    .stat-icon {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 0.8rem;
        line-height: 1.3;
        padding: 0 8px;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 6px 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 20px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
}