/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Color Variables */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --gold: #f59e0b;
    --light-gold: #fbbf24;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --dark-gray: #1f2937;
    --text-gray: #6b7280;
}

/* Top Header */
.top-header {
    background: var(--dark-gray);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.top-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-header-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-header-item i {
    color: var(--gold);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 40px; /* Ajusté pour le top header */
    width: 100%;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure all text in navbar is white */
.navbar,
.navbar * {
    color: var(--white) !important;
}

.navbar a,
.navbar button {
    color: var(--white) !important;
}

.navbar a:hover {
    color: var(--gold) !important;
}

/* Dropdown menu styles */
.navbar .dropdown-menu {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    min-width: 180px;
}

.navbar .dropdown-item {
    color: var(--primary-blue) !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-blue) !important;
}

.navbar .dropdown-item i {
    width: 1rem;
    margin-right: 0.5rem;
    text-align: center;
}

.navbar.scrolled {
    background: rgba(30, 58, 138, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 60px; /* Hauteur fixe pour éviter les décalages */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-lang-btn,
.nav-portal-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: none;
}

.nav-lang-btn {
    color: var(--secondary-blue);
    background: rgba(59, 130, 246, 0.1);
}

.nav-lang-btn:hover {
    background: var(--secondary-blue);
    color: var(--white);
}

.nav-portal-btn {
    color: var(--gold);
    background: rgba(245, 158, 11, 0.1);
}

.nav-portal-btn:hover {
    background: var(--gold);
    color: var(--white);
}

.btn-text {
    display: inline;
}

/* Responsive nav actions */
@media (max-width: 768px) {
    .nav-actions {
        gap: 0.3rem;
    }

    .nav-lang-btn .btn-text,
    .nav-portal-btn .btn-text {
        display: none;
    }

    .nav-lang-btn,
    .nav-portal-btn {
        padding: 0.4rem;
        min-width: 40px;
        justify-content: center;
    }
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    white-space: nowrap;
}

.nav-menu li {
    white-space: nowrap;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

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

.nav-menu a.active {
    color: var(--gold);
}

/* Hero Sections with Background Images */
.hero-slider,
section[style*="background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.8)), url('"] {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-slider {
    height: 100vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.3s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    background: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Key Statistics */
.stats-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
}

/* Investment Sectors */
.sectors-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.sectors-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.sector-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.sector-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.sector-content {
    padding: 2rem;
}

.sector-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.sector-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Services Section */
.services-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

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

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary-blue);
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background: var(--white);
}

.projects-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 2rem;
}

.project-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--gold);
    color: var(--white);
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-content h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-budget {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-item div h4 {
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.contact-item div p {
    color: var(--text-gray);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--light-gold);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold);
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--light-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--light-gold);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Enhanced Responsive Design - Modern Standards */

/* Extra Large Desktops */
@media (max-width: 1400px) {
    .nav-container {
        max-width: 1100px;
    }

    .stats-container,
    .sectors-grid,
    .services-grid,
    .projects-grid {
        max-width: 1100px;
    }
}

/* Large Desktops */
@media (max-width: 1200px) {
    .nav-container,
    .stats-container,
    .sectors-grid,
    .services-grid,
    .projects-grid {
        max-width: 1000px;
    }

    .slide-content h1 {
        font-size: 3.2rem;
    }

    .section-header h2 {
        font-size: 2.3rem;
    }
}

