/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Dongle:wght@300;400;700&display=swap');

/* ===== ROOT & VARIABLES ===== */
:root {
    --primary-green: #2d5016;
    --light-green: #4a7c2e;
    --bright-green: #6fa342;
    --pale-green: #a8c686;
    --light-bg: #f5f7f1;
    --cream: #faf9f6;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --accent-yellow: #e8d565;
    --accent-brown: #8b6f47;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --header-height: 88px; /* header + feedback banner hoogte */
}

/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Dongle', sans-serif;
    font-weight: 700;
    line-height: 0.2;
}

/* ===== FOREST BACKGROUND ===== */
.forest-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #faf9f6 0%, #f5f7f1 50%, #e8f1e0 100%);
    pointer-events: none;
}

/* ===== DECORATIEVE BLADEREN ===== */
.deco-leaf {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
}

.deco-leaf-topright {
    top: -30px !important;
    right: -30px;
    width: 380px;
}

.deco-leaf-mid {
    top: 38%;
    left: -40px;
    width: 200px;
    transform: rotate(-20deg) scaleX(-1);
    animation: floatLeaf 9s ease-in-out infinite;
    opacity: 0.13;
}

.deco-leaf-bottom {
    bottom: 8%;
    right: -20px;
    width: 220px;
    transform: rotate(30deg);
    animation: floatLeaf 11s ease-in-out infinite;
    opacity: 0.12;
}

@keyframes floatLeaf {
    0%, 100% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-18px) rotate(18deg); }
}

/* ===== STICKY TOP (header + feedback banner samen) ===== */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 200;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #2d5016 0%, #3d6b20 100%);
    padding: 0.4rem 2rem;
    box-shadow: 0 2px 16px rgba(45, 80, 22, 0.25);
    border-bottom: 2px solid var(--bright-green);
}

.header-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
}

.logo h1 {
    font-family: 'Dongle', sans-serif;
    font-size: 2.6rem;
    font-weight: 400;
    letter-spacing: 0px;
    color: #fff;
    line-height: 1;
    text-transform: lowercase;
}

/* ===== FEEDBACK BANNER ===== */
.feedback-banner {
    background: #f5f7f1;
    border-bottom: 2px solid var(--light-green);
    padding: 0.45rem 2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.feedback-banner p {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin: 0;
}

.feedback-banner a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--primary-green);
    cursor: pointer;
}

.feedback-banner a:hover {
    color: var(--bright-green);
    border-bottom-color: var(--bright-green);
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

/* ===== SECTIONS ===== */
section {
    margin-bottom: 4rem;
    position: relative;
}

section h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    line-height: 1;
}

section h3 {
    font-size: 2rem;
    color: var(--light-green);
    margin: 1.5rem 0 0.75rem;
    line-height: 1;
}

.image-credit {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    font-style: italic;
}

/* ===== DISCOVERY HERO ===== */
.discovery-hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideInDown 0.6s ease;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.discovery-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: bounce 0.6s ease;
    line-height: 1;
    color: var(--primary-green);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.location-inline {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.insect-showcase {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.insect-image {
    max-width: 380px;
    max-height: 380px;
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 12px 30px rgba(45, 80, 22, 0.18));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

/* ===== HABITAT EXPLORER ===== */
.habitat-explorer {
    margin-bottom: 4rem;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.habitat-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.habitat-card {
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--pale-green);
}

.habitat-image {
    position: relative;
    display: flex;
    flex-direction: column;
}

.habitat-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.1);
    min-height: 300px;
    max-height: 400px;
}

.habitat-content h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.habitat-content > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ===== INTERACTIEVE INFO TOGGLE (accordion) ===== */
.info-section {
    margin-bottom: 0.5rem;
}

.info-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--pale-green);
    background: rgba(107, 163, 66, 0.06);
    transition: var(--transition);
    user-select: none;
    margin-bottom: 0;
}

.info-toggle:hover {
    background: rgba(107, 163, 66, 0.14);
    border-color: var(--bright-green);
}

.info-toggle.open {
    background: rgba(107, 163, 66, 0.14);
    border-color: var(--light-green);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.toggle-icon {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--light-green);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.info-toggle h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green);
    line-height: 1.3;
    margin: 0;
}

.info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--light-green);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 0 0.9rem;
    margin-bottom: 0.75rem;
}

.info-content.open {
    max-height: 300px;
    padding: 0.75rem 0.9rem;
}

