/* =========================================
   ALAPOK
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --bg-dark: #08130e;
    --bg-green: #0d2118;
    --bg-card: #12291e;
    --bg-card-light: #183a28;

    --green: #4ade80;
    --green-dark: #166534;
    --green-light: #86efac;

    --yellow: #facc15;
    --orange: #f59e0b;

    --white: #f5f7f5;
    --text: #d1ddd5;
    --muted: #8fa397;

    --border: rgba(255, 255, 255, 0.1);

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    --radius: 24px;
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================
   NAVBAR + HERO
========================================= */

.hero {
    min-height: 100vh;

    background:
        linear-gradient(
            90deg,
            rgba(4, 14, 9, 0.95) 0%,
            rgba(4, 14, 9, 0.75) 45%,
            rgba(4, 14, 9, 0.25) 100%
        ),
        linear-gradient(
            0deg,
            rgba(8, 19, 14, 0.9) 0%,
            transparent 40%
        ),
        url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1920&q=80");

    background-size: cover;
    background-position: center;

    position: relative;
}




/* finom zöld fény a háttérben */

.hero::before {
    content: "";

    position: absolute;
    width: 500px;
    height: 500px;

    background: rgba(74, 222, 128, 0.12);
    filter: blur(120px);

    top: 15%;
    right: 5%;

    pointer-events: none;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    width: min(1200px, 90%);
    margin: auto;

    padding: 28px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;

    color: var(--white);

    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 35px;

    list-style: none;
}

.nav-links a {
    color: #dce8df;

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--green);
}


/* =========================================
   HERO CONTENT
========================================= */

.hero-content {
    width: min(1200px, 90%);
    margin: auto;

    min-height: calc(100vh - 90px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
    z-index: 2;

    padding-bottom: 80px;
}

.hero-label {
    display: inline-block;

    color: var(--green-light);

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 20px;

    animation: fadeUp 0.8s ease both;
}

.hero h1 {
    max-width: 750px;

    font-family: 'Playfair Display', serif;

    font-size: clamp(4rem, 9vw, 8rem);

    line-height: 0.95;

    color: var(--white);

    letter-spacing: -4px;

    margin-bottom: 30px;

    animation: fadeUp 0.9s ease 0.1s both;
}

.hero-content > p {
    max-width: 570px;

    font-size: 1.15rem;

    color: #c0cec5;

    margin-bottom: 35px;

    animation: fadeUp 1s ease 0.2s both;
}


/* =========================================
   GOMBOK
========================================= */

.hero-button,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    padding: 14px 25px;

    border-radius: 999px;

    background: var(--green);

    color: #06210f;

    font-weight: 800;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;

    animation: fadeUp 1s ease 0.3s both;
}

.hero-button:hover,
.cta-button:hover {
    transform: translateY(-4px);

    background: var(--green-light);

    box-shadow:
        0 10px 35px rgba(74, 222, 128, 0.3);
}


/* =========================================
   ÁLTALÁNOS SECTION
========================================= */

.section {
    width: min(1200px, 90%);
    margin: auto;

    padding: 120px 0;
}

.section-tag {
    color: var(--green);

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;

    display: block;

    margin-bottom: 12px;
}

.section h2 {
    font-family: 'Playfair Display', serif;

    color: var(--white);

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    line-height: 1.05;

    letter-spacing: -1.5px;

    margin-bottom: 25px;
}

.section-content > p {
    color: var(--muted);

    margin-bottom: 18px;

    font-size: 1.02rem;
}


/* =========================================
   INTRO / ÉLŐHELY
========================================= */

.intro,
.habitat {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.section-image {
    overflow: hidden;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    position: relative;
}

.section-image::after {
    content: "";

    position: absolute;

    inset: 0;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: inherit;

    pointer-events: none;
}

.section-image img {
    height: 560px;

    object-fit: cover;

    transition: transform 0.7s ease;
}

.section-image:hover img {
    transform: scale(1.05);
}


/* =========================================
   INFO CARDS
========================================= */

.info-cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-top: 35px;
}

.info-card {
    padding: 20px 15px;

    background: rgba(255,255,255,0.04);

    border: 1px solid var(--border);

    border-radius: 18px;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-6px);

    background: rgba(74, 222, 128, 0.08);

    border-color: rgba(74, 222, 128, 0.3);
}

.info-card span {
    font-size: 1.7rem;

    display: block;

    margin-bottom: 10px;
}

.info-card h3 {
    color: var(--white);

    font-size: 0.85rem;

    margin-bottom: 3px;
}

