/* index_style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('/static/images/background_forest.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Navigation (Fixed Top) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d5016;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
}

.language-selector {
    padding: 0.5rem 1rem;
    border: 2px solid #2d5016;
    border-radius: 25px;
    background: white;
    color: #2d5016;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.language-selector:hover {
    background: #2d5016;
    color: white;
}

/* --- INFO SECTION (Middle Footer) --- */
.info-section {
    position: fixed;
    bottom: 40px; /* Space for copyright footer below */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    text-align: center;
    z-index: 1000;
    border-top: 1px solid rgba(0,0,0,0.1);
    height: auto; 
    max-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-section h2 {
    color: #2d5016;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-section p {
    color: #555;
    font-size: 0.9rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- COPYRIGHT FOOTER (Bottom) --- */
.copyright-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 80, 22, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 5%;
    text-align: center;
    z-index: 1001;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.copyright-footer strong {
    color: white;
    font-weight: 600;
}

/* Hero Content Wrapper */
.hero-content {
    text-align: center;
    color: white;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    margin-top: 100px; 
    margin-bottom: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100vh - 260px);
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

/* --- SCROLLABLE FEATURES CONTAINER --- */
.features-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 20px;
    flex-grow: 1; 
    height: 100%; 
    animation: fadeInUp 1s ease;
    scrollbar-width: none;
}

/* Custom Scrollbar (Webkit) */
.features-container::-webkit-scrollbar {
    width: 6px;
}
.features-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1); 
}
.features-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5); 
    border-radius: 10px;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    height: fit-content;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: #2d5016;
    background: rgba(255, 255, 255, 1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    color: #2d5016;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.feature-btn {
    background: linear-gradient(135deg, #2d5016, #4a7c28);
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(45, 80, 22, 0.3);
}

.feature-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.5);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator { display: none; }

/* Responsive Mobile */
@media (max-width: 768px) {
    body { overflow: auto; }
    
    nav { position: fixed; }
    
    .info-section {
        position: relative;
        max-height: none;
        border-top: none;
        bottom: auto;
    }

    .copyright-footer {
        position: relative;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
    }

    .hero-content {
        height: auto;
        margin-top: 20px;
        margin-bottom: 20px;
        display: block;
    }

    .features-container {
        overflow-y: visible;
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
    }
}