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

:root {
    --primary-blue: #0066FF;
    --primary-dark: #0052CC;
    --secondary-blue: #4D94FF;
    --accent-cyan: #00D4FF;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #1A1D29;
    --text-gray: #6B7280;
    --border-light: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #F8FAFC 0%, #E8EEF5 100%);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
}

header {
    padding: 24px 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-text a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

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

.menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu a:hover {
    background-color: rgba(0, 102, 255, 0.08);
    color: var(--primary-blue);
}

.menu a:hover::after {
    transform: scaleX(1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    z-index: 1002;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

.hamburger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active {
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
}

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

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

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

main {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-blue) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 60px 0 70px 0;
    line-height: 1.40;
    letter-spacing: -2px;
}

/* Grille pour la page d'accueil (index.php) - 2 cartes écartées */
.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 80px;
    text-decoration: none;
}

/* Grille pour les pages projets et infographies - 3 cartes par ligne */
#projects-container,
#infographies-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 100%;
    padding: 0 40px 80px;
}

.card {
    background-color: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    cursor: pointer;
    display: block;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card a:hover {
    text-decoration: none;
}

.card a h2,
.card a p {
    text-decoration: none;
}

.card:hover {
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary-blue);
    border-color: var(--primary-blue);
}

.card-image {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    transition: opacity 0.3s ease;
}

.card:hover .card-image::after {
    opacity: 0;
}

/* Images de fond pour les cartes de la page d'accueil (index.php) */
.card-image-projets {
    background-image: url('../Images/projet-min.webp');
}

.card-image-infographies {
    background-image: url('../Images/info-min.webp');
}

.card-image-realisations {
    background-image: url('../Images/urne-min.webp');
}

.card-content {
    padding: 28px;
    transition: all 0.3s ease;
    min-height: 140px;
}

.project-title {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-arrow {
    height: 30px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    filter: brightness(0) invert(1);
}

.project-card {
    position: relative;
}

.project-year {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-top: 5px;
}

/* Contact Form Styles */
.contact-container {
    max-width: 900px;
    margin: 60px auto 100px;
    padding: 0 30px;
}

.contact-form {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 18px;
    text-transform: none;
    letter-spacing: 0.3px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--primary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--bg-white);
    box-shadow: 
        var(--shadow-sm),
        0 0 0 4px rgba(0, 102, 255, 0.1);
    transform: translateY(-1px);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230066FF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.form-group select option {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 10px;
}

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

.submit-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    color: var(--bg-white);
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-top: 20px;
    box-shadow: 
        0 4px 12px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

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

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    box-shadow: 
        0 6px 20px rgba(0, 102, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.message {
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 500;
    border: 1px solid;
    text-align: left;
    font-size: 15px;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.success {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
    color: var(--primary-blue);
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.message.success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: var(--bg-white);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.message.error {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.15) 0%, rgba(255, 59, 59, 0.05) 100%);
    color: #ff8a8a;
    border-color: rgba(255, 59, 59, 0.3);
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.1);
}

.message.error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ff3b3b;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .contact-container {
        max-width: 100%;
        margin: 40px auto 80px;
        padding: 0 15px;
    }

    .contact-form {
        padding: 25px 15px;
        border-radius: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .submit-btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E0E7F0 100%);
    z-index: 10000;
    overflow-y: auto;
}

.modal-overlay.active {
    display: block;
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: var(--shadow-md);
}

.modal-close:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: var(--bg-white);
    border-color: var(--primary-blue);
    transform: rotate(90deg);
    box-shadow: var(--shadow-lg);
}

.modal-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Header - Titre centré */
.modal-header {
    text-align: center;
    margin-bottom: 60px;
}

.modal-title {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.modal-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.modal-year {
    font-size: 24px;
    color: var(--text-gray);
    font-weight: 800;
}

/* Body - Layout 50/50 */
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

/* Carrousel Section (Gauche) */
.modal-carousel-section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-carousel-section .info-title {
    margin-bottom: 25px;
}

.carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
    justify-content: space-between;
}