.info-card p {
    color: var(--muted);

    font-size: 0.75rem;

    line-height: 1.4;
}


/* =========================================
   HABITAT
========================================= */

.habitat {
    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(22, 101, 52, 0.15),
            transparent 35%
        );
}

.feature-list {
    list-style: none;

    margin-top: 30px;

    display: flex;
    flex-direction: column;

    gap: 13px;
}

.feature-list li {
    color: #cbd8cf;

    padding: 12px 16px;

    background: rgba(255,255,255,0.035);

    border-radius: 12px;

    border-left: 3px solid var(--green);

    transition: transform 0.25s ease;
}

.feature-list li:hover {
    transform: translateX(8px);
}


/* =========================================
   SECTION HEADING
========================================= */

.section-heading {
    max-width: 700px;

    margin-bottom: 55px;
}


/* =========================================
   ÉRDEKESSÉGEK
========================================= */

.facts {
    width: 100%;

    max-width: none;

    padding-left: max(5%, calc((100% - 1200px) / 2));
    padding-right: max(5%, calc((100% - 1200px) / 2));

    background:
        linear-gradient(
            135deg,
            #0b1d13,
            #10291c
        );
}

.facts-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.fact-card {
    min-height: 300px;

    padding: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.06),
            rgba(255,255,255,0.025)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.fact-card:hover {
    transform: translateY(-10px);

    border-color: rgba(74,222,128,0.35);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.25);
}

.fact-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    background: rgba(74,222,128,0.1);

    border-radius: 17px;

    font-size: 1.6rem;

    margin-bottom: 35px;
}

.fact-card h3 {
    color: var(--white);

    font-size: 1.2rem;

    margin-bottom: 12px;
}

.fact-card p {
    color: var(--muted);

    font-size: 0.9rem;
}


/* =========================================
   NAGY KÉP / QUOTE
========================================= */

.quote-section {
    min-height: 600px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            rgba(4, 13, 8, 0.6),
            rgba(4, 13, 8, 0.85)
        ),
        url("https://upload.wikimedia.org/wikipedia/commons/9/91/Hemicentetes_semispinosus_tsora.jpg");

    background-size: cover;
    background-position: center;

    background-attachment: fixed;

    position: relative;
}


.quote-overlay {
    width: min(850px, 90%);

    position: relative;
    z-index: 2;
}

.quote-overlay span {
    color: var(--green-light);

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 4px;
}

.quote-overlay h2 {
    margin-top: 20px;

    font-family: 'Playfair Display', serif;

    font-size: clamp(2.5rem, 6vw, 5.5rem);

    line-height: 1;

    color: white;

    letter-spacing: -2px;
}


/* =========================================
   GALÉRIA
========================================= */

.gallery {
    padding-bottom: 130px;
}

.gallery-grid {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr 0.8fr;

    grid-template-rows: 280px 280px;

    gap: 16px;
}

.gallery-item {
    overflow: hidden;

    border-radius: 20px;

    position: relative;

    background: var(--bg-card);
}

.gallery-item:first-child {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);

    filter: brightness(0.7);
}

