:root {
    --primary-color: #00A663;
    --secondary-color: #002627;
    --text-color: #333;
    --light-text: #f4f4f4;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
    --gradient-main: linear-gradient(180deg, #00A663 0%, #002627 89%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
    /* Removed absolute centering hack that might cause issues */
    /* display: inline-block; left: 50%; transform: translateX(-50%); */
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #008c53;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 166, 99, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--secondary-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.btn-primary {
    color: white;
    padding: 10px 25px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--gradient-main);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    /* offset for fixed navbar */
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.highlight {
    color: #80e6c0;
    /* Lighter shade for contrast on gradient */
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #eee;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Why Growfet (Features) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateX(10px);
    background: var(--primary-color);
}

.service-card:hover h3,
.service-card:hover p {
    color: white;
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

/* Success Stories */
.story-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.story-card h4 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tips */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tip-card {
    position: relative;
    padding: 30px;
    background: #fdfdfd;
    border-radius: 15px;
    border: 1px solid #eee;
    overflow: hidden;
}

.tip-number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(0, 166, 99, 0.1);
    z-index: 0;
}

.tip-card h4,
.tip-card p {
    position: relative;
    z-index: 1;
}

.tip-card h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: var(--transition);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    background: #fafafa;
}

.faq-answer p {
    padding-bottom: 20px;
    color: #666;
}

/* CTA Section */
.CTA-section {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.CTA-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.CTA-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.CTA-section .btn-primary {
    background: var(--primary-color);
    border: none;
}

.CTA-section .btn-primary:hover {
    background: white;
    color: var(--primary-color);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 166, 99, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

/* Footer */
.footer {
    background: #111;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        justify-content: center;
        transition: 0.3s;
        box-shadow: none;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Support via [dir="rtl"] */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .section-title::after {
    margin: 10px auto 0;
    /* Centered, no change needed usually, but good to ensure */
}

/* Flexbox gap works in RTL automatically, but some margins need flipping */
[dir="rtl"] .nav-menu li:last-child button {
    margin-left: 0 !important;
    margin-right: 10px !important;
}

[dir="rtl"] .nav-menu li:nth-last-child(2) a.btn {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

[dir="rtl"] .service-card {
    border-left: none;
    border-right: 5px solid var(--primary-color);
}

[dir="rtl"] .service-card:hover {
    transform: translateX(-10px);
}

[dir="rtl"] .tip-number {
    right: auto;
    left: -10px;
}

[dir="rtl"] .faq-question {
    text-align: right;
}

[dir="rtl"] .faq-question i {
    transform: rotate(0deg);
    /* Initial state often same, check icon */
}

/* Icon often points right in LTR (chevron-down is symmetrical, usually fine) */
/* If using chevron-right/left, would need swap */

[dir="rtl"] .contact-info {
    text-align: right;
}

[dir="rtl"] .info-item i {
    margin-left: 15px;
    /* Add space between icon and text in RTL since flex doesn't always handle 'gap' perfectly in all browsers/contexts if mixed with margins, but here gap is used. */
}

/* Form Helper */
[dir="rtl"] .form-group label {
    text-align: right;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea {
    text-align: right;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Fix for button text visibility if overridden */
.btn-primary {
    color: white !important;
}