/* Color variables */
:root {
    --primary-green: #4CAF50;
    --secondary-green: #388E3C;
    --accent-brown: #795548;
    --natural-beige: #F5F5DC;
    --leaf-green: #8BC34A;
    --wood-brown: #5D4037;
    --primary-color: #7CB342;  /* Light fresh green */
    --secondary-color: #C5E1A5; /* Very light sage green */
    --accent-color: #9CCC65;   /* Soft lime green */
    --text-color: #4A4A4A;     /* Soft dark gray */
    --light-bg: #F8FBF6;       /* Almost white with tiny hint of green */
    --white: #ffffff;
    --hover-color: #8BC34A;    /* Slightly darker green for hover states */
    --shadow-color: rgba(124, 179, 66, 0.2); /* Light green shadow */
}

/* Reset and base styles */
body {
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Navigation Styles */
header {
    background: linear-gradient(to right, var(--white), var(--light-bg));
    border-bottom: 3px solid var(--primary-color);
    height: 70px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    opacity: 0.8;
    border-radius: 5px;
}

.mobile-menu-btn {
    display: none;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    header {
        height: 60px;
    }

    nav {
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
    }

    .logo-img {
        height: 45px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(76, 175, 80, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        text-align: center;
    }
}

#eco-hero {
    background-image: url('images/ecofrndly\ home\ \ header\ img.webp');
    height: 100vh;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--secondary-color);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    animation: floatIcon 3s ease-in-out infinite;
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-card h3, .feature-card p {
    padding: 20px;
    margin: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    animation: growIn 0.8s ease-out forwards;
    border: 1px solid var(--secondary-color);
    padding: 30px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.benefit-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    animation: floatIcon 3s ease-in-out infinite;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.calculator-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ffffff;
    border-radius: 5px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.certification-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: transform 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
}

.certification-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.content-section {
    padding: 4rem 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: sectionFadeIn 0.8s ease forwards;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--leaf-green));
}

.content-section::after {
    content: '🌿';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.2;
}

.light-bg {
    background-color: #ffffff;
}

.highlight-text {
    font-size: 1.4rem;
    color: var(--primary-green);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-text {
    max-width: 700px;
    margin: 0 auto;
    padding-right: 40px;
}

.intro-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.intro-image img:hover {
    transform: scale(1.02);
}

.materials-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.material-card, .feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
    border: 1px solid var(--secondary-color);
    overflow: hidden;
}

.material-card:hover, .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.material-card img {
    border-radius: 10px;
    transition: transform 0.3s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.material-card:hover img {
    transform: scale(1.05);
}

.material-card h3, .material-card p {
    padding: 20px;
    margin: 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.package-card {
    position: relative;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
    overflow: hidden;
    border: 1px solid var(--secondary-color);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.package-card.featured {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: scale(1.05);
}

.popular-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-green);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.price {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1.5rem 0;
    font-weight: bold;
    font-size: 2em;
    color: var(--primary-color);
    margin: 20px 0;
}

.featured .price {
    color: var(--white);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    padding: 0;
    margin: 20px 0;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ffffff;
    position: relative;
    padding-left: 25px;
    margin: 10px 0;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.features-list li:before {
    content: '🌱';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

/* Add nature-inspired animations */
@keyframes leafSway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes growIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes rainbowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Title Animation */
@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.sustainable-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    text-align: center;
    margin: 2rem 0;
    font-weight: 700;
    animation: titleFadeIn 1.5s ease-out forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(120deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* Apply nature animations */
.eco-feature i {
    animation: leafSway 3s ease-in-out infinite;
}

.benefit-card {
    animation: growIn 0.8s ease-out forwards;
}

.eco-header {
    background: linear-gradient(45deg, #2ecc71, #27ae60, #2ecc71);
    background-size: 200% 200%;
    animation: rainbowGradient 10s ease infinite;
}

/* Buttons */
.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color);
    background-color: var(--hover-color);
}

.get-started-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin: 30px auto;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}

.get-started-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color);
    background-color: var(--hover-color);
}

/* Section headers */
.content-section h2 {
    font-size: 2.5rem;
    color: var(--wood-brown);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(5px);
    padding: 10px;
}

.modal-content {
    position: relative;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

.close-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-group textarea {
    height: 60px;
    resize: vertical;
    min-height: 60px;
}

.submit-button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.95rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.submit-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .submit-button {
        padding: 8px;
        font-size: 0.9rem;
    }
}

@media screen and (max-height: 600px) {
    .modal-content {
        margin: 10px auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group textarea {
        height: 50px;
        min-height: 50px;
    }
}

/* Modal animation */
@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add smooth scrolling for better user experience */
html {
    scroll-behavior: smooth;
}

/* Add animation for section entrance */
@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Hero Section */
#eco-intro {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
                url('images/eco-pattern.png');
    padding: 80px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
    }

    .intro-text {
        padding-right: 0;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-card.featured {
        transform: none;
    }
}
