/* General */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5fff0;
    padding-top: 70px; /* Adjust based on navbar height */
    margin: 0;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #d0f0c0, #a8e063);
}
.navbar-brand {
    font-size: 1.8rem;
}
.nav-link {
    color: #2e7d32 !important;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}
.nav-link:hover {
    color: #1b5e20 !important;
    text-decoration: underline;
}

/* Offcanvas Custom (Left, not full screen) */
.offcanvas-start.custom-offcanvas {
    width: 220px;
}
.offcanvas-backdrop {
    background-color: rgba(128, 167, 137, 0.5);
}

/* Hero Section */
.hero img {
    max-width: 100%;
    height: auto;
    background-color: transparent; /* Or match .hero background */
    border-radius: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    color: #2e7d32;
}
.hero p {
    font-size: 1.1rem;
    color: #4e944f;
}

/* Footer Section */
.footer-section a {
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section a:hover {
    color: #c8e6c9;
    text-decoration: underline;
}
.footer-section ul {
    padding-left: 1rem;
}
.footer-section li {
    margin-bottom: 0.3rem;
}

#tagline-text {
    transition: opacity 0.5s ease;
}

/* Buttons */
.btn-green {
    background-color: #66bb6a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s ease;
}
.btn-green:hover {
    background-color: #388e3c;
}

#about_section p {
    text-align: justify;
}

#tagline-text {
    transition: opacity 0.5s ease-in-out;
}

/* Shared Section Layout */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

/* Section Styles */
.section-light {
    background-color: #ecfdf5;
}

/* Features and Solutions */
.feature-box, .solution-box {
    min-width: 280px;
    max-width: 350px;
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.feature-box:hover, .solution-box:hover {
    transform: translateY(-5px);
}

/* Footer */
.footer-section {
    background: linear-gradient(to right, #66bb6a, #43a047);
    color: white;
    font-size: 0.95rem;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.1);
}
.footer-section .social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.footer-section .social-icons a:hover {
    color: #c8e6c9;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-in-out forwards;
}

form input, form textarea {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #c8e6c9;
    font-size: 1rem;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: #66bb6a;
    box-shadow: 0 0 0 0.2rem rgba(102, 187, 106, 0.25);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-delay-1 { animation-delay: 0.2s; }
.fade-delay-2 { animation-delay: 0.4s; }
.fade-delay-3 { animation-delay: 0.6s; }
.fade-delay-4 { animation-delay: 0.8s; }

/* Responsive Tweaks */
@media (max-width: 1200px) {
    .navbar-brand {
        font-size: 1.6rem; /* Adjust font size for tablets */
    }
    .hero h1 {
        font-size: 2rem;
    }
    .feature-box, .solution-box {
        min-width: 240px; /* Adjust width for medium screens */
        max-width: 320px;
    }
}

@media (max-width: 992px) {
    .hero img {
        max-width: 90%; /* Adjust image size for smaller screens */
    }
    .navbar {
        padding: 10px 0;
    }
    .navbar-nav {
        flex-direction: column; /* Stack navbar items */
    }
    .nav-link {
        font-size: 1rem;
        padding: 10px;
    }
    .footer-section {
        font-size: 0.85rem;
        padding: 20px 10px; /* Adjust footer for smaller screens */
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .hero h1 {
        font-size: 1.8rem; /* Smaller font size for mobile */
    }
    .hero p {
        font-size: 1rem;
    }

    /* Navbar Adjustments */
    .navbar-brand {
        font-size: 1.4rem; /* Smaller navbar brand font */
    }
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        text-align: center; /* Center navbar items */
    }
    .nav-link {
        padding: 12px 0;
        font-size: 1rem;
    }

    /* Feature and Solution Boxes */
    .feature-box, .solution-box {
        min-width: 100%;
        max-width: 100%;
        padding: 15px;
        margin: 10px 0;
    }

    /* Footer Section */
    .footer-section {
        font-size: 0.8rem;
        padding: 15px 10px;
    }
    .footer-section .social-icons {
        display: flex;
        justify-content: center;
    }

    /* Section Padding */
    section {
        padding: 40px 15px;
    }

    /* Button Adjustment */
    .btn-green {
        font-size: 0.9rem;
        padding: 8px 18px;
    }

    /* Input Fields */
    form input, form textarea {
        font-size: 0.95rem;
    }

    form input:focus, form textarea:focus {
        border-color: #66bb6a;
        box-shadow: 0 0 0 0.2rem rgba(102, 187, 106, 0.25);
    }
}

@media (max-width: 576px) {
    /* Hero Section */
    .hero h1 {
        font-size: 1.6rem; /* Even smaller font for very small screens */
    }
    .hero p {
        font-size: 0.95rem;
    }

    /* Navbar Adjustments */
    .navbar-brand {
        font-size: 1.2rem;
    }
    .navbar-nav {
        padding: 10px;
    }

    /* Button Adjustments */
    .btn-green {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    /* Feature and Solution Boxes */
    .feature-box, .solution-box {
        min-width: 100%;
        max-width: 100%;
        padding: 12px;
    }

    /* Footer Section */
    .footer-section {
        font-size: 0.75rem;
        padding: 10px;
    }

    /* Section Layout */
    section {
        padding: 30px 10px;
    }
}
