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

:root {
    --primary-green: #d8e4a0;
    --primary-yellow: #fdeea4;
    --dark-blue: #35495e;
    --light-green: #e8f0c8;
    --white: #ffffff;
}

::selection {
    background-color: var(--primary-green);
    color: var(--dark-blue);
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #35495e;
}

h1,
h2,
h3 {
    font-family: "Nunito", "Arial Rounded MT Bold", Arial, sans-serif;
    font-weight: 800;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

strong {
    font-weight: 700;
}

a {
    color: var(--dark-blue);
    text-decoration: underline;
}
a:hover {
    color: var(--dark-blue);
    text-decoration: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.5rem 2rem;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
}

.linkedin-link {
    color: var(--dark-blue);
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    height: 50vh;
    min-height: 600px;
    background: url("img/hedaer-background.png") center/cover;
    padding: 6rem 0 8rem;
    position: relative;
    align-content: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.hero-logo {
    height: 120px;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero-image img {
    width: 100%;
    height: auto;
}

.hero-description {
    font-size: 18px;
    background-color: var(--primary-green);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    margin-top: -6rem;
    margin-inline: auto;
    z-index: 10;
    width: 80%;
}

.hero-description p {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.hero-description .highlight {
    font-weight: 600;
}

/* Partners Section */
.partners {
    background-color: var(--white);
    padding: 6rem 0 4rem;
}

.partners-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #35495e;
}

.partners-slider {
    overflow: hidden;
    margin-bottom: 5rem;
}

.partners-track {
    display: flex;
    gap: 3rem;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.partners-track-1 {
    animation: scroll-left 30s linear infinite;
}

.partners-track-2 {
    animation: scroll-right 30s linear infinite;
}

.partner-logo {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* About Section */
.about {
    background-color: var(--white);
    padding: 4rem 0;
}

.about-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: #35495e;
}

.about-intro a {
    color: var(--dark-blue);
    text-decoration: underline;
}

.about-content {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.objectives-box {
    border: 2px solid var(--primary-green);
    padding: 2rem;
    border-radius: 2rem;
    margin-top: 2rem;
}

.objectives-box ul {
    list-style: none;
    padding-left: 0;
}

.objectives-box li {
    padding-left: 1.5rem;
    position: relative;
    line-height: 22px;
}
.objectives-box li:not(:last-child) {
    margin-bottom: 1.5rem;
}

.objectives-box li::before {
    content: "●";
    color: var(--dark-blue);
    position: absolute;
    left: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Project Impacts Section */
.project-impacts {
    padding: 4rem 0;
    position: relative;
}

.project-impacts > img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 90%;
    object-fit: cover;
}

.project-impacts .container {
    position: relative;
    z-index: 2;
}

.impacts-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #35495e;
}

.impacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 650px;
    margin: 0 auto;
    margin-top: 4rem;
}

.impact-card {
    background-color: rgb(255, 255, 255);
    border: 2px solid var(--primary-green);
    border-radius: 15px;
    padding: 3rem;
    text-align: left;
    align-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 4.5rem;
}

.impact-number {
    position: absolute;
    left: 15%;
    top: 46px;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    color: var(--dark-blue);
    font-family: "Nunito", "Arial Rounded MT Bold", Arial, sans-serif;
}

.impact-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.4;
    text-wrap: balance;
}

/* Project Results Section */
.project-results {
    background-color: var(--white);
    padding: 4rem 0;
}

.results-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #35495e;
}

.tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-radius: 50px;
    overflow: hidden;
    background-color: var(--white);
    border: 2px solid var(--primary-green);
}

.tab-button {
    flex: 1;
    padding: 1rem 2rem;
    background-color: var(--white);
    border: none;
    color: var(--dark-blue);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.tab-button.active {
    background-color: var(--primary-green);
}

.tab-button:hover {
    background-color: var(--light-green);
}

.tab-content {
    background-color: var(--primary-green);
    padding: 4rem;
    border-radius: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    margin-bottom: 1rem;
}

.tab-pane h4 {
    color: var(--dark-blue);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.deliverables-list,
.presentations-content ul {
    list-style: none;
    padding: 0;
}

.papers-list,
.media-list {
    list-style: disc;
    padding-left: 1.5rem;
}

.deliverables-list a,
.papers-list a,
.media-list a,
.presentations-content a {
    color: var(--dark-blue);
    text-decoration: underline;
    display: block;
}

.deliverables-list a:hover,
.papers-list a:hover,
.media-list a:hover,
.presentations-content a:hover {
    color: #1a2d47;
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.contact-card {
    background-color: var(--white);
    border: 3px solid var(--primary-green);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-icon {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.contact-card h2 {
    margin-bottom: 2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary-green);
    color: var(--dark-blue);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: left 0.5s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(216, 228, 160, 0.5);
    color: var(--dark-blue);
    text-decoration: none;
}

.contact-btn svg {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-btn span {
    position: relative;
    z-index: 1;
}

.contact-btn:hover svg {
    transform: translateX(5px);
}

/* Footer */
.footer {
    padding: 0;
}

.footer-disclaimer {
    background-color: var(--white);
    padding: 2rem 0;
}

.footer-disclaimer .container {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    max-width: 900px;
}

.footer-disclaimer img {
    width: 80px;
    flex-shrink: 0;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    color: #35495e;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    background: linear-gradient(
        180deg,
        var(--primary-green) 20%,
        var(--primary-yellow) 80%
    );
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #35495e;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(5px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out,
        filter 0.4s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

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

    .tab-buttons {
        flex-wrap: wrap;
        border-radius: 15px;
    }

    .tab-button {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0 6rem;
    }

    .header {
        width: 95vw;
        padding: 1rem 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-logo {
        height: 60px;
    }

    .hero-description {
        padding: 1.5rem;
        margin-top: -4rem;
    }

    .partners,
    .about,
    .project-impacts,
    .project-results,
    .contact-section {
        padding: 3rem 0;
    }

    .contact-card {
        padding: 2rem;
    }

    .partner-logo {
        width: 120px;
        height: 60px;
    }

    .objectives-box {
        padding: 1.5rem;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        flex: 1 1 100%;
    }

    .tab-content {
        padding: 2rem 1.5rem;
    }

    .footer-disclaimer {
        flex-direction: column;
    }

    .footer-disclaimer img {
        width: 60px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .header {
        top: 1rem;
        width: 95vw;
        padding: 0.75rem 1rem;
        border-radius: 20px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-logo {
        height: 50px;
    }

    .hero-description {
        margin-top: -3rem;
    }

    .logo img {
        height: 40px;
    }

    .impact-card {
        padding: 1.5rem;
        padding-left: 1.5rem;
    }

    .impact-number {
        display: none;
    }

    .tab-content {
        padding: 1.5rem 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.8rem;
    }

    .footer-disclaimer img {
        width: 50px;
    }
}
