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

/* Screen Reader Only - Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: smooth; /* Pour le défilement fluide */
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .custom-cursor {
        display: none !important;
    }
}

body {
    background-color: var(--color-background);
    overflow-x: hidden;
    opacity: 0;
    animation: pageLoad 0.5s ease forwards;
}

@keyframes pageLoad {
    to {
        opacity: 1;
    }
}

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

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 15px 40px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.logo {
    z-index: 101;
    flex-shrink: 0;
    margin-right: 50px;
}

.logo a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    letter-spacing: 1px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.logo a:hover {
    color: #000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding: 5px 20px;
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width 0.3s ease;
}

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

.main-nav a:hover {
    color: #000; /* Darker color on hover for better contrast */
}

/* Hero Banner */
.hero-banner {
    height: 100vh;
    width: 100%;
    background-image: image-set(
        url('../img/image1.avif') type('image/avif'),
        url('../img/image1.webp') type('image/webp'),
        url('../img/image1.jpg') type('image/jpeg')
    );
    background-image: -webkit-image-set(
        url('../img/image1.webp') 1x,
        url('../img/image1.jpg') 1x
    );
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: heroFadeIn 1s ease-out;
}

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

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: heroFadeIn 1s ease-out 0.3s both;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-decoration: none;
    animation: bounce 2s infinite;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
}

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

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Section Styles */
section {
    padding: 80px 0;
}

.gallery-section, .about-section, .contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 500;
    position: relative;
    display: block;
    width: 100%;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--color-text);
}

/* Gallery */

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

.gallery figure {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
}

.gallery figure:focus {
    outline: 3px solid var(--color-text);
    outline-offset: 4px;
}

/* Custom cursor for gallery */
.custom-cursor {
    position: fixed;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.3s ease;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.custom-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.custom-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.8);
}

.gallery figure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery figure:hover::before {
    opacity: 1;
}

.gallery figure:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
    display: block;
    margin: 0;
    padding: 0;
    opacity: 0;
    animation: imageLoad 0.8s ease-out forwards;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        filter: blur(5px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.gallery figure:nth-child(1) img { animation-delay: 0.1s; }
.gallery figure:nth-child(2) img { animation-delay: 0.2s; }
.gallery figure:nth-child(3) img { animation-delay: 0.3s; }
.gallery figure:nth-child(4) img { animation-delay: 0.4s; }
.gallery figure:nth-child(5) img { animation-delay: 0.5s; }
.gallery figure:nth-child(6) img { animation-delay: 0.6s; }
.gallery figure:nth-child(7) img { animation-delay: 0.7s; }
.gallery figure:nth-child(8) img { animation-delay: 0.8s; }
.gallery figure:nth-child(9) img { animation-delay: 0.9s; }

.gallery figure:hover img {
    transform: scale(1.15);
}

.gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.gallery figure:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-text);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 60px;
    color: var(--color-text);
}

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

.skill-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    text-align: center;
}

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

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-text);
    border-radius: 50%;
    color: white;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: rotate(360deg) scale(1.1);
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text);
}

.skill-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

/* Contact Form */
.contact-section p {
    text-align: center;
    margin-bottom: 30px;
}

form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

form label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 5px;
}

.form-group textarea + label {
    top: 20px;
    transform: none;
}

form input:focus ~ label,
form input:not(:placeholder-shown) ~ label,
form textarea:focus ~ label,
form textarea:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--color-text);
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

form input:focus, form textarea:focus {
    border-color: var(--color-text);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

form input::placeholder, form textarea::placeholder {
    color: transparent;
}

form button {
    width: 100%;
    padding: 16px;
    background: var(--color-text);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Navigation and Controls Container */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Language Switcher */
.language-switcher {
    z-index: 101;
}

.language-switcher button {
    background: var(--color-white);
    border: 1px solid var(--color-text);
    color: var(--color-text);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    font-family: var(--font-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-switcher button:hover {
    background-color: var(--color-text);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.language-switcher button svg {
    width: 16px;
    height: 16px;
}

/* Form validation styles */
form input.error, form textarea.error {
    border-color: #ff3333;
    background-color: #fff8f8;
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-status.error {
    background-color: #fff0f0;
    border: 1px solid #ffcaca;
    color: #d80000;
}

.form-status.success {
    background-color: #f0fff0;
    border: 1px solid #ceffce;
    color: #008a00;
}

.form-status.info {
    background-color: #f0f8ff;
    border: 1px solid #cae6ff;
    color: #0066cc;
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #52c234;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #52c234;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
    position: relative;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #52c234;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #52c234;
    }
}

.success-message {
    text-align: center;
    font-size: 1.2rem;
    color: #52c234;
    font-weight: 600;
    margin-top: 15px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 1s;
}

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

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

#lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-info {
    margin-top: 20px;
    text-align: center;
    color: white;
}

.lightbox-counter {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.lightbox-caption {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.5;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.close-lightbox:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }

    .close-lightbox {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-text);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #000;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Footer */
footer {
    background: var(--color-text);
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-content > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-header {
        padding: 15px 30px;
        justify-content: center;
    }

    .logo {
        margin-right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 30px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        padding-top: 80px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
        width: 100%;
    }

    .main-nav li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-nav a {
        display: block;
        padding: 20px 0;
        font-size: 1.1rem;
    }

    .main-nav a::after {
        display: none;
    }

    .language-switcher {
        padding: 0 30px;
        width: 100%;
    }

    .language-switcher button {
        width: 100%;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }

    .mobile-menu-toggle {
        right: 20px;
    }

    .main-nav {
        width: 80%;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .gallery img {
        height: 350px;
    }

    section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    form {
        padding: 20px;
    }

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