/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background-color: #f7fafc;
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

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

/* Header Styles */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo h1 {
    color: #2e7d32;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.logo h1:hover {
    color: #388e3c;
}

/* Desktop Navigation */
.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-desktop ul li a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-desktop ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2e7d32 0%, #388e3c 100%);
    transition: width 0.3s ease;
}

.nav-desktop ul li a:hover {
    color: #2e7d32;
}

.nav-desktop ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.nav-mobile ul {
    list-style: none;
    padding: 1rem 0;
}

.nav-mobile ul li {
    text-align: center;
    padding: 0.8rem 0;
}

.nav-mobile ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-mobile ul li a:hover {
    color: #2e7d32;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    z-index: -1;
}

/* Removed green overlay as requested */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* No background color to remove green overlay */
    opacity: 1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Enhanced shadow for better readability without green overlay */
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3); /* Added shadow for better readability without green overlay */
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: #2e7d32;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #1b5e20;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-tertiary {
    background-color: white;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.btn-tertiary:hover {
    background-color: #2e7d32;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.2);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    color: #2e7d32;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: #718096;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.tool-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s ease;
    border-top: 4px solid #2e7d32;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.05), transparent);
    transition: left 0.5s ease;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.tool-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    transition: transform 0.3s ease;
}

.tool-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
    color: #2d3748;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.tool-card p {
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Health Tips Section */
.health-tips {
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e8 100%);
    padding: 5rem 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tip-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid #2e7d32;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tip-card .tip-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    border-radius: 50%;
    margin-bottom: 1rem;
    line-height: 50px;
    font-size: 1.5rem;
}

.tip-card h4 {
    color: #2d3748;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Introduction Cards Section */
.intro-cards {
    padding: 6rem 0;
    background-color: white;
}

.intro-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.intro-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.intro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.intro-card-image {
    height: 200px;
    overflow: hidden;
    background-color: #f0fff4;
}

.intro-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.intro-card:hover .intro-card-image img {
    transform: scale(1.05);
}

.intro-card-content {
    padding: 2rem;
}

.intro-card-content h3 {
    color: #2d3748;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.intro-card-content p {
    color: #718096;
    line-height: 1.7;
    font-size: 1rem;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .intro-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .intro-card-image {
        height: 150px;
    }
    
    .intro-card-content {
        padding: 1.5rem;
    }
    
    .intro-card-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .intro-card-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

.tip-card p {
    color: #718096;
    line-height: 1.7;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32 0%, #388e3c 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-logo h3 {
    color: #c8e6c9;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-logo p {
    color: #a0aec0;
    font-size: 1rem;
    line-height: 1.7;
}

.footer-section h4 {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2e7d32 0%, #388e3c 100%);
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a, .footer-legal ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-links ul li a::before {
    content: '→';
    color: #2e7d32;
    margin-right: 0.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
    color: #c8e6c9;
    transform: translateX(5px);
}

.footer-links ul li a:hover::before {
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #4a5568;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Tools Page Styles */
.tools-section {
    padding: 5rem 0;
    background-color: #f7fafc;
}

.tool-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid #2e7d32;
}

/* Tool images removed based on user feedback */

.tool-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.tool-title {
    color: #2d3748;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 3px solid #e8f5e8;
    padding-bottom: 1rem;
    letter-spacing: -0.5px;
}

.tool-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Form Styles */
.tool-form {
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover, .form-group select:hover, .form-group textarea:hover {
    border-color: #cbd5e0;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group.half {
    flex: 1;
}

.unit-toggle {
    display: flex;
    margin-bottom: 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.unit-btn {
    flex: 1;
    padding: 1rem;
    background-color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #4a5568;
    font-family: 'Inter', sans-serif;
}

.unit-btn.active {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    transform: translateY(0);
}

.unit-btn:hover:not(.active) {
    background-color: #f7fafc;
    color: #2e7d32;
}

/* Results Styles */
.tool-results {
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e8 100%);
    padding: 2.5rem;
    border-radius: 12px;
    min-height: 250px;
    border: 1px solid #c8e6c9;
    position: relative;
    overflow: hidden;
}

.tool-results::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(56, 142, 60, 0.05) 100%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.tool-results h4 {
    color: #2e7d32;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.result-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 3px solid #2e7d32;
    position: relative;
    z-index: 2;
}

.result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.result-item strong {
    color: #2e7d32;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b5e20;
    margin: 0.5rem 0;
}

.result-description {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Meal Planner Styles */
.meal-planner-section {
    padding: 3rem 0;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: #f7fafc;
}

.about-content {
    background-color: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #2e7d32;
}

.about-text h3 {
    color: #2e7d32;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 2rem;
}

.about-text ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.about-text ul li {
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.7;
    position: relative;
}

.about-text ul li::before {
    content: '✓';
    color: #2e7d32;
    font-weight: bold;
    position: absolute;
    left: -2rem;
}

/* Legal Pages Styles */
.legal-section {
    padding: 3rem 0;
}

.legal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.legal-content h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    margin-top: 1.5rem;
}

/* Contact Page Styles */
.contact-section {
    padding: 3rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-details {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.faq {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.faq-item h4 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .tool-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group.half {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .features,
    .tools-section,
    .about-section,
    .legal-section,
    .contact-section {
        padding: 2rem 0;
    }
    
    .tool-form,
    .tool-results {
        padding: 1.5rem;
    }
    
    .tool-container {
        padding: 1.5rem;
    }
}