@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
    --dark: #07120c;
    --forest: #10271a;
    --green: #193d27;
    --lime: #d7ff4f;
    --cream: #f1f0e8;
    --gray: #9ca9a0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--cream);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

h1,
h2,
h3,
.logo {
    font-family: "Bebas Neue", sans-serif;
}

.header {
    width: 100%;
    height: 85px;
    padding: 0 7%;
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo {
    font-size: 30px;
    letter-spacing: 2px;
}

.logo span,
h1 span,
h2 span {
    color: var(--lime);
}

.header nav {
    display: flex;
    gap: 45px;
    margin: auto;
}

.header nav a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}

.header nav a:hover {
    color: var(--lime);
}

.header-button {
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero {
    min-height: 100vh;
    padding: 140px 7% 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    background:
        radial-gradient(circle at 75% 45%, #2b5938, transparent 35%),
        linear-gradient(120deg, #07120c, #112b1b);
}

.subtitle {
    margin-bottom: 22px;
    color: #c2ccc5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.subtitle::first-letter {
    color: var(--lime);
}

.hero h1 {
    font-size: clamp(80px, 10vw, 155px);
    line-height: 0.8;
    font-weight: 400;
}

.hero-text {
    max-width: 560px;
    margin: 35px 0;
    color: #b4beb7;
    font-size: 17px;
    line-height: 1.8;
}

.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    padding: 18px 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: 0.3s;
}

.button:hover {
    transform: translateY(-4px);
}

.primary {
    border-color: var(--lime);
    background: var(--lime);
    color: var(--dark);
}

.secondary:hover {
    background: var(--cream);
    color: var(--dark);
}

.hero-image {
    position: relative;
    height: 650px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 92%);
}

.badge {
    position: absolute;
    right: 5%;
    bottom: 8%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(8deg);
    text-align: center;
}

.badge strong {
    font-family: "Bebas Neue", sans-serif;
    font-size: 50px;
    line-height: 0.8;
}

.badge span {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 7%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.numbers article {
    padding: 45px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.numbers strong {
    display: block;
    color: var(--lime);
    font-family: "Bebas Neue", sans-serif;
    font-size: 48px;
}

.numbers span {
    color: var(--gray);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section {
    padding: 120px 7%;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    align-items: end;
    gap: 60px;
    margin-bottom: 65px;
}

.section-heading h2,
.facts-heading h2 {
    font-size: clamp(60px, 7vw, 110px);
    line-height: 0.9;
    font-weight: 400;
}

.section-heading > p {
    color: var(--gray);
    line-height: 1.8;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #102219;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--lime);
}

.card-image {
    height: 380px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    transition: 0.7s;
}

.card:hover img {
    transform: scale(1.07);
}

.number {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    background: var(--lime);
    color: var(--dark);
    font-weight: 800;
}

.card-content {
    padding: 28px;
}

.card-content small {
    color: var(--lime);
    letter-spacing: 2px;
}

.card-content h3 {
    margin: 12px 0;
    font-size: 45px;
    font-weight: 400;
}

.card-content p {
    min-height: 75px;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.7;
}

.card-content a {
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.habitat {
    padding: 120px 7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    background: #e9e9df;
    color: var(--dark);
}

.habitat-image {
    height: 720px;
    box-shadow: 25px 25px #ccd2c7;
}

.habitat h2 {
    font-size: clamp(65px, 7vw, 105px);
    line-height: 0.9;
    font-weight: 400;
}

.habitat-content > p {
    margin: 28px 0;
    color: #5f6b63;
    line-height: 1.8;
}

.habitat-point {
    display: flex;
    gap: 25px;
    padding: 22px 0;
    border-top: 1px solid #c2c8bf;
}

.habitat-point b {
    color: #3c7048;
    font-family: "Bebas Neue", sans-serif;
    font-size: 27px;
}

.habitat-point h3 {
    font-size: 24px;
}

.habitat-point p {
    color: #6d776f;
    font-size: 13px;
}

.dark-button {
    margin-top: 25px;
    border-color: var(--dark);
}

.dark-button:hover {
    background: var(--dark);
    color: white;
}

.facts {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 100px;
    background: #09170f;
}

.fact-list article {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 25px;
    align-items: center;
    padding: 35px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.fact-list article:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.fact-list b {
    color: var(--lime);
    font-family: "Bebas Neue", sans-serif;
    font-size: 28px;
}

.fact-list h3 {
    font-size: 35px;
    line-height: 1;
}

.fact-list p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.7;
}

.gallery {
    background: var(--forest);
}

.category-buttons button {
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.category-buttons button:hover,
.category-buttons button:first-child {
    border-color: var(--lime);
    background: var(--lime);
    color: var(--dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-auto-rows: 330px;
    gap: 16px;
}

.gallery-grid figure {
    position: relative;
    overflow: hidden;
}

.gallery-large {
    grid-column: span 2;
}

.gallery-grid img {
    transition: 0.7s;
}

.gallery-grid figure:hover img {
    transform: scale(1.07);
}

.gallery-grid figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 50px 22px 22px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.protection {
    min-height: 650px;
    padding: 120px 7%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle, #31583b, transparent 55%),
        #09170f;
    text-align: center;
}

.protection h2 {
    font-size: clamp(75px, 9vw, 140px);
    line-height: 0.85;
    font-weight: 400;
}

.protection > p:not(.subtitle) {
    max-width: 650px;
    margin: 35px auto;
    color: #bdc7c0;
    line-height: 1.8;
}

footer {
    padding: 70px 7% 25px;
    background: #040a07;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    min-height: 150px;
}

.footer-content p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-links a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: var(--lime);
}

.copyright {
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #657067;
    font-size: 9px;
    letter-spacing: 2px;
}

@media (max-width: 900px) {
    .header nav,
    .header-button {
        display: none;
    }

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

    .hero-image {
        height: 500px;
    }

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

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

    .habitat,
    .facts {
        grid-template-columns: 1fr;
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

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

    .gallery-large {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 76px;
    }

    .hero-image {
        height: 400px;
    }

    .numbers article {
        padding: 25px 15px;
    }

    .section,
    .habitat,
    .protection {
        padding: 85px 6%;
    }

    .habitat-image {
        height: 450px;
    }

    .fact-list article {
        grid-template-columns: 40px 1fr;
    }

    .fact-list p {
        grid-column: 2;
    }

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

    .gallery-large {
        grid-column: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}