/* =========================================
   1. ROOT VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette - Theme: "Forest Sunset" */
    --primary-color: #052e2b;
    /* Deep Teal */
    --secondary-color: #0f766e;
    /* Teal 700 */
    --accent-color: #22c55e;
    /* Emerald 500 */
    --accent-hover: #16a34a;
    /* Emerald 600 */
    --highlight: #f59e0b;
    /* Amber (CTAs) */

    --text-light: #f8fafc;
    --text-dark: #0f172a;
    --text-gray: #6b7280;

    --bg-light: #ffffff;
    --bg-off-white: #f6fffb;
    /* Soft green-tint white */
    --bg-dark: #04110f;
    /* Deep forest */

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #052e2b 0%, #04110f 100%);
    --gradient-accent: linear-gradient(90deg, #22c55e 0%, #14b8a6 55%, #f59e0b 100%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 10px -6px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 14px 22px -10px rgba(0, 0, 0, 0.30);
    --shadow-glow: 0 0 22px rgba(34, 197, 94, 0.35);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.main-header {
    background-color: var(--primary-color);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.main-header.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-box {
    display: flex;
    align-items: center;
}

.logo-box img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure logo is white */
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Hero Particles Background Animation */
.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: -50px;
    left: -50px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--highlight);
    bottom: -100px;
    right: -100px;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #8b5cf6;
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-headline {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.5s;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.7s;
}

.hero-btns {
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.9s;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.dashboard-mockup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-glow);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: floatDashboard 6s infinite ease-in-out;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services-section {
    padding: var(--section-padding);
    background-color: var(--bg-off-white);
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-color);
    transition: 0.4s ease;
    z-index: -1;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.service-card:hover .service-icon {
    background: white;
    color: var(--accent-color);
}

.service-card:hover .service-desc {
    color: #e2e8f0;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* =========================================
   6. INTERACTIVE CALCULATOR
   ========================================= */
.calculator-section {
    padding: var(--section-padding);
    background: var(--bg-dark);
    color: white;
    position: relative;
}

.calc-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--secondary-color);
    color: white;
    border-radius: 8px;
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent-color);
}

.range-wrap {
    margin-top: 10px;
}

.range-wrap input[type=range] {
    width: 100%;
    cursor: pointer;
}

.calc-results {
    background: var(--gradient-accent);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.result-box {
    margin-bottom: 20px;
}

.result-box h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 5px;
}

.result-box .value {
    font-size: 2.5rem;
    font-weight: 800;
}

/* =========================================
   7. SAMPLE REPORT (CSS GRID VISUAL)
   ========================================= */
.report-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.report-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.report-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.metric-card h5 {
    color: var(--text-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.metric-card p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 5px;
}

.chart-visual {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.bar {
    width: 40px;
    background: var(--accent-color);
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 1s ease;
    height: 0;
    /* Animated via JS */
}

.bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--bg-off-white);
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    min-width: 350px;
    box-shadow: var(--shadow-sm);
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #ccc;
    border-radius: 50%;
    margin-right: 15px;
}

/* =========================================
   9. CONTACT FORM & PAGE
   ========================================= */
.contact-page-section {
    padding-top: 150px;
    padding-bottom: 100px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-gray);
    pointer-events: none;
    transition: 0.3s;
    background: white;
    padding: 0 5px;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* =========================================
   10. LEGAL PAGES
   ========================================= */
.legal-content {
    padding: 150px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: var(--text-gray);
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about img {
    height: 35px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
}

/* =========================================
   12. ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatDashboard {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(-15px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1000px);
    }

    /* Adjust based on content width */
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 0.8s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   13. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        height: auto;
        padding-bottom: 50px;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .calc-wrapper {
        padding: 20px;
    }

    .report-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-headline {
        font-size: 2.5rem;
    }
}