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

/* Custom font fallback for TT Firs Neue */
@font-face {
    font-family: 'TT Firs Neue';
    src: local('Inter'), local('Arial');
    font-weight: 100 900;
    font-style: normal;
}

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

:root {
    /* Greenhouse-inspired color palette */
    --primary-green: #2F7D32;
    --secondary-green: #4CAF50;
    --light-green: #E8F5E8;
    --dark-green: #1B5E20;
    --accent-purple: #6365d2;
    --light-purple: #F3F0FF;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #7A7A7A;
    --background-light: #FAFAFA;
    --white: #FFFFFF;
    --border-light: #E5E5E5;
}

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

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

/* Typography */
h1, h2, h3 {
    font-family: 'TT Firs Neue', 'Georgia', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    color: var(--white);
}

h2 {
    font-size: 2.5rem;
    color: #1B5E20;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    color: #2F7D32;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    background: #a4ddce;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #1B5E20;
}

.hero h1 {
    margin-bottom: 1rem;
    font-family: 'Untitled Serif', Georgia, 'Times New Roman', Times, serif;
    color: #2F7D32;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #1B5E20;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: #2F7D32;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    border: 2px solid #2F7D32;
}

.cta-button:hover {
    background: #2F7D32;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(47, 125, 50, 0.3);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-number {
    font-size: 1rem;
    color: var(--secondary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Greenhouse-inspired Grid Layout */
.grid-row-full {
    width: 100%;
}

.grid-row-two-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 400px;
}

.grid-content-left {
    padding-right: 40px;
}

.grid-content-right {
    padding-left: 40px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-top: 20px;
}

/* Challenge Grid */
.challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.challenge-item {
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.challenge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.challenge-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.challenge-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.challenge-item p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

/* Solution Grid */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.solution-item {
    padding: 20px;
    background: var(--light-green);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.solution-item:hover {
    transform: translateY(-2px);
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.solution-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.solution-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.solution-item p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

/* Feature List Styles */
.feature-list {
    margin-top: 30px;
}

.feature-item {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.feature-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Image Container Styles */
.image-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-image:hover {
    transform: scale(1.05);
}

/* Legacy Feature Grid (for remaining sections) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-green);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: #a4ddce;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 32px;
}

/* Proof Section */
.proof-section {
    background: linear-gradient(135deg, var(--light-purple), var(--light-green));
    position: relative;
}

.proof-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.proof-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.proof-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Technology Section */
.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--secondary-green);
    transform: translateY(-3px);
}

/* CTA Section */
.cta-section {
    background: #a4ddce;
    text-align: center;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cta-item {
    background: rgba(255,255,255,0.1);
    padding: 30px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .grid-row-two-full {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
    }

    .grid-content-left,
    .grid-content-right {
        padding-left: 0;
        padding-right: 0;
        order: 0;
    }

    /* Ensure content comes before grid on mobile */
    .grid-content-left {
        order: 1;
    }

    .grid-content-right {
        order: 2;
    }

    .challenge-grid,
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .solution-item,
    .challenge-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    .solution-item h4,
    .challenge-item h4 {
        font-size: 1rem;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .solution-item p,
    .challenge-item p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .section-description {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .image-container {
        height: 250px;
        margin-bottom: 30px;
    }

    .proof-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }
}

/* Additional mobile breakpoint for very small screens */
@media (max-width: 480px) {
    h2 {
        font-size: 1.6rem;
    }

    .solution-item h4,
    .challenge-item h4 {
        font-size: 0.95rem;
    }

    .grid-row-two-full {
        gap: 25px;
    }

    .container {
        padding: 0 10px;
    }

    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
    }
    
    .language-switcher .lang-link {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switcher .lang-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher .lang-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.language-switcher .lang-link:hover {
    background: rgba(0, 123, 255, 0.1); 
    color: #6365d2;
}

.language-switcher .lang-link.active {
    background: #6365d2;
    color: white;
}

.language-switcher .flag {
    font-size: 16px;
}

.language-switcher .separator {
    color: #ccc;
    font-weight: 300;
}
