:root {
    --primary-color: #a4894f;
    --secondary-color: #bad0e0;
    --accent-color: #2c220f;
    --background-color: #5a3a16;
    --text-color: #fff;
}

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

body {
    margin: 0;
    font-family: 'Playfair Display', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('images/GeminiLeaoPordoSol.jpeg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    animation: fadeInBlur 2.5s ease-in;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--background-color));
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0;
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 2s ease-in forwards;
    animation-delay: 0.5s;
}

.hero p {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    margin: 20px 0;
    opacity: 0;
    font-style: italic;
    animation: fadeInSlide 2s ease-in forwards;
    animation-delay: 1s;
}

.hero button {
    background-color: transparent;
    border: 2px solid white;
    padding: clamp(10px, 2.5vw, 15px) clamp(20px, 4vw, 30px);
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 2s ease-in forwards;
    animation-delay: 1.5s;
}

.hero button:hover {
    background-color: white;
    color: var(--accent-color);
    transform: translateY(-5px);
}

.section {
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
    opacity: 0;
    animation: fadeInSlide 1.2s ease-in forwards;
    animation-delay: 0.3s;
    position: relative;
}

.section h2,
p {
    margin-bottom: 30px;
}

.intro,
.features,
.habitat,
.culture,
.conservation,
.galleryimg,
.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.intro img,
.conservation img {
    width: 100%;
    max-width: 1400px;
    height: clamp(400px, 60vw, 600px);
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.intro img:hover,
.conservation img:hover {
    transform: scale(1.02);
}

.conservation img {
    object-position: center;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(20px, 3vw, 40px);
    margin-top: 30px;
    padding: clamp(10px, 2vw, 20px);
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    color: var(--accent-color);
    opacity: 0;
    animation: fadeInScale 1s ease-in forwards;
    animation-delay: calc(var(--card-order) * 0.3s);
    transition: transform 0.4s ease;
    width: 100%;
}

.features .card,
.habitat .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: clamp(15px, 3vw, 30px);
    margin: clamp(5px, 1vw, 10px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.features .card:hover,
.habitat .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .features .card,
    .habitat .card {
        width: 100%;
        margin: 8px 0;
        padding: clamp(12px, 2.5vw, 25px);
    }
}

@media (max-width: 480px) {
    .cards-container {
        gap: 15px;
    }

    .features .card,
    .habitat .card {
        padding: 15px;
        margin: 5px 0;
    }
}

.features .card i {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.features .card:hover i {
    transform: scale(1.2);
}

.cta {
    background: linear-gradient(135deg, var(--accent-color), var(--background-color));
    color: white;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
    border-radius: 0 50px 0 0;
}

.cta button {
    background: transparent;
    border: 2px solid white;
    padding: clamp(15px, 3vw, 20px) clamp(30px, 5vw, 40px);
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.cta button:hover {
    background-color: white;
    color: var(--accent-color);
    transform: translateY(-5px);
}

.gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    gap: 10px;
    scrollbar-width: none;
    align-items: center;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery img {
    width: calc(100% / 3.5);
    height: 600px;
    scroll-snap-align: start;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;

}

@media screen and (max-width: 1024px) {
    .gallery img {
        width: calc(100% / 2.2);
    }

}

@media screen and (max-width: 768px) {
    .gallery img {
        width: calc(100% / 1.2);
    }

}

@keyframes fadeInBlur {
    from {
        opacity: 0;
        filter: blur(10px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}