/* Medium Desktops */
@media (max-width: 1024px) {
    :root {
        font-size: 16px;
    }

    .top-header-content {
        padding: 0 1.5rem;
    }

    .top-header-left {
        gap: 1.5rem;
    }

    .nav-container {
        padding: 0 1.5rem;
        max-width: 900px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-menu {
        gap: 1.2rem;
    }

    .hero-slider {
        height: 90vh;
    }

    .slide-content h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .slide-content p {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .section-header p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .stat-item {
        padding: 2.5rem 1.5rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .sectors-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .sector-card,
    .service-card,
    .project-card {
        margin: 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
}

/* Tablets & Small Laptops */
@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }

    body {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Top Header - Visible on mobile */
    .top-header {
        display: block;
    }

    /* Navigation - Mobile First Approach */
    .navbar {
        top: 0;
        padding: 1rem 0;
        position: relative;
    }

    .nav-container {
        padding: 0 1.5rem;
        position: relative;
    }

    .logo {
        font-size: 1.3rem;
        z-index: 1001;
    }

    /* Hamburger Menu Button */
    .mobile-menu-toggle {
        display: block !important;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
        padding: 0.5rem;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-toggle.active {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Desktop menu hidden on mobile */
    .nav-menu {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
        z-index: 1000;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-menu .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu .nav-menu li:last-child {
        border-bottom: none;
    }

    .mobile-menu .nav-menu a {
        display: block;
        padding: 1.2rem 0;
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 8px;
        margin: 0.2rem 0;
        padding-left: 1rem;
    }

    .mobile-menu .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    /* Mobile Menu Actions */
    .mobile-menu-actions {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-menu-actions .nav-lang-btn,
    .mobile-menu-actions .nav-portal-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.8rem 1rem;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
    }

    /* Hero Section */
    .hero-slider {
        height: 75vh;
        min-height: 500px;
    }

    .slide-content {
        padding: 0 2rem;
        text-align: center;
    }

    .slide-content h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        display: inline-block;
        width: auto;
        min-width: 200px;
    }

    /* Statistics */
    .stats-section {
        padding: 4rem 0;
    }

    .stats-container {
        padding: 0 1.5rem;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

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

    /* Section Headers */
    .section-header {
        margin-bottom: 3rem;
        padding: 0 1.5rem;
    }

    .section-header h2 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .section-header p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Grids */
    .sectors-grid,
    .services-grid,
    .projects-grid {
        padding: 0 1.5rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sector-card,
    .service-card,
    .project-card {
        margin: 0;
        max-width: none;
    }

    .sector-content,
    .service-card,
    .project-content {
        padding: 1.5rem;
    }

    .sector-content h3,
    .service-card h3 {
        font-size: 1.2rem;
    }

    /* Contact */
    .contact-container {
        padding: 0 1.5rem;
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-form h3 {
        font-size: 1.4rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        padding: 0 1.5rem;
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        margin: 0 0.5rem;
    }

    .footer-bottom {
        padding-top: 2rem;
        font-size: 0.85rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 640px) {
    :root {
        font-size: 14px;
    }

    body {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Navigation */
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .mobile-menu {
        width: 280px;
        max-width: 85vw;
        padding: 4rem 1.5rem 2rem;
    }

    .mobile-menu .nav-menu a {
        padding: 1rem 0;
        font-size: 1rem;
    }

    /* Hero Section */
    .hero-slider {
        height: 65vh;
        min-height: 400px;
    }

    .slide-content {
        padding: 0 1.5rem;
    }

    .slide-content h1 {
        font-size: 1.9rem;
        margin-bottom: 0.8rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
        min-width: 180px;
    }

    /* Statistics */
    .stats-section {
        padding: 3rem 0;
    }

    .stats-container {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    /* Section Headers */
    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Content Grids */
    .sectors-grid,
    .services-grid,
    .projects-grid {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .sector-card,
    .service-card,
    .project-card {
        border-radius: 12px;
    }

    .sector-content,
    .service-card,
    .project-content {
        padding: 1.2rem;
    }

    .sector-content h3,
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .sector-content p,
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Service Icons */
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* Contact */
    .contact-container {
        padding: 0 1rem;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .contact-form h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

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

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.9rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .submit-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        padding: 0 1rem;
        gap: 2rem;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }

    body {
        font-size: 13px;
        line-height: 1.3;
    }

    /* Navigation */
    .navbar {
        padding: 0.7rem 0;
    }

    .nav-container {
        padding: 0 0.8rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        right: 0.8rem;
        font-size: 1.3rem;
        padding: 0.4rem;
    }

    .mobile-menu {
        width: 260px;
        max-width: 90vw;
        padding: 3.5rem 1.2rem 2rem;
    }

    .mobile-menu .nav-menu a {
        padding: 0.9rem 0;
        font-size: 0.95rem;
    }

    /* Hero Section */
    .hero-slider {
        height: 55vh;
        min-height: 350px;
    }

    .slide-content {
        padding: 0 1rem;
    }

    .slide-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }

    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 160px;
    }

    /* Statistics */
    .stats-section {
        padding: 2.5rem 0;
    }

    .stats-container {
        padding: 0 0.8rem;
        gap: 1.2rem;
    }

    .stat-item {
        padding: 1.2rem 0.8rem;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
        padding: 0 0.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    /* Content Grids */
    .sectors-grid,
    .services-grid,
    .projects-grid {
        padding: 0 0.8rem;
        gap: 1.2rem;
    }

    .sector-card,
    .service-card,
    .project-card {
        border-radius: 10px;
    }

    .sector-content,
    .service-card,
    .project-content {
        padding: 1rem;
    }

    .sector-content h3,
    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .sector-content p,
    .service-card p {
        font-size: 0.85rem;
    }

    /* Images */
    .sector-image,
    .project-image {
        height: 140px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Contact */
    .contact-container {
        padding: 0 0.8rem;
        gap: 1.8rem;
    }

    .contact-form {
        padding: 1.2rem 0.8rem;
    }

    .contact-form h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1.2rem;
    }

    .footer-content {
        padding: 0 0.8rem;
        gap: 1.8rem;
    }

    .footer-section h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 0.6rem;
        margin-top: 1.2rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 1.2rem;
        font-size: 0.75rem;
    }
}

/* Login/Register Pages Responsive Styles */
@media (max-width: 768px) {
    .login-card,
    .register-card {
        margin: 1rem;
        padding: 1.5rem 1rem;
        max-width: none;
        width: auto;
    }

    .login-card h3,
    .register-card h3 {
        font-size: 1.5rem;
    }

    .login-card .btn,
    .register-card .btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .floating-shapes .shape {
        display: none; /* Hide floating shapes on mobile for better performance */
    }
}

@media (max-width: 480px) {
    .login-card,
    .register-card {
        margin: 0.5rem;
        padding: 1rem 0.75rem;
        border-radius: 1rem;
    }

    .login-card h3,
    .register-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .login-card .mb-4,
    .register-card .mb-4,
    .login-card .mb-3,
    .register-card .mb-3 {
        margin-bottom: 1rem !important;
    }

    .login-card .form-control,
    .register-card .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .login-card .btn,
    .register-card .btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }

    .login-card .text-center p,
    .register-card .text-center p {
        font-size: 0.85rem;
    }

    .login-card .text-center a,
    .register-card .text-center a {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .login-card,
    .register-card {
        margin: 0.25rem;
        padding: 0.75rem 0.5rem;
    }

    .login-card h3,
    .register-card h3 {
        font-size: 1.2rem;
    }

    .login-card .form-control,
    .register-card .form-control {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .login-card .btn,
    .register-card .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    :root {
        font-size: 12px;
    }

    body {
        font-size: 12px;
    }

    .nav-container {
        padding: 0 0.6rem;
    }

    .mobile-menu {
        width: 240px;
        padding: 3rem 1rem 2rem;
    }

    .slide-content {
        padding: 0 0.8rem;
    }

    .slide-content h1 {
        font-size: 1.4rem;
    }

    .slide-content p {
        font-size: 0.85rem;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        min-width: 140px;
    }

    .stats-container,
    .sectors-grid,
    .services-grid,
    .projects-grid,
    .section-header,
    .contact-container,
    .footer-content {
        padding: 0 0.6rem;
    }

    .stat-item {
        padding: 1rem 0.6rem;
    }

    .sector-content,
    .service-card,
    .project-content {
        padding: 0.8rem;
    }
}

/* Member Pages Responsive Styles */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding-left: 280px;
    }

    .sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding-left: 0;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-card h3 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .profile-section,
    .settings-section {
        padding: 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .grid.grid-cols-1.lg\\:grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .grid.grid-cols-1.md\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid.grid-cols-1.lg\\:grid-cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 260px;
    }

    .sidebar.open {
        width: 260px;
    }

    .metric-card h3 {
        font-size: 1.3rem;
    }

    .metric-card p {
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .profile-section,
    .settings-section {
        padding: 1rem;
    }

    .grid.grid-cols-1.md\\:grid-cols-4,
    .grid.grid-cols-1.lg\\:grid-cols-5 {
        grid-template-columns: 1fr;
    }

    .modal {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-height: calc(100vh - 2rem);
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 240px;
    }

    .sidebar.open {
        width: 240px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .nav-container {
        padding: 0 0.5rem;
    }

    .main-content {
        padding: 1rem 0.5rem;
    }

    .metric-card {
        padding: 0.8rem;
    }

    .metric-card h3 {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .profile-section,
    .settings-section {
        padding: 0.8rem;
        margin: 0.5rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .table {
        font-size: 0.8rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }
}