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

:root {
    --primary: #0071bd;
    --secondary: #fe0000;
    --primary-light: #1a8dd6;
    --primary-dark: #005aa0;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Container */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary);
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--primary);
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Navigation */
#navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar .container-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.nav-brand p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

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

/* Language Switcher */
.language-switch {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 113, 189, 0.3);
}

.lang-btn:hover:not(.active) {
    background: rgba(0, 113, 189, 0.1);
    color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: white;
    border: 1px solid var(--gray-200);
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
    touch-action: manipulation;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.mobile-menu-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    right: 1rem;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dropdown arrow indicator */
.mobile-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.mobile-menu .nav-menu {
    display: flex !important;
    flex-direction: column;
    padding: 0.5rem 0;
    margin: 0;
    gap: 0;
    list-style: none;
    background: transparent;
    position: static;
    border-radius: 0;
    box-shadow: none;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu .nav-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu .nav-link {
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    margin: 0.125rem 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
    border: none;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.mobile-menu .nav-link:first-child {
    margin-top: 0.25rem;
}

.mobile-menu .nav-link:last-child {
    margin-bottom: 0.25rem;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link:focus {
    background: var(--primary);
    color: white;
    outline: none;
    transform: translateX(2px);
}

.mobile-menu .nav-link:active {
    background: var(--primary-dark);
    transform: translateX(1px) scale(0.98);
}

.mobile-menu .nav-link.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

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

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: var(--primary);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

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

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

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

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

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

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

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.8s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet and Large Mobile Optimizations */
@media (max-width: 1024px) {
    /* Touch-friendly navigation */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Language switcher mobile */
    .language-switch {
        gap: 0.25rem;
        background: white;
        border: 1px solid var(--gray-200);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
    }
    
    .lang-btn {
        min-width: 40px;
        min-height: 40px;
        font-size: 0.875rem;
        padding: 0.4rem 0.7rem;
    }
    
    .lang-btn:hover:not(.active) {
        background: var(--gray-50);
        color: var(--gray-700);
    }
    
    .container-custom {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Mobile and Tablet */
@media (max-width: 768px) {
    #navbar > .container-custom > .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        background: white;
        border: 1px solid var(--gray-200);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Dropdown menu adjustments for medium screens */
    .mobile-menu {
        right: 0.75rem;
        min-width: 180px;
    }
    
    .mobile-menu .nav-link {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
    
    .container-custom {
        padding: 0 1rem;
    }
}

/* Intermediate breakpoint for better mobile experience */
@media (max-width: 640px) {
    .container-custom {
        padding: 0 0.75rem;
    }
    
    /* Dropdown adjustments for smaller screens */
    .mobile-menu {
        right: 0.5rem;
        left: 0.5rem;
        min-width: auto;
        max-width: calc(100vw - 1rem);
    }
    
    .mobile-menu .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    /* Language switcher adjustments */
    .language-switch {
        gap: 0.125rem;
    }
    
    .lang-btn {
        min-width: 36px;
        min-height: 36px;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .container-custom {
        padding: 0 1rem;
    }
    
    /* Hero slider optimizations */
    .slide-content {
        padding: 2rem 1rem;
    }
    
    .slide-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Form optimizations */
    .form-input, .form-textarea {
        min-height: 48px;
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 16px;
        border-radius: 10px;
        border: 2px solid var(--gray-300);
        transition: all 0.3s ease;
        background: white;
    }
    
    .form-input:focus, .form-textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(0, 113, 189, 0.15);
        transform: scale(1.02);
    }
    
    .form-input::placeholder, .form-textarea::placeholder {
        color: var(--gray-500);
    }
    
    .form-textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    /* Button touch targets */
    .btn-primary, .btn-secondary {
        min-height: 44px;
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Card spacing */
    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        width: 100%;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .container-custom {
        padding: 0 0.5rem;
    }
    
    /* Improved mobile navbar */
    #navbar {
        padding: 0.75rem 0;
    }
    
    #navbar .container-custom {
        padding: 0 0.75rem;
    }
    
    /* Slider navigation for mobile */
    .slider-nav {
        display: none;
    }
    
    /* Touch-friendly portfolio cards */
    .portfolio-card {
        margin-bottom: 1rem;
    }
    
    /* Improved mobile forms */
    .form-input, .form-textarea {
        padding: 14px 16px;
        border-radius: 8px;
    }
    
    /* Enhanced dropdown for very small screens */
    .mobile-menu {
        right: 0.25rem;
        left: 0.25rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .mobile-menu .nav-link {
        padding: 1rem 0.875rem;
        font-size: 1rem;
        font-weight: 500;
        min-height: 48px;
        margin: 0.125rem 0.375rem;
    }
    
    /* Better touch feedback */
    .mobile-menu .nav-link:active {
        background: var(--primary-dark);
        transform: scale(0.98);
    }
    
    /* Mobile menu button improvements */
    .mobile-menu-btn {
        min-width: 48px;
        min-height: 48px;
        font-size: 1.25rem;
    }
    
    /* Language switcher for very small screens */
    .language-switch {
        transform: scale(0.9);
    }
}

/* Landscape mobile orientation improvements */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-menu {
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-menu .nav-link {
        padding: 0.625rem 1rem;
        min-height: 40px;
        font-size: 0.9rem;
    }
    
    #navbar {
        padding: 0.5rem 0;
    }
    
    #navbar .container-custom {
        height: 60px;
    }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-menu {
        backdrop-filter: blur(8px);
    }
    
    .mobile-menu .nav-menu {
        box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.2), 0 15px 15px -5px rgba(0, 0, 0, 0.1);
    }
}

/* Large mobile screens (iPhone Plus, large Android) */
@media (min-width: 414px) and (max-width: 768px) {
    .mobile-menu {
        min-width: 220px;
        right: 1rem;
    }
    
    .mobile-menu .nav-link {
        font-size: 1.1rem;
        padding: 1rem 1.25rem;
        min-height: 52px;
    }
    
    .mobile-menu-btn {
        min-width: 48px;
        min-height: 48px;
    }
    
    .lang-btn {
        min-width: 42px;
        min-height: 42px;
        font-size: 0.9rem;
    }
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .mobile-menu .nav-menu,
    .mobile-menu .nav-link,
    .mobile-menu-btn {
        transition: none;
        animation: none;
    }
    
    .mobile-menu .nav-menu {
        transform: none !important;
    }

    .mobile-menu.active .nav-menu {
        transform: none !important;
    }
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(6px)) {
    .mobile-menu {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Force mobile menu button and dropdown visibility on small screens */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        position: relative !important;
        z-index: 1002 !important;
    }
    
    /* Ensure desktop nav menu is hidden on mobile (but not mobile dropdown menu) */
    #navbar > .container-custom > .nav-menu {
        display: none !important;
    }
    
    /* Ensure mobile dropdown menu is functional */
    .mobile-menu {
        position: absolute !important;
        z-index: 1000 !important;
    }
    
    .mobile-menu .nav-menu {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Force flex container layout for mobile menu container */
    #navbar .container-custom > .flex.items-center.gap-4 {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        position: relative !important;
    }
}

/* About Section Styles */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.about-paragraph {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-cta {
    display: inline-flex;
    align-items: center;
}

.about-card-inner {
    background: var(--gray-100);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.about-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.about-card-text {
    color: var(--gray-600);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-title {
        font-size: 1.75rem;
    }
    
    .about-paragraph {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .about-cta {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-card-inner {
        padding: 1.5rem;
    }
    
    .about-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .about-card-title {
        font-size: 1.25rem;
    }
    
    .about-card-text {
        font-size: 0.9rem;
    }
}

/* Contact Section Styles */
.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

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

.contact-submit {
    width: 100%;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

@media (max-width: 768px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-info-title {
        font-size: 1.25rem;
        text-align: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form,
    .contact-info {
        padding: 1rem;
    }
    
    .contact-content-grid {
        gap: 1.5rem;
    }
}

/* Footer Styles */
.footer-container {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-container {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-container {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 1.5rem 0 0.5rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
}

/* Image Responsive */
img {
    max-width: 100%;
    height: auto;
}

.hero-slider img,
.service-card img,
.portfolio-card img,
.partner-card img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .hero-slider .slide-background {
        background-attachment: scroll !important; /* Fix parallax on mobile */
    }
    
    .stats-section {
        background-attachment: scroll !important; /* Fix parallax on mobile */
    }
    
    .portfolio-card img,
    .service-card img {
        height: 200px;
        object-fit: cover;
    }
    
    .partner-card img {
        height: 80px;
        object-fit: contain;
    }
}

/* Utility Classes - !important used to override Tailwind CDN on internal pages */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex !important; }
.grid { display: grid; }

.items-center { align-items: center !important; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Mobile menu container positioning - Force relative positioning for dropdown */
.flex.items-center.gap-4 {
    position: relative !important;
}

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }

.transition { transition: all 0.3s ease; }

.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }

/* ===============================================
   HERO SLIDER WITH PARALLAX EFFECTS
   =============================================== */

/* Base Slider Structure */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
    padding-top: 80px; /* Compensation pour navbar fixe */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(100%);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.slide.prev {
    transform: translateX(-100%);
    opacity: 0;
}

/* Slide Background with Parallax */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

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

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 3;
    height: calc(100vh - 80px); /* Ajustement pour navbar */
    min-height: 520px; /* Hauteur minimum */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 3rem 0; /* Padding augmenté */
}

.slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Typewriter Effect */
.typewriter {
    display: inline-block;
    border-right: 3px solid white;
    padding-right: 2px;
    animation: cursor-blink 1.2s infinite;
}

.typewriter.typing {
    border-right-color: var(--secondary);
}

@keyframes cursor-blink {
    0%, 50% { border-right-color: transparent; }
    51%, 100% { border-right-color: white; }
}

/* Slide Features */
.slide-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-item i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Slide Stats */
.slide-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Client Logos */
.slide-clients {
    margin-bottom: 2.5rem;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.client-logos img {
    height: 50px;
    width: auto;
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.client-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Slide Buttons */
.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Parallax Floating Elements */
.parallax-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-icon,
.floating-logo,
.floating-badge {
    position: absolute;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.floating-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    animation-delay: -2s;
}

.floating-icon:nth-child(3) {
    animation-delay: -4s;
}

.floating-logo {
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.floating-badge .certification-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: float 7s ease-in-out infinite;
}

.certification-badge i {
    margin-right: 0.5rem;
    color: gold;
}

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

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-nav {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.1);
}

.slider-nav:active {
    transform: scale(0.95);
}

/* Slider Pagination */
.slider-pagination {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pagination-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Progress bar for active dot */
.pagination-dot.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid transparent;
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: progress-ring 8s linear infinite;
}

@keyframes progress-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    text-decoration: none;
    display: block;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.scroll-indicator a:hover {
    color: white;
    transform: translateY(-5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===============================================
   RESPONSIVE DESIGN FOR SLIDER
   =============================================== */

@media (max-width: 1024px) {
    .hero-slider {
        padding-top: 80px;
        min-height: 550px;
    }
    
    .slide-content {
        height: calc(100vh - 80px);
        min-height: 470px;
        padding: 2.5rem 0;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-subtitle {
        font-size: 1.3rem;
    }
    
    .slide-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .floating-icon {
        font-size: 2.5rem;
    }
    
    .slider-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 500px;
        padding-top: 80px;
    }
    
    .slide-content {
        height: calc(100vh - 80px);
        min-height: 420px;
        padding: 2rem 0;
    }
    
    .slide-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-features {
        margin-bottom: 2rem;
    }
    
    .feature-item {
        font-size: 1rem;
    }
    
    .slide-stats {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .client-logos {
        gap: 1rem;
    }
    
    .client-logos img {
        height: 35px;
    }
    
    /* Disable parallax on mobile for performance */
    .parallax-elements {
        display: none;
    }
    
    .slide-background {
        width: 100%;
        height: 100%;
        transform: none !important;
    }
    
    .slider-controls {
        padding: 0 1rem;
    }
    
    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .pagination-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 450px;
        padding-top: 80px;
    }
    
    .slide-content {
        height: calc(100vh - 80px);
        min-height: 370px;
        padding: 1.5rem 0;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slide-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .slider-pagination {
        bottom: 2rem;
    }
}

/* Portfolio Slider Styles */
.portfolio-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    overflow: hidden;
}

.portfolio-slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.portfolio-slider-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.portfolio-slide {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    scroll-snap-align: start;
    transition: transform 0.3s;
}

@media (min-width: 768px) {
    .portfolio-slide {
        max-width: 350px;
    }
}

.portfolio-card {
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.portfolio-category {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.portfolio-tag {
    background-color: var(--light-bg);
    color: var(--secondary);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Portfolio Navigation Buttons */
.portfolio-slider-prev,
.portfolio-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.portfolio-slider-prev:hover,
.portfolio-slider-next:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.portfolio-slider-prev {
    left: 0;
}

.portfolio-slider-next {
    right: 0;
}

/* Portfolio Filter Styles */
.filter-btn {
    padding: 8px 16px;
    border-radius: 30px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

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

/* Portfolio card transitions for filtering */
.portfolio-card {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Partners Slider Styles */
.partners-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    overflow: hidden;
}

.partners-slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.partners-slider-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.partner-slide {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
    scroll-snap-align: start;
    transition: transform 0.3s;
}

@media (min-width: 768px) {
    .partner-slide {
        max-width: 300px;
    }
}

.partner-card {
    height: 100%;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.partner-logo {
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.partner-card:hover .partner-logo img {
    transform: scale(1.05);
}

.partner-content {
    padding: 20px;
    text-align: center;
}

.partner-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.partner-content p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.partner-link {
    margin-top: auto;
}

.partner-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.partner-link a:hover {
    color: var(--primary);
}

.partner-link i {
    font-size: 0.8rem;
}

/* Partners Navigation Buttons */
.partners-slider-prev,
.partners-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.partners-slider-prev:hover,
.partners-slider-next:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.partners-slider-prev {
    left: 0;
}

.partners-slider-next {
    right: 0;
}