:root {
    --primary-color: #2E7D32;
    /* Example green */
    --text-color: #333;
    --white: #ffffff;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.scroll-down-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    cursor: pointer;
    background: transparent;
}

.scroll-down-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

.scroll-nav-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.section-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #2E7D32;
    border-radius: 50%;
    color: #2E7D32;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--white);
}

.section-scroll-btn:hover {
    background: #2E7D32;
    color: var(--white);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

.logo {
    height: 35px;
    /* Reduced size */
    width: auto;
}

.language-switch button {
    background: none;
    border: none;
    /* Removed border for cleaner flag look */
    font-size: 1.5rem;
    /* Larger size for flags */
    padding: 5px;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.language-switch button.active,
.language-switch button:hover {
    background: none;
    transform: scale(1.2);
    opacity: 1;
}

.hero {
    height: 100vh;
    width: 100%;
    background-image: url('./assets/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    /* Align content to center vertically */
    justify-content: flex-start;
    /* Align content to left */
    border-bottom: 10px solid var(--white);
}

/* Overlay to ensure text readability if needed, though user didn't ask for it yet, keeping it subtle or removing if image is clear */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Lighter overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 5%;
    max-width: 600px;
}

.slogan {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    /* Added spacing below slogan */
}

.cta-button {
    background-color: #217821;
    border: none;
    color: var(--white);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--white);
    color: #217821;
}

@media (max-width: 768px) {
    .slogan {
        font-size: 1.5rem;
        /* Keeping font adjustment for readability */
    }

    header {
        padding: 1rem;
    }

    .logo {
        height: 30px;
    }

    .hero {
        background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('./assets/hero_mobile.jpg');
        background-position: center 20%;
        background-size: cover;
        background-repeat: no-repeat;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-content {
        padding: 0 20px 40px 20px;
        text-align: center;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .section-scroll-btn {
        width: 30px;
        height: 30px;
        border-width: 1px;
    }

    .section-scroll-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Indoor Generation Section */
.indoor-generation {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(to bottom, #ffffff 55%, rgba(255, 255, 255, 0) 100%), url('./assets/section1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 180px 5% 100px 5%;
    display: flex;
    align-items: flex-start;
    /* Aligns content to top */
    border-bottom: 10px solid var(--white);
}

.indoor-container {
    display: flex;
    justify-content: center;
    /* Centering with gap */
    align-items: flex-start;
    width: 100%;
    max-width: 1100px;
    /* Slightly reduced max-width */
    margin: 0 auto;
    gap: 5%;
    /* Added gap to bring them closer relative to center if needed, replacing space-between */
}

.indoor-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-color);
    width: 45%;
    line-height: 1;
}

.percentage {
    font-size: 10rem;
    font-weight: 700;
    display: block;
    margin-top: -10px;
}

.indoor-text {
    font-size: 1.5rem;
    /* Increased from 1.1rem */
    color: var(--text-color);
    width: 40%;
    line-height: 1.5;
    font-weight: 300;
    text-align: left;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .indoor-generation {
        height: auto;
        padding: 50px 20px 80px 20px;
        /* Increased bottom padding for button */
        background-image: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)), url('./assets/section1.jpg');
        position: relative;
        /* Ensure padding works with layout */
    }

    .indoor-container {
        flex-direction: column;
    }

    .indoor-title {
        font-size: 2rem;
        width: 100%;
        margin-bottom: 20px;
    }

    .percentage {
        font-size: 6rem;
    }

    .indoor-text {
        width: 100%;
        font-size: 1rem;
        margin-top: 10px;
    }
}

/* Pollution Section */
.pollution-section {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('./assets/section2.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Centered vertically */
    padding-top: 0;
    text-align: center;
    border-bottom: 10px solid var(--white);
}

.pollution-content {
    max-width: 800px;
    padding: 0 20px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Spacing between title and text */
}

.pollution-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.2;
}

.pollution-text {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 400;
}

@media (max-width: 768px) {
    .pollution-section {
        height: auto;
        padding: 50px 20px 80px 20px;
        /* Increased bottom padding for button */
        background-image: linear-gradient(rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.40)), url('./assets/section2.jpg');
    }

    .pollution-title {
        font-size: 2rem;
    }

    .pollution-text {
        font-size: 1rem;
    }
}

/* Ecosystem Section */
.ecosystem-section {
    width: 100%;
    height: 100vh;
    background-image: url('./assets/section3.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    border-bottom: 10px solid var(--white);
}

.ecosystem-card {
    background: var(--white);
    padding: 50px;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ecosystem-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.ecosystem-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ecosystem-section {
        height: auto;
        padding: 50px 20px 100px 20px;
        justify-content: center;
        align-items: center;
    }

    .ecosystem-card {
        padding: 30px;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

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

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Science Section */
.science-section {
    width: 100%;
    min-height: 100vh;
    background-color: #f6fdf6;
    /* Lightest green tint for opaque background distinction */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    border-bottom: 10px solid var(--white);
    /* Visual Separator */
}

.science-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
    gap: 50px;
    align-items: center;
}

.science-body {
    display: flex;
    width: 100%;
    gap: 50px;
    align-items: center;
}


.science-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.science-content-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.science-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    text-align: center;
    width: 100%;
}


.science-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.science-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.science-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    /* Optional: add shadow or subtle styling */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nasa-logo,
.feature-icon {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
}

.science-icon {
    width: auto;
    height: 60px;
    /* Matched height for both */
}

@media (max-width: 900px) {
    .science-body {
        flex-direction: column;
        gap: 40px;
    }

    .science-content-right {
        order: -1;
        /* Image on top on mobile if preferred, or keep normally. Let's keep normally but user said "Right side image", usually goes below on mobile. If order -1 it goes top. Let's keep it below. */
        order: 0;
        width: 100%;
    }

    .science-image {
        max-width: 100%;
    }

    .science-title {
        font-size: 2rem;
    }

    .science-section {
        padding: 50px 20px 80px 20px;
        height: auto;
    }
}

/* Meet DOA Section */
.meet-doa-section {
    width: 100%;
    min-height: 100vh;
    background-color: var(--white);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    border-bottom: 10px solid var(--white);
    /* Visual Separator */
}

.meet-doa-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    align-items: center;
}

