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

:root {
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-subheading: 'Poppins', sans-serif;
    --color-text: #2d2d2d;
    --color-primary: #2d5016;
    --color-secondary: #4a7c30;
    --color-light: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--color-text);
    background: #f9f9f7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    margin: 0;
}

header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

nav {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

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

.nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(10deg);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.logo:hover .logo-text {
    color: #1f3a0f;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

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

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

.nav-links a.active {
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #2d2d2d;
    transition: all 0.3s;
}

.page-header {
    position: relative;
    text-align: center;
    padding: 10rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/wildlife expedition.jpeg') center 30%/cover no-repeat;
    margin-bottom:3rem;
}

.page-header h1 {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.page-header p {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.gallery-intro {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.gallery-intro p {
    font-family: var(--font-primary);
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.gallery-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #4a6b3a 0%, #2d5016 100%);
    color: rgba(255,255,255,0.9);
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 2rem 1.5rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.caption-title {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

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

.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-tag {
    padding: 0.6rem 1.5rem;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95rem;
    color: #2d2d2d;
    font-weight: 500;
    transition: all 0.3s;
}

.category-tag:hover {
    border-color: #2d5016;
    color: #2d5016;
}

footer {
    background: #2d2d2d;
    color: #ccc;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    font-size: 0.9rem;
}

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

.gallery-item {
    transition: all 0.3s ease;
}

.category-tag {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.category-tag.active {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Style du logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 50%;
    border: 2px solid #2d5016;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(10deg);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d5016;
    font-family: var(--font-subheading);
    transition: var(--transition);
}

/* Media Queries for responsive logo text */
@media (max-width: 1024px) {
    .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        padding: 0.5rem;
        border-radius: var(--radius-sm);
        transition: all 0.3s ease;
    }

    .hamburger span {
        width: 25px;
        height: 2px;
        background: #2d2d2d;
        transition: all 0.3s ease;
        transform-origin: center;
    }

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

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

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

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: 300px;
    }

    .nav-links li {
        padding: 0.8rem 2rem;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .gallery-container {
        padding: 3rem 1.5rem;
    }

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

    .gallery-item {
        aspect-ratio: 4/3;
        border-radius: var(--radius-md);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--radius-md);
    }

    .gallery-caption {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4));
    }

    .gallery-item {
        aspect-ratio: 4/3;
        border-radius: 4px;
        box-shadow: none;
        border: 1px solid rgba(0,0,0,0.1);
        overflow: hidden;
        background: #fff;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
        transition: transform 0.3s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.02);
    }

    .gallery-caption {
        display: none;
    }

    .gallery-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .category-tag {
        padding: 0.5rem 1rem;
        background: #fff;
        border: 2px solid #e0e0e0;
        border-radius: 20px;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .category-tag:hover {
        border-color: #2d5016;
        color: #2d5016;
        transform: translateY(-2px);
    }

    .category-tag.active {
        background-color: #4CAF50;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}