:root {
    --primary: #166534;
    --primary-light: #22C55E;
    --primary-dark: #14532D;
    --secondary: #84CC16;
    --secondary-light: #A3E635;
    --secondary-dark: #65A30D;
    --accent: #F97316;
    --accent-light: #FB923C;
    --accent-dark: #EA580C;
    --dark: #1C1917;
    --darker: #0C0A09;
    --light: #FAFAF9;
    --gray: #78716C;
    --gray-light: #E7E5E4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.4s ease;
    margin: 20px 40px;
    border-radius: 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 20px;
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    color: var(--dark) !important;
    border-radius: 30px;
    padding: 8px 20px !important;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary);
    color: white !important;
}

.navbar-toggler { border: none; margin-right: 20px; }
.navbar-toggler:focus { box-shadow: none; }

/* Hero */
.hero-section {
    padding: 100px 40px 120px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.hero-title span {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 3rem;
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-dashboard { position: relative; z-index: 2; }

.dash-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 40px 80px rgba(22, 101, 52, 0.12);
    position: relative;
    overflow: hidden;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-item {
    padding: 25px;
    border-radius: 20px;
    background: #f8fafc;
    transition: transform 0.3s;
}

.dash-item:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dash-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.stat-item { display: flex; flex-direction: column; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About */
.about-section {
    padding: 120px 40px;
    background: var(--darker);
    color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.about-left { position: sticky; top: 120px; }

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.section-title-light {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.about-right p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.about-feature-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.about-feature-row:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(10px);
}

.about-feature-row i {
    font-size: 2rem;
    color: var(--secondary);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(132, 204, 22, 0.1);
    border-radius: 15px;
}

/* Features - Bento */
.features-section {
    padding: 120px 40px;
    background: var(--light);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.bento-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.bento-wide { grid-column: span 2; }

.bento-tall {
    grid-row: span 2;
    background: var(--dark);
    color: white;
}

.bento-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.bento-large .bento-icon,
.bento-tall .bento-icon {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.bento-wide .bento-icon,
.bento-card:not(.bento-large):not(.bento-tall):not(.bento-wide) .bento-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary);
}

/* Services */
.services-section {
    padding: 120px 40px;
    background: #fff;
}

.service-block {
    display: flex;
    margin-bottom: 80px;
    gap: 40px;
    align-items: center;
}

.service-block.reverse { flex-direction: row-reverse; }

.service-sidebar {
    flex: 0 0 300px;
    background: var(--darker);
    color: white;
    padding: 40px;
    border-radius: 25px;
    height: 100%;
    position: sticky;
    top: 120px;
}

.service-block.reverse .service-sidebar {
    background: var(--primary-dark);
}

.service-sidebar i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-light);
}

.service-content { flex: 1; }

.service-items-alt {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-item-alt {
    background: var(--light);
    border: 1px solid var(--gray-light);
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s;
}

.service-item-alt:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.s-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Subscribe */
.subscribe-section {
    padding: 120px 0;
    background: var(--primary-dark);
    color: white;
    position: relative;
    overflow: hidden;
    transform: skewY(-3deg);
}

.subscribe-inner {
    transform: skewY(3deg);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.subscribe-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    text-align: left;
}

.subscribe-form input[type="text"],
.subscribe-form input[type="email"],
.subscribe-form input[type="date"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    padding: 15px 25px;
    width: 100%;
    margin-bottom: 15px;
}

.subscribe-form input[type="text"]::placeholder,
.subscribe-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-form input[type="text"]:focus,
.subscribe-form input[type="email"]:focus,
.subscribe-form input[type="date"]:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
}

.subscribe-form .form-check {
    padding-left: 2em;
    margin-bottom: 20px;
}

.subscribe-form .form-check-input {
    width: 20px;
    height: 20px;
    margin-left: -2em;
    margin-top: 0.25rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    cursor: pointer;
}

.subscribe-form .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.subscribe-form .form-check-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(132, 204, 22, 0.25);
}

.subscribe-form .form-check-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    cursor: pointer;
}

/* Reviews */
.reviews-section {
    padding: 120px 40px;
    background: var(--light);
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.review-card-alt {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--gray-light);
    break-inside: avoid;
    transition: transform 0.3s;
}

.review-card-alt:hover { transform: scale(1.02); }

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 15px;
}

.review-stars {
    color: var(--accent);
    margin-top: 5px;
}

/* FAQ */
.faq-section {
    padding: 120px 40px;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.faq-left { position: sticky; top: 120px; }

.faq-item-alt {
    border-bottom: 1px solid var(--gray-light);
    padding: 20px 0;
    cursor: pointer;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--gray);
}

.faq-item-alt.active .faq-a {
    max-height: 200px;
    padding-top: 15px;
}

.faq-item-alt.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-toggle {
    transition: transform 0.3s;
    font-size: 1.5rem;
    color: var(--gray);
}

/* Contact */
.contact-section {
    padding: 0;
    background: var(--darker);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 80vh;
}

.contact-info-side {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-info-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
    color: white;
}

.contact-form-side {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-side .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    color: white;
    margin-bottom: 15px;
}

.contact-form-side .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-side .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    box-shadow: none;
    color: white;
}

/* Page Hero for inner pages */
.page-hero {
    padding: 140px 40px 80px;
    background: var(--darker);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(34,197,94,0.15) 0%, transparent 50%);
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 700px; margin: 0 auto; }

/* Content Page */
.content-page {
    padding: 100px 40px;
    background: var(--light);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.content-container h2 {
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.content-container h2:first-child { margin-top: 0; }
.content-container p { color: var(--gray); margin-bottom: 1.2rem; }
.content-container ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.content-container li { color: var(--gray); margin-bottom: 0.5rem; }

/* Footer */
.footer {
    background: var(--darker);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    border: none;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
}

.btn-accent-custom {
    background: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

.btn-accent-custom:hover {
    background: var(--accent-dark);
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Form Controls (general) */
.form-control {
    border-radius: 10px;
    padding: 12px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(22,101,52,0.15);
}

/* Responsive */
@media (max-width: 992px) {
    .navbar { margin: 10px 20px; }
    .hero-title { font-size: 2.5rem; }
    .hero-title span { font-size: 2rem; }
    .about-grid, .faq-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-left, .faq-left { position: static; }
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .bento-large, .bento-wide, .bento-tall {
        grid-column: span 2;
        grid-row: span 1;
    }
    .service-block, .service-block.reverse { flex-direction: column; }
    .service-sidebar {
        position: static;
        width: 100%;
        flex: none;
    }
    .masonry-grid { column-count: 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-section, .about-section, .features-section,
    .services-section, .reviews-section, .faq-section,
    .content-page { padding: 60px 20px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide, .bento-tall { grid-column: span 1; }
    .contact-info-side, .contact-form-side { padding: 40px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .content-container { padding: 30px; }
    .page-hero h1 { font-size: 2rem; }
}