.meet-doa-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.meet-doa-body {
    display: flex;
    width: 100%;
    gap: 60px;
    align-items: center;
}

.meet-doa-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.meet-doa-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.meet-doa-text {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
}

.meet-doa-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon-small {
    width: 32px;
    height: 32px;
    min-width: 32px;
    color: var(--primary-color);
}

.feature-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.meet-doa-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
    .meet-doa-body {
        flex-direction: column;
        gap: 40px;
    }

    .meet-doa-right {
        order: -1;
        width: 100%;
    }

    .meet-doa-title {
        font-size: 2rem;
    }

    .meet-doa-section {
        padding: 50px 20px 80px 20px;
        height: auto;
    }
}

/* Section 6 */
.section-6 {
    width: 100%;
    /* Height auto to fit image */
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Remove padding to let image flush with edges if desired, or keep if spacing needed. */
    padding: 0;
    border-bottom: 10px solid var(--white);
    /* Visual Separator */
    background: var(--white);
    /* Fallback */
}

.section-6-content {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

.section6-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    /* Ensure it doesn't overflow */
}

/* Visibility Logic */
.section6-img.tr-img {
    display: none;
}

.section6-img.en-img {
    display: none;
}

/* Show based on language */
html[lang="tr"] .section6-img.tr-img {
    display: block;
}

html[lang="en"] .section6-img.en-img {
    display: block;
}

/* Mobile Images hidden by default on desktop */
.section6-mobile-img,
.section7-mobile-img {
    display: none;
    width: 100%;
    height: auto;
}

/* Mobile Features Hidden by default */
.section-6-mobile-features {
    display: none;
}

@media (max-width: 768px) {

    .section-6,
    .section-7 {
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
        background: none !important;
        /* Remove background images */
        display: block;
        /* Normal flow */
    }

    .section-6-content,
    .section-7-content {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    /* Hide Desktop Images */
    .section6-img {
        display: none !important;
    }

    /* Remove pseudo-element approach and use main background on section */
    .section-6::before {
        display: none;
    }

    /* Show Mobile Images based on language */
    .section6-mobile-img,
    .section7-mobile-img {
        display: none;
        /* default hidden */
        width: 100%;
        height: auto;
    }

    html[lang="tr"] .section6-mobile-img.tr-img,
    html[lang="tr"] .section7-mobile-img.tr-img {
        display: block;
    }

    html[lang="en"] .section6-mobile-img.en-img,
    html[lang="en"] .section7-mobile-img.en-img {
        display: block;
    }

    /* Ensure arrows are positioned correctly if needed, 
       but with img flow they might need to be absolute relative to section. 
       Section is relative. */
    .scroll-nav-container {
        bottom: 20px;
        /* Keep them at bottom over image */
    }

    .section-6-mobile-features {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        width: 100%;
    }

    .section-6-mobile-features .feature-item {
        display: block;
        text-align: center;
        /* Center text as per user request flow or standard mobile? 
           "görsel altına maddeler halinde" usually means list.
           Let's center for nice look. */
    }

    .section-6-mobile-features .feature-text strong {
        display: block;
        color: var(--primary-color);
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
}

/* Section 7 */
.section-7 {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    /* Align content (arrows) to bottom */
    justify-content: center;
    padding: 0;
    border-bottom: 10px solid var(--white);
    transition: background-image 0.5s ease-in-out;
}

/* Bilingual Backgrounds - Desktop */
html[lang="tr"] .section-7 {
    background-image: url('./assets/section7_tr.jpg');
}

html[lang="en"] .section-7 {
    background-image: url('./assets/section7_en.jpg');
}

/* Mobile Adjustments for Section 7 */
@media (max-width: 768px) {

    /* No background-image rules needed here anymore, handled by general .section-7 rule */
    .section-7 {
        align-items: flex-end;
    }
}

/* Contact Section */
.contact-section {
    width: 100%;
    height: 70vh;
    /* Reduced height */
    background: linear-gradient(135deg, hsl(90, 100%, 99%) 0%, #ffffff 100%);
    /* Light nature gradient */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 10px solid var(--white);
}

.contact-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(46, 125, 50, 0.05);
    /* Very light green bg */
}

.contact-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-link svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .contact-section {
        height: auto;
        min-height: 50vh;
        padding: 50px 20px 80px 20px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
    }
}