/* Root Variables */
:root {
    --primary: #499D4F;
    --primary-dark: #39754F;
    --primary-light: #6BBF6F;
    --background: #ffffff;
    --surface: #f8faf9;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #737373;
    --border: #e5e5e5;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(73, 157, 79, 0.05) 0%, rgba(57, 117, 79, 0.05) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

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

/* Reusable Button Classes */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    line-height: 1.2; /* Ensure consistent text alignment */
}

.button--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.button--primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.button--secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

/* Header */
.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.logo h1 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0; /* Remove default margin */
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a:not(.button) { /* Target non-button links */
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-links a:not(.button):hover {
    color: var(--primary);
}

.nav-links a:not(.button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.button):hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, rgba(73, 157, 79, 0.02) 0%, rgba(57, 117, 79, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(73,157,79,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: center;
    max-width: 700px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle { /* New class for the h3 in hero */
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p:not(.hero-subtitle) { /* Target the main hero paragraph */
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Button specific overrides for hero */
.hero .button--primary,
.hero .button--secondary {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect for primary hero button */
.hero .button--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero .button--primary:hover::before {
    left: 100%;
}

.hero .button--primary {
    box-shadow: var(--shadow-md);
}

.hero .button--primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.hero-image {
    max-width: 100%;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-subtle);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--surface);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2.75rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 80px;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 0;
}

.feature {
    background: white;
    padding: 40px 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 0; /* Remove default bottom margin */
}

/* Team Section */
.team {
    background: var(--surface);
    padding: 120px 0;
    position: relative;
}

.team-member {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-member img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.team-member h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.team-member .role {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center; 
}

.team-member p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: justify;
}

.team-member h4 {
    text-align: justify;
    font-size: 1.25rem; /* Adjust heading size */
    margin-top: 24px; /* Add top margin for separation */
    margin-bottom: 16px; /* Adjust bottom margin */
    color: var(--text-primary); /* Ensure consistent color */
    font-weight: 600; /* Adjust font weight */
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.tech-item {
    background: var(--gradient-subtle);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    color: var(--primary-dark);
    font-weight: 500;
    border: 1px solid rgba(73, 157, 79, 0.1);
    transition: var(--transition);
}

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

/* CTA Section */
.cta {
    text-align: center;
    padding: 120px 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    /* Removed redundant max-width and centering styles */
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    margin: 0; /* Remove default margin */
}

.footer p {
    opacity: 0.7;
    color: white !important;
    margin: 0; /* Remove default margin */
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-socials img {
    border-radius: 8px; /* Apply border-radius to images */
    transition: opacity 0.2s ease;
}

.footer-socials a:hover img {
    opacity: 0.8;
}


/* FAQ Section */
.faq {
    padding: 120px 0;
    background: white;
}

.faq-list {
    /* Container for FAQ items */
}

.faq-item {
    background: var(--surface);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 24px 32px;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    user-select: none;
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space between text and icon */
    align-items: center; /* Align items vertically */
}

.faq-question::after {
    content: '+'; /* Plus icon */
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-left: 16px; /* Add space between text and icon */
}

.faq-item.active .faq-question::after {
    content: '−'; /* Minus icon when active */
}

.faq-question:hover {
    color: var(--primary);
}

/* FAQ Answer Container */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 32px; /* Start with horizontal padding */
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Adjust if needed for very long content */
    padding: 0 32px 24px; /* Add bottom padding when open */
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.faq-answer p:first-of-type {
    padding-top: 16px; /* Add top padding for the first paragraph inside the answer */
}


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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 80px;
    }
    .hero-text {
        text-align: left;
        max-width: 500px;
    }
    .hero h2 {
        font-size: 4rem;
    }
    .hero-subtitle {
        text-align: left;
    }
    .hero p:not(.hero-subtitle) {
        text-align: left;
    }
    .cta-buttons {
        justify-content: flex-start;
    }
    .hero-image {
        max-width: 550px;
    }
}

@media (max-width: 1024px) {
    .hero h2 {
        font-size: 3rem;
    }
    .hero-subtitle,
    .hero p:not(.hero-subtitle) {
        font-size: 1.125rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    .nav-links {
        display: none; /* Hide desktop nav on mobile */
    }
    .hero {
        padding: 80px 0 60px;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero-subtitle,
    .hero p:not(.hero-subtitle) {
        font-size: 1rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero .button--primary,
    .hero .button--secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .features, .faq, .team, .cta {
        padding: 80px 0;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature {
        padding: 32px 24px;
    }
    .team-member {
        padding: 40px 24px;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        margin-bottom: 40px; /* Reduce margin on smaller screens */
    }
    .faq-item h3 {
        padding: 20px 24px;
        font-size: 1.125rem;
    }
    .faq-item h3::after {
        right: 24px;
    }
    .faq-item p {
        padding: 0 24px 20px;
    }
    .faq-item p:first-of-type {
        padding-top: 12px;
    }
    .footer-socials {
        gap: 12px; /* Reduce gap on smaller screens */
    }
    .footer-socials img {
        width: 32px; /* Adjust image size */
        height: 32px;
    }
    .ab-toggle {
        position: static;
        display: block;
        width: 100%;
        margin: 0 0 16px 0;
        border-radius: var(--border-radius);
        top: auto;
        right: auto;
        box-shadow: var(--shadow-sm);
        font-size: 1.05rem;
    }
    .ab-tooltip {
        right: 50%;
        left: 50%;
        transform: translate(-50%, 0);
        top: 110%;
        width: 90vw;
        max-width: 320px;
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .logo h1 {
        font-size: 1.5rem;
    }
    .logo img {
        width: 36px;
        height: 36px;
    }
    .faq-item h3 {
        padding: 20px 24px;
        font-size: 1.125rem;
    }
    .faq-item h3::after {
        right: 24px;
    }
    .faq-item p {
        padding: 0 24px 20px;
    }
    .faq-item p:first-of-type {
        padding-top: 12px;
    }
    .footer-socials img {
        width: 30px; /* Further adjust image size */
        height: 30px;
    }
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.mobile-nav-toggle:hover {
    background: var(--surface);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 150;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    z-index: 200;
    padding: 80px 32px 32px;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.mobile-nav-close:hover {
    background: var(--surface);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-links a:not(.button) { /* Target non-button links in mobile nav */
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.mobile-nav-links a:not(.button):hover {
    color: var(--primary);
    padding-left: 8px;
}

/* Mobile breakpoint adjustments */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    .container {
        padding: 0 16px;
    }
    .logo h1 {
        font-size: 1.5rem;
    }
    .logo img {
        width: 36px;
        height: 36px;
    }
    .nav-links {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    /* Adjust hero section for smaller header */
    .hero {
        padding: 80px 0 60px;
    }
    .faq-question {
        padding: 20px 24px;
        font-size: 1.125rem;
    }
    .faq-answer {
        padding: 0 24px; /* Start with horizontal padding */
    }
    .faq-item.active .faq-answer {
        padding: 0 24px 20px; /* Add bottom padding when open */
    }
    .faq-answer p:first-of-type {
        padding-top: 12px; /* Adjust top padding */
    }
}

/* A/B Toggle Styles (Keep as is, they are specific) */
.ab-toggle {
    position: static;
    top: 32px;
    right: 32px;
    z-index: 2;
    padding: 8px 22px;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    letter-spacing: 0.01em;
    overflow: visible;
}

.ab-toggle:hover,
.ab-toggle:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px) scale(1.04);
}

.ab-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 240px;
    background: #222;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px 16px;
    position: absolute;
    z-index: 10;
    top: 110%;
    right: 50%;
    transform: translateX(50%);
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
}

.ab-toggle:hover .ab-tooltip,
.ab-toggle:focus .ab-tooltip {
    visibility: visible;
    opacity: 1;
}
