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

:root {
    --primary-gradient: linear-gradient(135deg, #2d7a4e, #4ca571, #5bc0be);
    --primary-color: #2d7a4e;
    --secondary-color: #5bc0be;
    --accent-color: #4ca571;
    --text-color: #333;
    --bg-color: #ffffff;
    --section-bg: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --section-bg: #2d2d2d;
    --card-bg: #3a3a3a;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 100000;
    transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
    position: fixed;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
}

.logo-text h1 {
    font-size: 1.6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-control {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: var(--section-bg);
    color: var(--text-color);
}

.btn-control:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, rgba(15, 32, 39, 0.85), rgba(32, 58, 67, 0.85), rgba(44, 83, 100, 0.85)),
                url('https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: white;
    padding: 3rem 5% 2.5rem;
    position: relative;
    overflow: hidden;
    max-width: none;
    margin: 0;
    min-height: 65vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.15), transparent 45%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 380px;
    text-align: right;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero-visual {
    flex: 1 1 360px;
}

.hero h2 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s;
    line-height: 1.2;
    font-weight: 700;
}

.hero-subtext {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-primary {
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #58c6b8, #73e4a5);
    color: #0c1d2a;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 15px 30px rgba(88, 198, 184, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(88, 198, 184, 0.35);
}

.btn-link {
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: right;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Section Styles */
section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-alt {
    background: var(--section-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(45, 122, 78, 0.25);
    border-color: rgba(91, 192, 190, 0.45);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.card p {
    opacity: 0.8;
    line-height: 1.8;
}

/* Sectors Grid */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.sector-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.sector-card:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
}

.sector-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Study Phases */
.phases-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.phase {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.phase-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.phase-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--section-bg);
    border-radius: 8px;
    background: var(--section-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: border 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(45, 122, 78, 0.3);
}

/* Footer */
footer {
    background: var(--section-bg);
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: right;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: translateY(-5px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 1024px) {
    nav {
        padding: 0.75rem 3%;
    }

    section {
        padding: 3.5rem 4%;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

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

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

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-subtext {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-link {
        width: 100%;
        text-align: center;
    }

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

    .phase {
        flex-direction: column;
        text-align: center;
    }

    .footer-sections {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Clients Gallery Styles - UPDATED */
.clients-carousel {
    background: rgba(15, 16, 32, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    direction: ltr; /* إضافة هذا السطر لحل مشكلة RTL */
}

.carousel-window {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 0.5rem;
    flex: 0 0 100%;
}

.carousel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    height: 400px; /* ارتفاع ثابت للشريحة */
}

.client-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-img:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-indicators button {
    width: 28px;
    height: 4px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
}

.carousel-indicators button.active {
    background: #fff;
    width: 40px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Countries Section Styles */
.countries-section {
    margin: 3rem 0;
    position: relative;
    z-index: 1;
}

.countries-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
    opacity: 0.95;
}

.flags-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 520px;
    margin: 0;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease;
}

.flag-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.flag {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.country-name {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

/* Animation delays for flag items */
.flag-item:nth-child(1) { animation-delay: 0.1s; }
.flag-item:nth-child(2) { animation-delay: 0.2s; }
.flag-item:nth-child(3) { animation-delay: 0.3s; }
.flag-item:nth-child(4) { animation-delay: 0.4s; }
.flag-item:nth-child(5) { animation-delay: 0.5s; }
.flag-item:nth-child(6) { animation-delay: 0.6s; }
.flag-item:nth-child(7) { animation-delay: 0.7s; }
.flag-item:nth-child(8) { animation-delay: 0.8s; }
.flag-item:nth-child(9) { animation-delay: 0.9s; }
.flag-item:nth-child(10) { animation-delay: 1s; }
.flag-item:nth-child(11) { animation-delay: 1.1s; }
.flag-item:nth-child(12) { animation-delay: 1.2s; }

/* Responsive Design - UPDATED */
@media (max-width: 768px) {
    .hero-visual {
        width: 100%;
    }

    .carousel-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: 600px;
    }

    .flags-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .flag {
        width: 36px;
        height: 24px;
    }

    .country-name {
        font-size: 0.8rem;
    }

    .countries-section h3 {
        font-size: 1.2rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .carousel-btn {
        display: none;
    }

    .carousel-grid {
        height: 500px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.6rem 1.25rem;
    }

    .logo-text {
        display: none;
    }

    section {
        padding: 2.75rem 1.25rem;
    }

    .hero {
        padding: 2.5rem 1.25rem;
    }

    .hero-actions {
        gap: 0.75rem;
    }

    .carousel-grid {
        height: 400px;
    }

    .flags-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .flag-item {
        padding: 0.5rem;
    }

    .flag {
        width: 28px;
        height: 20px;
    }
}

/* Blog Section Styles */
.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 1rem;
}

.blog-content {
    padding: 0 1rem 1.5rem;
}

/* FAQ Section Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--section-bg);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--card-bg);
    border: none;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-question:hover {
    background: var(--section-bg);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--section-bg);
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

/* Investment Opportunities Styles */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.opportunity-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-5px);
}

.opportunity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.opportunity-content {
    padding: 1.5rem;
}

.opportunity-stats {
    margin-top: 1rem;
    padding: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.floating-contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
}

/* Animation for elements */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Updated Sectors with Images */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.sector-card {
    background: var(--card-bg);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sector-card:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
}

.sector-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Social Icons in Hero */
.hero-social {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.hero-social .social-link {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        left: 20px;
    }

    .floating-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .hero-social {
        position: relative;
        top: 0;
        left: 0;
        justify-content: center;
        margin-bottom: 1rem;
    }

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