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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

h2 {
    color: var(--primary-color);
}

/* Custom CSS Variables */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --secondary-color: #2E7D32;
    --accent-color: #66BB6A;
    --gradient-primary: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    --gradient-secondary: linear-gradient(135deg, #81C784 0%, #4CAF50 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 81, 123, 0.85) 0%, rgba(46, 125, 50, 0.75) 30%, rgba(30, 136, 149, 0.8) 100%);
    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --header-height: 80px;
    
    /* Light mode colors */
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --surface-color: #f8f9fa;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
}

/* Dark mode variables */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --surface-color: #2d2d2d;
    --border-color: #404040;
    --card-bg: #2a2a2a;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.3);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.4);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.5);
}

/* Smooth scroll offset for fixed header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

/* Header Styles */
.header {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

[data-theme="dark"] .header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: 1rem 0;
}

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

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    width: 40px;
    height: 40px;
}

[data-theme="dark"] .theme-toggle {
    color: var(--text-color);
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle .fa-sun {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    transition: all 0.3s ease;
}

.theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 70px;
    width: auto;
    margin-right: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.logo:hover .logo-image {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Enhanced Dark Mode Support */
[data-theme="dark"] .hero-background {
    filter: brightness(0.7) contrast(1.1);
}

[data-theme="dark"] .hero-watermark {
    opacity: 0.3;
}

[data-theme="dark"] .testimonials {
    background-color: var(--surface-color);
}

[data-theme="dark"] .testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-section h3 {
    color: var(--text-color);
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section a {
    color: var(--text-light);
}

[data-theme="dark"] .footer-section a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .floating-actions .fab-btn {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

[data-theme="dark"] .progress-bar {
    background-color: var(--primary-color);
}

[data-theme="dark"] .admissions {
    background-color: var(--bg-color);
}

[data-theme="dark"] .contact {
    background-color: var(--bg-color);
}

[data-theme="dark"] .contact-cta {
    background-color: var(--surface-color);
}

[data-theme="dark"] .presentation {
    background-color: var(--bg-color);
}

[data-theme="dark"] .formations {
    background-color: var(--bg-color);
}

/* Additional dark mode fixes for remaining elements */
[data-theme="dark"] .btn-secondary:hover {
    background-color: var(--surface-color);
    color: var(--primary-color) !important;
}

[data-theme="dark"] .contact-cta .btn-primary {
    background-color: var(--surface-color);
    color: var(--primary-color) !important;
}

[data-theme="dark"] .formation-details span {
    background-color: var(--surface-color);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .calendar-table {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .calendar-table td {
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .admission-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .formation-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .contact-info {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .contact-item h4 {
    color: var(--text-color);
}

[data-theme="dark"] .contact-item p {
    color: var(--text-light);
}

[data-theme="dark"] .hero-stats .stat-bubble {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .stats .stat-item {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .form-success {
    background-color: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-success h4 {
    color: var(--text-color);
}

[data-theme="dark"] .form-success p {
    color: var(--text-light);
}

/* Fix any remaining white text gradients in dark mode */
[data-theme="dark"] .hero h1 {
    background: var(--text-color);
    background-clip: text;
    -webkit-background-clip: text;
    color: var(--text-color);
}

/* Fix all remaining heading colors in dark mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-color);
}

[data-theme="dark"] h2 {
    color: var(--primary-color);
}

[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .formation-card h3,
[data-theme="dark"] .admission-card h3 {
    color: var(--text-color);
}

[data-theme="dark"] .contact-info h3,
[data-theme="dark"] .contact-form-container h3 {
    color: var(--text-color);
}

/* Fix paragraph text colors */
[data-theme="dark"] p {
    color: var(--text-light);
}

[data-theme="dark"] .hero p {
    color: rgba(255, 255, 255, 0.9);
}


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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hamburger:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--card-bg);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

[data-theme="dark"] .bar {
    background-color: var(--text-color);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

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

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-bubble {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px 25px;
    text-align: center;
    transition: var(--transition);
}

.stat-bubble:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-bubble .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-bubble .stat-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #e8f5e8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 180px;
    padding: 0 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: var(--transition);
}

.scroll-arrow:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.scroll-indicator span {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.btn {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    text-align: center;
    line-height: 1.2;
    min-height: 48px;
    min-width: 44px;
}

.btn:focus {
    outline: 3px solid rgba(76, 175, 80, 0.5);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 3px solid rgba(76, 175, 80, 0.7);
    outline-offset: 2px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.btn span,
.btn i {
    position: relative;
    z-index: 2;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white !important;
    border: 2px solid transparent;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-weight: 700;
}

.btn-primary *,
.btn-primary i {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: white !important;
    
}

.btn-primary:hover *,
.btn-primary:hover i {
    color: white !important;
}

.btn-primary:focus {
    color: white !important;
}

.btn-primary:active {
    color: white !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: white !important;
    border: 2px solid white;
    backdrop-filter: blur(10px);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-secondary *,
.btn-secondary i {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-secondary:hover {
    background-color: var(--card-bg);
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    text-shadow: none;
}

.btn-secondary:hover *,
.btn-secondary:hover i {
    color: var(--primary-color) !important;
    text-shadow: none;
}

.btn-secondary:focus {
    color: white !important;
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Notre Institut Section */
.notre-institut {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--surface-color) 50%, var(--surface-color) 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.notre-institut::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(76,175,80,0.1)"/><circle cx="80" cy="20" r="1.5" fill="rgba(76,175,80,0.08)"/><circle cx="30" cy="70" r="1" fill="rgba(76,175,80,0.1)"/><circle cx="90" cy="80" r="1.2" fill="rgba(76,175,80,0.06)"/></svg>') repeat;
    animation: backgroundMove 30s linear infinite;
    z-index: 1;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

.notre-institut .container {
    position: relative;
    z-index: 2;
}

.notre-institut h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

.notre-institut h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0;
    animation: slideInLine 1s ease 0.5s forwards;
}

@keyframes slideInLine {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80px;
        opacity: 1;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: var(--card-bg);
    padding: 45px 35px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 25px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
    box-shadow: var(--shadow-medium);
}

.feature-card h3 {
    color: var(--text-color);
    font-size: 1.6rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 20px;
}

.feature-highlight i {
    font-size: 1.1rem;
}

/* Presentation Section */
.presentation {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.presentation-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.presentation-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-choose-us {
    margin: 50px 0;
    text-align: center;
}

.why-choose-us h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.why-choose-us ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.why-choose-us li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: var(--text-light);
    position: relative;
    padding-left: 30px;
}

.why-choose-us li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Formations Section */
.formations {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.formations h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 700;
}

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

.formation-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

.formation-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.formation-details span {
    background-color: var(--surface-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.formation-card p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

.formation-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-plaquette {
    font-size: 0.95rem;
    padding: 12px 24px;
    transition: var(--transition);
    background-color: var(--primary-color) !important;
    color: white !important;
    border: 2px solid var(--primary-color) !important;
}

.btn-plaquette * {
    color: white !important;
}

.btn-plaquette:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-plaquette:hover * {
    color: white !important;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--surface-color);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-track {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.testimonial-card {
    display: none;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    text-align: center;
    position: relative;
}

.testimonial-card.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    max-width: 600px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.stars i {
    color: #FFD700;
    font-size: 1.2rem;
}

.testimonial-card blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
    position: relative;
}

.testimonial-card blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-light);
    position: absolute;
    top: -20px;
    left: -30px;
    font-family: serif;
}

.testimonial-card cite {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.testimonial-card cite strong {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.testimonial-card cite span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.testimonial-card cite .company {
    color: var(--secondary-color);
    font-weight: 600;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Admissions Section */
.admissions {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.admissions h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 700;
}

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

.admission-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.admission-card ul {
    list-style: none;
    padding-left: 0;
}

.admission-card li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.admission-card li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
}

.calendar-table td:first-child {
    font-weight: 600;
    color: var(--text-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3,
.contact-form-container h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: 10px;
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-details h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Contact Form */
.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--surface-color);
    color: var(--text-color);
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: translateY(-1px);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

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

.field-error {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.field-error::before {
    content: "⚠️";
    font-size: 0.8rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    padding: 16px 32px;
    transition: var(--transition);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.form-success {
    background: var(--surface-color);
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    color: var(--primary-dark);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-success h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    margin-right: 10px;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    position: absolute;
    left: 3px;
    top: -2px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-loading {
    display: none;
}

.form-success {
    background-color: var(--surface-color);
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.form-success h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-success p {
    color: var(--text-light);
    margin: 0;
}

/* Contact CTA Section */
.contact-cta {
    padding: 80px 0;
    background-color: #4CAF50;
    color: white;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta .btn-primary {
    background-color: var(--card-bg);
    color: #4CAF50 !important;
    text-shadow: none;
    border: 2px solid #4CAF50;
    font-weight: 700;
}

.contact-cta .btn-primary:hover {
    background-color: #4CAF50;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact-cta .btn-primary:focus {
    outline: 3px solid rgba(76, 175, 80, 0.4);
    outline-offset: 2px;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.partners h2 {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.partners-intro {
    text-align: center;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 60px auto;
    line-height: 1.7;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.partner-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.partner-logo {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: var(--transition);
}

[data-theme="dark"] .partner-logo img {
    filter: brightness(1.2) contrast(1.1) saturate(0.9);
}

.partner-card h3 {
    font-size: 1.4rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.partner-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

[data-theme="dark"] .partners {
    background-color: var(--bg-color);
}

[data-theme="dark"] .partner-card {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

/* Responsive adjustments for partners */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .partner-card {
        padding: 30px 25px;
    }

    .partner-logo {
        height: 100px;
        margin-bottom: 20px;
    }

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

    .partners-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .partners {
        padding: 60px 0;
    }

    .partner-card {
        padding: 25px 20px;
    }

    .partner-logo {
        height: 80px;
    }
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.gallery-intro {
    text-align: center;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.gallery-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

/* Ajustement spécifique pour les photos de portraits */
.gallery-item[data-category="portraits"] .gallery-image {
    object-position: center 25%;
    height: 320px;
}

/* Placeholder pendant le chargement */
.gallery-image[loading="lazy"] {
    background: linear-gradient(90deg, var(--surface-color) 25%, rgba(255,255,255,0.2) 50%, var(--surface-color) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.85) 0%, rgba(46, 125, 50, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.gallery-content h3 {
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.gallery-content p {
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    opacity: 0.9;
}

.gallery-zoom {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.gallery-zoom:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Modal Gallery */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    object-position: center;
    background-color: var(--surface-color);
}

.modal-info {
    padding: 25px;
    text-align: center;
}

.modal-title {
    font-size: 1.4rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.modal-description {
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Dark mode */
[data-theme="dark"] .gallery {
    background-color: var(--surface-color);
}

[data-theme="dark"] .filter-btn {
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .gallery-image-wrapper {
    box-shadow: var(--shadow-light);
}

[data-theme="dark"] .modal-content {
    background: var(--surface-color);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery {
        padding: 60px 0;
    }

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

    .gallery-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .gallery-filters {
        gap: 10px;
        margin-bottom: 40px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

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

    .gallery-image {
        height: 250px;
    }

    .gallery-item[data-category="portraits"] .gallery-image {
        height: 280px;
    }

    .gallery-content h3 {
        font-size: 1.1rem;
    }

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

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
        text-align: center;
    }

    .gallery-image {
        height: 220px;
    }

    .gallery-item[data-category="portraits"] .gallery-image {
        height: 250px;
    }

    .gallery-content {
        padding: 15px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

/* Footer */
.footer {
    background-color: #2d2d2d;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.footer-logo-link {
    display: flex;
    margin-right: 15px;
    transition: var(--transition);
}

.footer-logo-link:hover {
    transform: translateY(-2px);
}

.footer-logo-image {
    height: 70px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: var(--transition);
}

.footer-logo-link:hover .footer-logo-image {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p {
    line-height: 1.8;
    color: #ccc;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #45a049;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .header-controls {
        order: -1;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
        backdrop-filter: blur(10px);
        z-index: 999;
    }
    
    [data-theme="dark"] .nav-menu {
        background-color: var(--surface-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        color: var(--text-color);
        font-size: 1.1rem;
        font-weight: 500;
        padding: 1rem 2rem;
        border-radius: var(--border-radius);
        margin: 0.5rem 1rem;
        transition: var(--transition);
    }
    
    .nav-menu .nav-link:hover {
        background-color: var(--primary-color);
        color: white;
    }
    
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .formations-grid {
        grid-template-columns: 1fr;
    }
    
    .admissions-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats {
        gap: 30px;
    }
    
    .logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo-text {
        font-size: 14px;
        font-weight: 600;
        color: white;
        margin-top: 5px;
        line-height: 1.2;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .logo-image {
        height: 45px;
        margin-right: 0;
        margin-bottom: 2px;
    }
    
    .header-controls {
        gap: 10px;
    }
    
    
    .theme-toggle {
        width: 35px;
        height: 35px;
    }
    
    .watermark-logo {
        height: 100px;
        right: 3%;
        bottom: 15%;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo-link {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 100px;
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        margin-bottom: 120px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
        gap: 15px;
    }
    
    .logo-image {
        height: 40px;
        margin-right: 0;
        margin-bottom: 2px;
    }
    
    .logo-text {
        font-size: 12px;
        font-weight: 600;
        color: white;
        margin-top: 3px;
        line-height: 1.1;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .watermark-logo {
        height: 70px;
        opacity: 0.35;
        bottom: 10%;
    }
    
    
    .header-controls {
        gap: 8px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}


.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    font-size: 1.4rem;
}

.fab-phone {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.fab-email {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.fab-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

/* Particle Animation */
.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particles 20s linear infinite;
}

/* Hero Watermark */
.hero-watermark {
    position: absolute;
    bottom: 20%;
    right: 8%;
    z-index: 1;
}

.watermark-logo {
    height: 140px;
    width: auto;
    opacity: 0.4;
    filter: brightness(1.3) contrast(0.8);
    animation: float 4s ease-in-out infinite;
}

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

@keyframes particles {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-200px);
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 140px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-bubble {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        bottom: 30px;
    }
    
    .testimonial-card blockquote::before {
        left: -15px;
        font-size: 3rem;
    }
    
    .floating-actions {
        bottom: 90px;
        right: 20px;
    }
    
    .fab-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}