/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
:root {
    --primary-color: #10b981; /* GreenSync Vibrant Green */
    --primary-hover: #059669; /* Darker Green for hover states */
    --secondary-color: #0f172a; /* Slate 900 for dark backgrounds/text */
    --text-main: #334155; /* Slate 700 for body text */
    --text-light: #94a3b8; /* Slate 400 for muted text */
    --bg-light: #f8fafc; /* Slate 50 for main background */
    --bg-white: #ffffff;
    --error-color: #ef4444;
    --success-color: #22c55e;
    
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Native SPA scrolling */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--secondary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Modern frosted glass effect */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--secondary-color);
    color: var(--bg-white) !important;
    padding: 8px 20px;
    border-radius: var(--border-radius);
}

.btn-nav:hover {
    background-color: var(--primary-color);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-section .highlight {
    color: var(--primary-color);
}

.hero-section .subtitle {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

/* ==========================================================================
   About / Features Section
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* ==========================================================================
   Contact / Lead Form Section
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.contact-section .section-title {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.contact-text {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.contact-text p {
    color: var(--text-light);
}

.form-wrapper {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
    color: var(--secondary-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.2rem;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success h3 {
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #020617; /* Slate 950 */
    color: var(--text-light);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Media Queries (Responsive Design)
   ========================================================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .form-wrapper {
        padding: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 0.75rem;
    }
}