/* General Styles */
html {
    scroll-padding-top: 80px; /* Adjust this value based on navbar height */
}
body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    padding-top: 62px; /* Add padding for fixed navbar */
}

.navbar {
    background: linear-gradient(to right,#2e5f2e, #2e5f2e); /* Deep forest green to olive green */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Stronger shadow for depth */
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #1e3d1e; /* Darker border for separation */
}

.navbar-brand {
    color: #fdfdfd !important; /* Crisp white */
    font-weight: bold;
    font-size: 1.4rem;
}

.navbar-nav .nav-link {
    transition: 0.3s;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    color: #e8f5e9 !important; /* Soft greenish-white */
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.btn-light {
    color: #2e5f2e; /* Dark green */
    background: #f5f5f5;
    font-weight: bold;
    border-radius: 5px;
}

.btn-light:hover {
    background: #d7f7d7;
    color: #144414;
}


/* Hero Section */
.hero {
    background: url('hero.jpg') no-repeat center center; /* Add your image */
    background-size: cover; /* Ensure it covers the full area */
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white; /* Ensure text remains visible */
    position: relative; /* Needed for overlay */
}

/* Optional: Add a dark overlay for better text visibility */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust transparency */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2; /* Ensures text appears above overlay */
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Feature Cards */
.feature-card {
    border-radius: 10px;
    border: none;
    background: white;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.25rem; /* Adjust title size */
    font-weight: bold;
    color: #2e5f2e;
}

.feature-card p {
    font-size: 1rem; /* Adjust description size */
    /*color: #555;*/ /* Optional: Make the text a bit softer */
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 20px;
    }
}

/* Founder Cards */
.founder-card {
    border-radius: 10px;
    border: none;
    background: white;
    transition: transform 0.3s;
    height: 100%;
}

.founder-card:hover {
    transform: scale(1.05);
}

.founder-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2e5f2e;
}
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2e5f2e;
    margin-bottom: 15px;/* Slight spacing for elegance */
}
/*Calculator*/
    /* Calculator Card */
    #calculator {
        background: #ffffff;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease-in-out;
        max-width: 800px;
        margin: 50px auto;
        text-align: center;
    }

    /* Heading */
    #calculator h2 {
        font-size: 2rem;
        font-weight: bold;
        color: #2e5f2e;
        margin-bottom: 15px;
    }

    /* Navbar Tabs */
    .nav-tabs .nav-link {
        color: #2e5f2e;
        font-weight: bold;
        border-radius: 8px;
        transition: 0.3s;
    }

    .nav-tabs .nav-link.active {
        background-color: #2e5f2e;
        color: white;
    }

    /* Input Fields */
    .form-control {
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 1rem;
    }

    /* Button */
    .btn-calculate {
        background-color: #2e5f2e;
        border: none;
        padding: 0.75rem;
        font-size: 1.2rem;
        border-radius: 8px;
        margin-top: 15px;
        width: 100%;
        transition: background 0.3s;
        color: white;
    }

    .btn-calculate:hover {
        background-color: #6FAF50;
    }

    /* Hide inactive sections */
    .calc-section {
        display: none;
    }
/* Contact Section Card */
#contact {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    max-width: 1000px; /* Same width as About Us */
    margin: 50px auto; /* Centers the card */
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2e5f2e;
    margin-bottom: 15px;
}

#contact p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

/* Contact Form Styling */
#contact .contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

#contact .input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#contact input, #contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

#contact input {
    flex: 1;
    min-width: 48%;
}

#contact textarea {
    height: 120px;
    resize: none;
}

/* Submit Button */
#contact .btn-primary {
    background-color: #2e5f2e;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease-in-out;
}

#contact .btn-primary:hover {
    background-color: #6FAF50;
}

/* Popup Styling */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive: Stack form inputs on smaller screens */
@media (max-width: 768px) {
    #contact .input-group {
        flex-direction: column;
    }
}
.about-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    max-width: 1000px; /* Limits max width */
    margin: 50px auto; /* Centers the card */
}

/* About Us Section */
.about-us {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Left: About Us Text */
.about-content {
    flex: 1;
    max-width: 50%;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2e5f2e;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    font-size: 1.1rem;
    text-align: justify;
    text-justify: inter-word;
    color: #333;
    line-height: 1.8;
    font-weight: 400;
}

/* Right: Mission & Vision stacked */
.about-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.about-card h3 {
    font-size: 1.8rem;
    color: #144414;
    margin-bottom: 12px;
    font-weight: bold;
}

.about-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive: Stack items on smaller screens */
@media (max-width: 992px) {
    .about-us {
        flex-direction: column;
        text-align: center;
    }

    .about-content, .about-cards {
        max-width: 100%;
    }
}

.about-logos {
    display: flex;
    justify-content: center; /* Center logos horizontally */
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensures responsiveness without stacking */
    margin-top: 20px;
}
/* Logo container */
.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 150px;
}

/* Default Logo Styling */
.logo-item img {
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Specific sizes */
.logo-small {
    width: 165px;
    transform: translateX(10px); 
}

.logo-large {
    width: 100px; /* Larger logo */
    
}

/* Hover Effect */
.logo-item img:hover {
    transform: scale(1.1);
}

/* Text below the logo */
.logo-item p {
    font-size: 0.9rem;
    color: #333;
    margin-top: 8px;
    text-align: center;
    font-weight: 500;
}


@media (max-width: 768px) {
    .about-logos {
        flex-wrap: nowrap; /* Prevents stacking */
        justify-content: space-evenly; /* Distributes space evenly */
        gap: 10px;
    }
}



/* Fade-in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background: #2e5f2e;
        border-radius: 0 0 10px 10px;
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .navbar-nav {
        margin-bottom: 1rem;
    }
    
    .btn-light.btn-sm {
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}