:root {
    --primary: #1f9d49;
    --primary-dark: #177a38;
    --primary-light: #2bc760;
    --primary-glass: rgba(31, 157, 73, 0.1);
    --dark: #123232;
    --darker: #0d2424;
    --light: #f4f7f5;
    --white: #ffffff;
    --text: #4a5568;
    --text-light: #718096;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(18, 50, 50, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body.lang-ar {
    font-family: 'Tajawal', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.3;
    font-weight: 700;
}

body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4, body.lang-ar h5, body.lang-ar h6 {
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 100px 0;
}

.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    font-size: 16px;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(31, 157, 73, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 157, 73, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

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

.logo {
    position: relative;
    display: inline-flex;
}

.logo-white {
    height: 60px;
    transition: var(--transition);
    opacity: 1;
}

.logo-black {
    position: absolute;
    top: 0;
    left: 0;
    height: 60px;
    transition: var(--transition);
    opacity: 0;
}

.navbar.scrolled .logo-white {
    height: 50px;
    opacity: 0;
}

.navbar.scrolled .logo-black {
    height: 50px;
    opacity: 1;
}

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

.nav-links a {
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.navbar.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}
body.lang-ar .nav-links a::after {
    left: auto;
    right: 0;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 5px 20px;
    border-radius: 30px;
    transition: var(--transition);
}

body:not(.lang-ar) .lang-switch {
    font-family: 'Tajawal', sans-serif;
}
body.lang-ar .lang-switch {
    font-family: 'Outfit', sans-serif;
}

.lang-switch:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.navbar.scrolled .lang-switch {
    color: var(--dark);
    border-color: var(--dark);
}

.navbar.scrolled .lang-switch:hover {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

.navbar.scrolled .menu-toggle {
    color: var(--dark);
}

/* Hero Slider */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 5s ease;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(18, 50, 50, 0.9), rgba(18, 50, 50, 0.4));
}
body.lang-ar .slide::after {
    background: linear-gradient(to left, rgba(18, 50, 50, 0.9), rgba(18, 50, 50, 0.4));
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 2;
    display: flex;
    gap: 15px;
}
body.lang-ar .slider-controls {
    right: auto;
    left: 50px;
}

.slider-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Sections Common */
.section-tag {
    display: inline-block;
    padding: 6px 15px;
    background-color: var(--primary-glass);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
body.lang-ar .section-title::after {
    left: auto;
    right: 0;
}
body.lang-ar .text-center .section-title::after {
    right: 50%;
    transform: translateX(50%);
}

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

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 15px 30px rgba(31, 157, 73, 0.3);
}
body.lang-ar .experience-badge {
    right: auto;
    left: -30px;
}

.experience-badge .years {
    display: block;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

/* Strategy Section */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary);
    box-shadow: 0 15px 40px rgba(18, 50, 50, 0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-glass);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background-color: var(--primary);
    color: var(--white);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.card p {
    font-size: 15px;
}

/* Services Section */
.services-wrapper {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-item:nth-child(even) .service-img {
    order: 2;
}

.service-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    display: block;
}

.service-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Milestones Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: rgba(255,255,255,0.1);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding-right: 40px;
}
body.lang-ar .timeline-item {
    padding-right: 0;
    padding-left: 40px;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 40px;
}
body.lang-ar .timeline-item:nth-child(even) {
    margin-left: 0;
    margin-right: 50%;
    padding-left: 0;
    padding-right: 40px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 4px solid var(--dark);
    box-shadow: 0 0 0 4px rgba(31, 157, 73, 0.2);
}
body.lang-ar .timeline-dot {
    right: auto;
    left: -8px;
}
.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -8px;
}
body.lang-ar .timeline-item:nth-child(even) .timeline-dot {
    left: auto;
    right: -8px;
}

.timeline-content {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.timeline-content:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.timeline-year {
    display: inline-block;
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.timeline-content h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 10px;
}

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

.contact-list {
    margin-top: 30px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-list li i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-glass);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px var(--primary-glass);
}

.form-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background-color: var(--primary-glass);
    color: var(--primary-dark);
    border: 1px solid var(--primary);
}

.form-status.error {
    display: block;
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #ef4444;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    height: 90px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: rgba(255,255,255,0.6);
    max-width: 400px;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.lang-ar .fade-in-right { transform: translateX(-30px); }
body.lang-ar .fade-in-left { transform: translateX(30px); }

.visible {
    opacity: 1;
    transform: translate(0) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-grid, .service-item {
        grid-template-columns: 1fr;
    }
    
    .service-item .service-content {
        order: 1;
    }
    
    .service-item .service-img,
    .service-item:nth-child(even) .service-img {
        order: 2;
    }
    
    .experience-badge {
        bottom: -20px;
        right: 20px;
    }
    body.lang-ar .experience-badge {
        left: 20px;
        right: auto;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 0;
    }
    body.lang-ar .timeline::before {
        left: auto;
        right: 0;
    }
    
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 40px;
        padding-right: 0;
    }
    body.lang-ar .timeline-item, body.lang-ar .timeline-item:nth-child(even) {
        margin-right: 0;
        padding-right: 40px;
        padding-left: 0;
    }
    
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: -8px;
        right: auto;
    }
    body.lang-ar .timeline-dot, body.lang-ar .timeline-item:nth-child(even) .timeline-dot {
        right: -8px;
        left: auto;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        color: var(--dark) !important;
        padding: 15px 20px;
        border-bottom: 1px solid #f1f5f9;
        display: block;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}