.carousel-images {
    width: 100%;
    height: 425px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

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

.carousel-image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-btn {
    background-color: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-dark);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-color: var(--primary-blue);
    color: var(--bg-white);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    transform: scale(1.3);
}

/* Info Section (Droite) */
.modal-info-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.modal-description {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.modal-advantages {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 2px;
}

.modal-desc {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
}

.advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.advantages-list li {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    padding-left: 30px;
    position: relative;
}

.advantages-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.modal-link {
    text-align: center;
    flex-shrink: 0;
    margin-top: 20px;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: var(--bg-white);
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.project-link-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.link-arrow {
    height: 20px;
    width: auto;
    transition: filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.project-link-btn:hover .link-arrow {
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .modal-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        overflow-x: hidden;
    }

    .modal-content {
        padding: 20px 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .modal-header {
        margin-bottom: 30px;
        padding: 0 5px;
    }
    
    .modal-title {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .modal-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .modal-year {
        font-size: 14px;
    }
    
    .modal-carousel-section {
        padding: 0;
    }
    
    .carousel-wrapper {
        gap: 15px;
    }
    
    .carousel-images {
        height: 300px;
        padding: 15px;
        margin: 0;
    }
    
    .carousel-image {
        max-height: 100%;
        max-width: 100%;
    }
    
    .carousel-controls {
        gap: 15px;
        flex-wrap: nowrap;
        padding: 0 10px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-indicators {
        gap: 8px;
        flex: 1;
        justify-content: center;
        overflow-x: auto;
        padding: 5px 0;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
        flex-shrink: 0;
    }
    
    .modal-info-section {
        padding: 0;
        gap: 20px;
    }
    
    .modal-description {
        padding: 0;
    }
    
    .info-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .modal-desc {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .advantages-list {
        padding-left: 20px;
    }
    
    .advantages-list li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 8px;
    }
    
    .modal-link {
        margin-top: 20px;
    }
    
    .project-link-btn {
        font-size: 14px;
        padding: 12px 24px;
        width: 100%;
        justify-content: center;
    }
    
    .link-arrow {
        height: 16px;
    }
    
    .modal-close {
        position: fixed;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 32px;
        background: rgba(255, 255, 255, 0.95);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border: 2px solid var(--primary-blue);
        color: var(--primary-blue);
        z-index: 10002;
    }
}

.card-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.card:hover .card-content h2 {
    color: var(--primary-blue);
}

.card-content p {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1.6;
}

.page-content {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.page-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.page-content p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
}

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

    .container {
        flex-direction: row;
        gap: 10px;
        padding: 0 15px;
        align-items: center;
    }

    .logo {
        gap: 8px;
        flex: 1;
    }

    .logo i {
        font-size: 40px !important;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-subtitle {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .hero-text {
        font-size: 48px;
        margin: 40px 0 40px 0;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #projects-container,
    #infographies-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 5px 80px;
    }

    body {
        overflow-x: hidden;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
    }

    .menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .menu li {
        border-bottom: none;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    nav.active .menu li {
        opacity: 1;
        transform: translateY(0);
    }

    nav.active .menu li:nth-child(1) { transition-delay: 0.1s; }
    nav.active .menu li:nth-child(2) { transition-delay: 0.15s; }
    nav.active .menu li:nth-child(3) { transition-delay: 0.2s; }
    nav.active .menu li:nth-child(4) { transition-delay: 0.25s; }

    .menu a {
        display: block;
        width: 100%;
        padding: 20px;
        font-size: 24px;
        font-weight: 600;
        border-radius: 0;
        color: var(--text-dark);
    }

    .menu a::after {
        display: none;
    }

    .menu a:hover {
        background-color: rgba(0, 102, 255, 0.1);
        color: var(--primary-blue);
    }

    .page-content h1 {
        font-size: 32px;
    }

    .page-content p {
        font-size: 18px;
    }
}