.gallery-item figcaption {
    position: absolute;

    bottom: 20px;
    left: 20px;

    color: white;

    font-weight: 700;

    opacity: 0;

    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.gallery-item:hover figcaption {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================
   KVÍZ
========================================= */

.interactive {
    max-width: 900px;

    text-align: center;
}

#quiz {
    padding: 45px;

    background:
        linear-gradient(
            145deg,
            #11291b,
            #0b1b12
        );

    border: 1px solid var(--border);

    border-radius: 30px;

    box-shadow: var(--shadow);
}

.quiz-question h3 {
    color: var(--white);

    font-size: 1.5rem;

    margin-bottom: 30px;
}

.quiz-answers {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.quiz-answers button {
    padding: 16px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: rgba(255,255,255,0.04);

    color: #dce7df;

    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.quiz-answers button:hover {
    background: rgba(74,222,128,0.12);

    border-color: var(--green);

    transform: translateY(-3px);
}

.quiz-result {
    margin-top: 25px;

    min-height: 25px;

    font-weight: 700;
}


/* =========================================
   CTA
========================================= */

.cta {
    padding: 120px 20px;

    text-align: center;

    background:
        radial-gradient(
            circle,
            rgba(74,222,128,0.12),
            transparent 55%
        ),
        #0b1b12;
}

.cta h2 {
    max-width: 800px;

    margin: 0 auto 20px;

    color: white;

    font-family: 'Playfair Display', serif;

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    line-height: 1.05;
}

.cta p {
    color: var(--muted);

    margin-bottom: 30px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 60px 5% 25px;

    background: #050d08;

    border-top: 1px solid var(--border);
}

.footer-content {
    width: min(1200px, 100%);

    margin: auto;

    display: flex;

    justify-content: space-between;

    gap: 40px;

    padding-bottom: 45px;
}

.footer-content h3 {
    color: white;

    margin-bottom: 10px;
}

.footer-content p {
    max-width: 400px;

    color: var(--muted);

    font-size: 0.85rem;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 25px;
}

.footer-links a {
    color: var(--muted);

    font-size: 0.85rem;

    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--green);
}

.copyright {
    padding-top: 25px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: #607267;

    font-size: 0.75rem;
}


/* =========================================
   ANIMÁCIÓK
========================================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   RESZPONZÍV - TABLET
========================================= */

@media (max-width: 900px) {

    .nav-links {
        gap: 15px;
    }

    .intro,
    .habitat {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .habitat .section-image {
        order: -1;
    }

    .facts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;

        grid-template-rows: 300px 300px;
    }

    .gallery-item:first-child {
        grid-column: span 2;

        grid-row: span 1;
    }

}


/* =========================================
   RESZPONZÍV - MOBIL
========================================= */

@media (max-width: 600px) {

    .navbar {
        padding: 20px 0;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 90vh;

        background-position: 60% center;
    }

    .hero-content {
        min-height: calc(90vh - 70px);

        justify-content: flex-end;

        padding-bottom: 70px;
    }

    .hero h1 {
        font-size: 4rem;

        letter-spacing: -2px;
    }

    .hero-content > p {
        font-size: 0.95rem;
    }

    .section {
        padding: 80px 0;
    }

    .section h2 {
        font-size: 2.7rem;
    }

    .section-image img {
        height: 400px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .facts {
        padding-left: 5%;
        padding-right: 5%;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .fact-card {
        min-height: auto;
    }

    .quote-section {
        min-height: 500px;

        background-attachment: scroll;
    }

    .gallery-grid {
        display: grid;

        grid-template-columns: 1fr;

        grid-template-rows: repeat(3, 280px);
    }

    .gallery-item:first-child {
        grid-column: auto;

        grid-row: auto;
    }

    #quiz {
        padding: 25px 18px;
    }

    .quiz-answers {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;

        align-items: flex-start;
    }

}
















/* =========================================
   5/5 TENREK KÉPESŐ
========================================= */

.tenrec-rain {
    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    z-index: 9999;

    pointer-events: none;

    overflow: hidden;

    animation: tenrecRainAppear 0.5s ease forwards;
}

.flying-tenrec {
    position: absolute;

    height: auto;

    border-radius: 20px;

    object-fit: cover;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5);

    border: 3px solid rgba(134, 239, 172, 0.7);

    animation:
        tenrecFly 3s ease-in-out infinite alternate;

    will-change: transform;
}


/* Képek össze-vissza mozognak */

@keyframes tenrecFly {

    0% {
        transform:
            translate(
                -30px,
                -20px
            )
            rotate(-15deg)
            scale(0.9);
    }

    25% {
        transform:
            translate(
                50px,
                40px
            )
            rotate(12deg)
            scale(1.05);
    }

    50% {
        transform:
            translate(
                -40px,
                70px
            )
            rotate(-8deg)
            scale(0.95);
    }

    75% {
        transform:
            translate(
                70px,
                -50px
            )
            rotate(18deg)
            scale(1.1);
    }

    100% {
        transform:
            translate(
                -20px,
                30px
            )
            rotate(-20deg)
            scale(0.9);
    }

}


/* Megjelenés */

@keyframes tenrecRainAppear {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


/* Eltűnés */

.tenrec-rain-hide {
    animation:
        tenrecRainDisappear 1s ease forwards;
}


@keyframes tenrecRainDisappear {

    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: scale(1.1);
    }

}


/* Mobilon kisebb képek */

@media (max-width: 600px) {

    .flying-tenrec {
        width: 90px !important;

        border-radius: 14px;
    }

}



/* =========================================
   NYELVVÁLTÓ GOMB
========================================= */

.language-toggle {
    padding: 10px 16px;

    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 999px;

    background: rgba(74, 222, 128, 0.08);

    color: var(--green-light);

    font-size: 0.8rem;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.language-toggle:hover {
    background: rgba(74, 222, 128, 0.18);

    border-color: var(--green);

    transform: translateY(-2px);
}

@media (max-width: 600px) {

    .language-toggle {
        display: block;

        padding: 8px 13px;

        font-size: 0.75rem;
    }

}