.info-content p {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.info-content p strong {
    color: var(--primary-green);
}

/* ===== INTERACTIEVE INFO KAARTEN ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.info-card {
    background: rgba(107, 163, 66, 0.08);
    border: 2px solid var(--pale-green);
    border-radius: 10px;
    padding: 0.9rem 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    border-color: var(--bright-green);
    background: rgba(107, 163, 66, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(45, 80, 22, 0.12);
}

.info-card.flipped {
    background: var(--light-green);
    border-color: var(--light-green);
    color: white;
}

.info-card.danger-card {
    background: rgba(220, 53, 69, 0.05);
    border-color: #f5a0a8;
}

.info-card.danger-card.flipped {
    background: #c0392b;
    border-color: #c0392b;
}

.info-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.info-card-front strong {
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.info-icon {
    font-size: 1.5rem;
    display: block;
}

.info-card-back {
    display: none;
}

.info-card-back p {
    font-size: 0.78rem;
    line-height: 1.4;
    color: white;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.info-card.flipped .info-card-front {
    display: none;
}

.info-card.flipped .info-card-back {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ===== PROGRESS TRACKER ===== */
.progress-tracker {
    margin-bottom: 4rem;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.progress-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 1.5rem 1rem;
    border-radius: 14px;
    text-align: center;
    border: 2px solid var(--pale-green);
    transition: var(--transition);
}

.progress-item.found {
    background: linear-gradient(135deg, rgba(107, 163, 66, 0.15), rgba(168, 198, 134, 0.1));
    border-color: var(--bright-green);
}

.progress-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(45, 80, 22, 0.12);
}

/* Foto-wrapper */
.progress-photo-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--pale-green);
    background: rgba(255,255,255,0.6);
}

.progress-photo-wrap.found-wrap {
    border-color: var(--bright-green);
    box-shadow: 0 0 0 4px rgba(107, 163, 66, 0.2);
}

.progress-photo-wrap.not-found-wrap {
    background: #f0f0f0;
}

.progress-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Silhouet: maak de foto volledig zwart */
.progress-photo.silhouette {
    filter: brightness(0) saturate(100%);
    object-fit: contain;
    padding: 8px;
}

/* Gevonden: geen silhouet */
.progress-photo:not(.silhouette) {
    filter: none;
}

.progress-item h3 {
    font-size: 1.4rem;
    margin: 0.25rem 0 0.2rem;
    color: var(--primary-green);
    text-transform: lowercase;
}

.progress-name.blurred-name {
    filter: blur(5px);
    user-select: none;
    color: #aaa;
}

.progress-status {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.progress-item.found .progress-status {
    color: var(--bright-green);
    font-weight: 700;
}

.progress-message {
    text-align: center;
    color: var(--text-light);
    margin-top: 1.5rem;
    font-style: italic;
    font-size: 0.95rem;
}

/* ===== CONTRIBUTION SECTION ===== */
.contribution-section {
    margin-bottom: 4rem;
}

.contribution-title {
    font-size: 3.8rem !important;
    margin-bottom: 1.5rem !important;
}

/* ===== FAUNA COUNTER CARD ===== */
.fauna-counter-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 14px;
    border: 2px solid var(--pale-green);
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(45, 80, 22, 0.08);
}

.counter-card-inner {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.counter-beetle-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-beetle-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bright-green);
    box-shadow: 0 4px 16px rgba(45, 80, 22, 0.15);
}

.counter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.counter-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    text-align: center;
}

.counter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-green);
    margin: 0;
}

.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(74, 124, 46, 0.05);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    width: 100%;
}

.counter button {
    background: var(--light-green);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    line-height: 1;
}

.counter button:hover {
    background: var(--bright-green);
    transform: scale(1.1);
}

.counter input {
    width: 50px;
    text-align: center;
    font-size: 1.3rem;
    border: 2px solid var(--light-green);
    padding: 0.3rem;
    border-radius: 6px;
    font-weight: 700;
    background: white;
    font-family: 'Poppins', sans-serif;
}

.counter-note {
    font-size: 0.78rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.submit-btn {
    background: linear-gradient(135deg, var(--bright-green), var(--light-green));
    color: white;
    border: none;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(45, 80, 22, 0.2);
}

.community-display {
    background: linear-gradient(135deg, rgba(107, 163, 66, 0.1), rgba(168, 198, 134, 0.08));
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    width: 100%;
}

.big-number-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.big-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bright-green);
    margin: 0;
    line-height: 1.1;
    font-family: 'Dongle', sans-serif;
}

.big-number-unit {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.spoorpark-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0.2rem 0 0;
}

/* Submit success bericht gecentreerd */
.submit-success {
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(107, 163, 66, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--bright-green);
    font-weight: 500;
    color: var(--primary-green);
    font-size: 0.95rem;
    animation: fadeInUp 0.4s ease;
}

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

/* ===== PHOTO TIMELINE ===== */
.photo-timeline-section {
    margin-top: 2.5rem;
}

.photo-timeline-section h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.photo-timeline-section > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.timeline-item {
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.1);
}

.timeline-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(107, 163, 66, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.timeline-date {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.6rem;
    padding: 0 0.25rem;
}

/* ===== PHOTO UPLOAD ===== */
.photo-upload-area {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px dashed var(--pale-green);
}

.photo-upload-area h4 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem 0;
}

