/* assets/style.css */

/* fonts */
@font-face {
    font-family: 'futura normal' ;
    src: url('fonts/Futura-STD/FuturaStd-Medium.otf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'futura bold' ;
    src: url('fonts/Futura-STD/FuturaStd-Bold.otf');
    font-weight: bold;
    font-style: bold;
}

@font-face {
    font-family: 'futura light' ;
    src: url('fonts/Futura-STD/FuturaStd-Light.otf');
    font-weight: lighter;
}

@font-face {
    font-family: 'futura cond_bold' ;
    src: url('fonts/Futura-STD/FuturaStd-CondensedBold.otf');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'futura heavy' ;
    src: url('fonts/Futura-STD/FuturaStd-Heavy.otf');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Graphik-Light';
    src: url('fonts/Graphik-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Graphik-Medium';
    src: url('fonts/Graphik-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Graphik-Regular';
    src: url('fonts/Graphik-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Graphik-Black';
    src: url('fonts/Graphik-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Graphik-Bold';
    src: url('fonts/Graphik-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
/* end fonts */

/* General Body Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'futura normal', sans-serif;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background-color: #f8e4c5e6 !important;
    position: fixed !important;
    width: 100%;
    z-index: 1000;
    min-height: 80px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 45px;
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-family: 'futura normal', sans-serif;
    margin-right: 10px;
    font-weight: 500;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #1e5367 !important;
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    height: auto;
    background-image: url("images/hero2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 40px;
}

/* ADDED: This new rule makes the hero logo responsive */
.hero-section .text-content .logo-img {
    max-width: 450px; /* Maximum size on large screens */
    width: 100%;      /* Shrinks to fit container on smaller screens */
    height: auto;     /* Maintains aspect ratio */
}

.title-header {
    font-family: 'Graphik-Bold', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #223c4e;
    line-height: 1.2;
}

.description-header {
    font-size: 1.6rem;
    color: #5b6168;
    word-spacing: 1px;
    font-family: "futura normal", sans-serif;
    line-height: 1.6;
}

.image-container {
    width: 100%;
    position: relative;
}

.topography-image {
    position: absolute;
    width: 180%;
    max-width: none;
    bottom: -30%;
    right: -45%;
    z-index: 1;
}

.bird-image {
    position: absolute;
    width: 30%;
    max-width: none;
    bottom: 70%;
    right: -25%;
    z-index: 1;
}

.header-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    z-index: 2;
}

.text-content {
    position: relative;
    z-index: 2;
}

.first-time-card {
    background-color: transparent;
    border-radius: 6px;
    padding: 12px 20px;
    border: 4px solid #534734;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 1.5rem;
}
.first-time-card:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}
.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-content p {
    color: #3674B5;
    font-size: 2.1rem;
    margin-bottom: 0;
    font-family: 'futura bold';
}
.card-content i {
    font-size: 2.2rem;
    color: #e2af21;
}


/* Counter Section */
.counter-section {
    min-height: 50vh;
    background-image: url("images/background_stat.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    padding: 4rem 0;
    position: relative;
    color: white;
}
.counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.counter-section .container {
    position: relative;
    z-index: 2;
}

.section-content {
    width: 100%;
    background: rgba(118, 119, 129, 0.096);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: 2rem auto;
}

.partenair-card {
    width: 100%;
    background: rgba(229, 229, 238, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: 2rem auto;
}
.partenair-card .partner-logo,
.partenair-card .partner-logo-dgf {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
}
.partenair-card .partner-logo-dgf {
    max-width: 180px;
}


.counter-item {
    padding: 2.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}
.counter-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f5f5f5;
    transition: transform 0.3s ease, color 0.3s ease;
}
.counter-item:hover i {
    transform: scale(1.1);
    color: #d8c175;
}
.counter-item .count {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'futura normal', sans-serif;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
    transition: color 0.3s ease;
}
.counter-item:hover .count {
    color: #d8c175;
}
.counter-item .title {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'futura normal', sans-serif;
    color: #ffffff;
    transition: color 0.3s ease;
}
.counter-item:hover .title {
    color: #d8c175;
}

.main-counter {
    margin-bottom: 3rem;
    text-align: center;
}
.main-counter .count {
    font-family: 'futura bold', sans-serif;
    font-size: 9rem;
    font-weight: bold;
    color: #e0dede;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.main-counter .title {
    font-family: 'futura bold', sans-serif;
    font-size: 3.5rem;
    color: #e0dede;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}


/* Map Section */
.map-section {
    height: 100vh;
    position: relative;
}
#map {
    height: 100%;
    width: 100%;
}
.custom-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}
.marker-archipal { background-color: #865c1c; }
.marker-island { background-color: #e7a924; }

/* Location Card */
.location-card {
    position: absolute;
    top: 65%;
    right: 60px;
    transform: translateY(-50%);
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 380px;
    display: none;
    z-index: 1000;
    color: #333;
}
.title-with-dot {
    display: flex;
    align-items: center;
    gap: 10px;
}
.location-dot {
    width: 12px;
    height: 12px;
    background-color: #001F3F;
    border-radius: 50%;
    flex-shrink: 0;
}
.location-logo {
    width: 70px;
    height: 70px;
    background-color: antiquewhite;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.location-logo img { width: 56px; }
.location-card h3 { margin: 0; font-size: 1.1rem; font-family: 'futura bold'; }
.location-card p { margin: 5px 0 10px 0; font-size: 0.9rem; line-height: 1.5; }
.location-card a { color: #0066cc; text-decoration: none; display: inline-block; font-size: 0.9rem; font-weight: bold; }
.location-card a:hover { text-decoration: underline; }

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 0.85rem;
    color: #333;
}
.legend-item { display: flex; align-items: center; margin-bottom: 6px; }
.legend-item:last-child { margin-bottom: 0; }
.legend-color { width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; border: 1px solid #ccc; }


/* Footer */
.footer {
    background-image: url("images/relief_footer_1.png");
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
    color: #fff;
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.footer-logo img { height: 50px; }
.footer-menu { display: flex; gap: 2rem; }
.footer-menu a { color: #fff; text-decoration: none; font-size: 1rem; font-family: 'futura normal'; }
.footer-menu a:hover { text-decoration: underline; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { color: #fff; font-size: 1.5rem; text-decoration: none; }
.social-icons a:hover { color: #d8c175; }
.footer-line { width: 100%; height: 1px; background-color: rgba(255, 255, 255, 0.3); margin: 1rem 0; }
.copyright { color: #fff; text-align: center; font-size: 0.9rem; font-family: 'futura light'; }


/* General Button Styles */
.custom-btn {
    background-color: #dbab53;
    border: 4px solid ;
    color: #f3eeee;
    padding: 50px;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
}
.custom-btn:hover {
    background-color: #dbab53;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-connect {
    background-color: #7eb64b;
    color: white !important;
    border: 2px solid #fafafa;
    border-radius: 15px;
    padding: 8px 20px;
    margin-left: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
  
    font-family: 'futura normal', sans-serif;
    font-weight: 500;
}
.btn-connect:hover {
    background-color: #45a049;
    color: white !important;
}

.btn-explorer {
    background-color: #dbab53;
    border: 2px solid #ffffff;
    color: #ffffff;
    border-radius: 15px;
    padding: 8px 20px;
    margin-left: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: 'futura normal', sans-serif;
    font-weight: 500;
}
.btn-explorer:hover {
    background-color: #dbab53;
    color: white !important;
}


/* --- Responsive Media Queries --- */

@media (min-width: 768px) {
    .main-counter {
        text-align: left;
    }
    .map-legend {
        left: 20px;
        transform: translateX(0);
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }
    .title-header { font-size: 2rem; margin-top: 1rem; }
    .description-header { font-size: 1.3rem; }
    .image-container { margin-top: 2rem; padding: 0 15px; margin-bottom: 2rem; }
    .topography-image { width: 150%; right: -25%; bottom: -10%; }
    .bird-image { width: 40%; top: -10%; right: -10%; }
    .header-image { max-width: 80%; margin-left: auto; margin-right: auto; }
    .text-content { padding-right: 0; padding-bottom: 0; }

    .first-time-card p { font-size: 1.8rem; }
    .first-time-card i { font-size: 1.9rem; }

    .counter-section { background-attachment: scroll; padding: 3rem 0; }
    .section-content, .partenair-card { padding: 1.5rem; }
    .main-counter .count { font-size: 6rem; }
    .main-counter .title { font-size: 2.8rem; }
    .counter-item { padding: 1.5rem; margin-bottom: 1rem; }
    .counter-item i { font-size: 2.5rem; }
    .counter-item .count { font-size: 2rem; }
    .counter-item .title { font-size: 1rem; }

    .location-card { width: 320px; right: 30px; padding: 15px; }
    .location-logo { width: 60px; height: 60px; }
    .location-logo img { width: 48px; }
    .location-card h3 { font-size: 1rem; }
    .location-card p, .location-card a { font-size: 0.85rem; }
}

@media (max-width: 767.98px) {
    .navbar {
        min-height: 70px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .navbar-brand img { height: 40px; }
    .navbar-nav {
        background-color: #f8e4c5;
        padding: 10px;
        border-top: 1px solid #ddd;
    }
    .navbar-nav .nav-item { width: 100%; margin-bottom: 0.5rem; }
    .navbar-nav .nav-item .btn-connect {
        margin-left: 0;
        margin-top: 0.5rem;
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero-section { padding-top: 100px; }
    .title-header { font-size: 1.8rem; }
    .description-header { font-size: 1.1rem; }
    .topography-image { width: 200%; right: -50%; bottom: -5%; }
    .bird-image { width: 50%; top: -5%; right: -15%; }
    .header-image { max-width: 100%; }

    .first-time-card { padding: 10px 15px; }
    .first-time-card p { font-size: 1.5rem; }
    .first-time-card i { font-size: 1.6rem; }

    .counter-section { padding: 2rem 0; }
    .section-content, .partenair-card { padding: 1rem; margin: 1rem auto; }
    .main-counter { text-align: center; margin-bottom: 2rem; }
    .main-counter .count { font-size: 4.5rem; }
    .main-counter .title { font-size: 2rem; }
    .counter-item i { font-size: 2.2rem; }
    .counter-item .count { font-size: 1.8rem; }
    .counter-item .title { font-size: 0.9rem; }
    .chart-container { margin: 1rem auto; }

    .custom-btn { font-size: 0.9rem; padding: 6px 15px; }

    .map-legend {
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 90%;
    }
    .location-card {
        width: 90%;
        max-width: 350px;
        left: 50%;
        right: auto;
        top: auto;
        bottom: 70px;
        transform: translateX(-50%);
        padding: 15px;
    }
    .location-card .title-with-dot { flex-direction: column; align-items: flex-start; gap: 5px; margin-bottom: 10px; }
    .location-card .location-logo { margin: 0 auto 10px auto; }
    .location-card h3, .location-card p { text-align: center; }
    .location-card a { display: block; text-align: center; }

    .footer { padding: 2rem 0; }
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-menu { flex-direction: column; gap: 0.8rem; align-items: center; }
    .footer-menu a { font-size: 0.95rem; }
    .social-icons { justify-content: center; gap: 1.2rem; }
    .social-icons a { font-size: 1.3rem; }
    .copyright { font-size: 0.85rem; }
}

@media (max-width: 420px) {
    .title-header { font-size: 1.6rem; }
    .description-header { font-size: 1rem; }
    .main-counter .count { font-size: 3.5rem; }
    .main-counter .title { font-size: 1.8rem; }
    .first-time-card p { font-size: 1.3rem; }
    .first-time-card i { font-size: 1.4rem; }
    .btn-connect { padding: 6px 15px; font-size: 0.9rem;}
}

/* Funders Section Styles */
.funders-section {
    padding: 80px 0;
}
.section-title {
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;  
    margin-bottom: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: #2980b9;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.funder-card {
    background: #c7b8b8;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease-in-out;
}
.funder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.funder-logo-card img {
    max-height: 90px;
    width: auto;
    max-width: 100%;
}