.name-input-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
}

.name-input-row label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-green);
    white-space: nowrap;
}

.name-input {
    border: 2px solid var(--pale-green);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    flex: 1;
    min-width: 150px;
}

.name-input:focus {
    border-color: var(--bright-green);
    box-shadow: 0 0 0 3px rgba(107, 163, 66, 0.15);
}

.upload-box {
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed var(--light-green);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.upload-box:hover {
    background: rgba(107, 163, 66, 0.05);
    border-color: var(--bright-green);
}

.upload-box svg {
    margin-bottom: 0.75rem;
}

.upload-box p {
    margin: 0.4rem 0;
    font-size: 0.9rem;
}

.upload-note {
    font-size: 0.8rem;
    color: var(--text-light);
}

#photo-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

#preview-img {
    max-width: 100%;
    max-height: 260px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(45, 80, 22, 0.1);
    object-fit: contain;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary {
    background: rgba(74, 124, 46, 0.1);
    color: var(--light-green);
    border: 2px solid var(--light-green);
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-secondary:hover {
    background: var(--light-green);
    color: white;
}

/* ===== FEEDBACK BOOKMARK ===== */
/* Klein icoontje altijd zichtbaar rechts in het midden.
   Na 8 seconden OF 40% scroll: klapt volledig uit met label */
.feedback-bookmark {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 400;
}

.feedback-bookmark-btn {
    background: linear-gradient(135deg, var(--bright-green), var(--light-green));
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    box-shadow: -4px 4px 14px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    gap: 0.2rem;
    overflow: hidden;
}

.feedback-bookmark-btn:hover {
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    box-shadow: -6px 6px 18px rgba(0, 0, 0, 0.25);
}

.fb-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.fb-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

/* Uitgebreide staat: label zichtbaar */
.feedback-bookmark.expanded .fb-label {
    max-height: 30px;
    opacity: 1;
}

.feedback-bookmark.expanded .feedback-bookmark-btn {
    padding: 0.75rem 0.75rem;
}

/* ===== CONCEPT PAGE ===== */
.concept-page main { padding: 2rem; }
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}
.hero-content h2 { font-size: 3rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.1rem; color: var(--text-light); line-height: 1.8; }
.hero-image { width: 100%; border-radius: 12px; object-fit: cover; max-height: 400px; box-shadow: 0 12px 40px rgba(45, 80, 22, 0.15); }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 2rem; }
.step-card { background: rgba(255, 255, 255, 0.7); padding: 1.5rem; border-radius: 12px; border: 2px solid var(--pale-green); text-align: center; transition: var(--transition); }
.step-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(45, 80, 22, 0.12); }
.step-number { display: inline-block; width: 50px; height: 50px; background: var(--bright-green); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: bold; margin-bottom: 1rem; }
.step-card h3 { font-size: 1.5rem; margin: 0.5rem 0; }

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #2d5016 0%, #3d6b20 100%);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.footer-section a:hover {
    border-bottom-color: var(--accent-yellow);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-credits {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .habitat-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-card-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .counter-beetle-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 2.5rem;
    }

    section h3 {
        font-size: 1.5rem;
    }

    .discovery-title {
        font-size: 2.5rem;
    }

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

    .info-cards {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: 70px;
    }

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

    .habitat-photo {
        min-height: 200px;
    }

    .name-input-row {
        flex-wrap: wrap;
    }

    .name-input {
        min-width: 100%;
    }

    .logo h1 {
        font-size: 2rem;
    }

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

    .deco-leaf-topright {
        width: 200px;
    }

    .deco-leaf-bottom {
        width: 150px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1.5rem 1rem;
    }

    section {
        margin-bottom: 2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .discovery-title {
        font-size: 1.8rem;
    }

    .location-inline {
        font-size: 0.95rem;
    }

    .insect-showcase {
        min-height: 200px;
    }

    .insect-image {
        max-width: 280px;
        max-height: 280px;
    }

    .info-icon {
        font-size: 1.2rem;
    }

    .info-card-front strong {
        font-size: 0.75rem;
    }

    .progress-item {
        padding: 1rem;
    }

    .progress-photo-wrap {
        width: 90px;
        height: 90px;
    }

    .progress-item h3 {
        font-size: 1.1rem;
    }

    .counter-label {
        font-size: 0.8rem;
    }

    .counter button {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }

    .counter input {
        width: 45px;
        font-size: 1.1rem;
    }

    .big-number {
        font-size: 2.2rem;
    }

    .upload-box {
        padding: 1.5rem;
    }

    .name-input-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .name-input-row label {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .name-input {
        width: 100%;
        min-width: unset;
    }

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

    .feedback-banner {
        padding: 0.35rem 1rem;
    }

    .feedback-banner p {
        font-size: 0.75rem;
    }

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

    .deco-leaf-topright {
        width: 250px;
    }
}
