/* ===================================================================
   TABLE OF CONTENTS
   -------------------------------------------------------------------
   01. CSS Variables & Theme
   02. Global Styles & Resets
   03. Utility & Animation Classes
   04. Header & Navigation
   05. Footer
   06. Hero Section & Typing Effect
   07. Trusted By Marquee Section
   08. Services Section
   09. Interactive Solution Finder
   10. Growth Forecaster (Calculator)
   11. Testimonials Section
   12. CTA Section
   13. Contact Page Styles
   14. Legal Page Styles
   15. Keyframes
   16. Responsive Design (Media Queries)
=================================================================== */

/* ===================================================================
   01. CSS Variables & Theme
=================================================================== */
:root {
    --bg-dark-primary: #0D1117;
    --bg-dark-secondary: #161B22;
    --border-color: #30363D;
    --accent-primary: #39FF14;
    /* Electric Green */
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 75px;
    --border-radius: 8px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===================================================================
   02. Global Styles & Resets
=================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-dark-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 3.8rem;
    font-weight: 800;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    max-width: 65ch;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    filter: brightness(0.85);
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
}

/* ===================================================================
   03. Utility & Animation Classes
=================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    color: var(--bg-dark-primary);
    background-color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    color: var(--accent-primary);
}

.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===================================================================
   04. Header & Navigation
=================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    height: var(--header-height);
    transition: all var(--transition);
}

.header.scrolled {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

.nav-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-right: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
}

/* ===================================================================
   05. Footer
=================================================================== */
.footer {
    background-color: var(--bg-dark-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

.footer-logo img {
    height: 90px;
    filter: brightness(0) invert(1);
    margin-right: 15px;
}

.footer-heading {
    color: var(--text-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact,
.footer-about-text {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-contact span {
    color: var(--text-primary);
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===================================================================
   06. Hero Section & Typing Effect
=================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(to right, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    transition: transform 0.2s ease-out;
}

.hero-content {
    max-width: 800px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-title {
    min-height: 180px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 2rem 0 2.5rem;
    max-width: 55ch;
}

.cursor {
    animation: blink 1s step-end infinite;
    background: var(--accent-primary);
}

/* ===================================================================
   07. Trusted By Marquee Section
=================================================================== */
.trusted-by-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-dark-secondary);
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    display: inline-block;
    padding: 0 40px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* ===================================================================
   08. Services Section
=================================================================== */
.services-section {
    background-color: var(--bg-dark-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-dark-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.service-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-dark-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon svg {
    fill: var(--accent-primary);
    width: 20px;
    height: 20px;
}

/* ===================================================================
   09. Interactive Solution Finder
=================================================================== */
.solution-finder-section {
    background-color: var(--bg-dark-primary);
}

.solution-finder-wrapper {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-height: 400px;
}

.solution-step {
    display: none;
}

.solution-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

.solution-steps h4 {
    margin-bottom: 20px;
}

.solution-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.option-btn {
    background: var(--bg-dark-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.option-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-dark-primary);
    border-color: var(--accent-primary);
}

.solution-result-wrapper {
    border-left: 1px solid var(--border-color);
    padding-left: 40px;
}

.solution-result {
    animation: fadeIn 0.5s;
}

.solution-result h3 {
    color: var(--accent-primary);
}

.solution-result ul {
    list-style-type: '✓ ';
    padding-left: 20px;
}

.solution-result li {
    margin-bottom: 10px;
}

/* ===================================================================
   10. Growth Forecaster (Calculator)
=================================================================== */
.forecaster-section {
    background-color: var(--bg-dark-secondary);
}

.forecaster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.forecaster-inputs h4,
.forecaster-outputs h4 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
}

.output-card {
    background: var(--bg-dark-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
}

.output-card p {
    margin: 0;
    color: var(--text-secondary);
}

.output-card span {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 5px;
    color: var(--text-primary);
}

.output-card.highlight span {
    color: var(--accent-primary);
}

.forecaster-outputs .disclaimer {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* ===================================================================
   11. Testimonials Section
=================================================================== */
.testimonials-section {
    background-color: var(--bg-dark-primary);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    overflow: hidden;
    position: relative;
    min-height: 250px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    text-align: center;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
}

.quote {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 30px;
}

.author h4 {
    margin-bottom: 5px;
}

.author span {
    color: var(--text-secondary);
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-btn {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-dark-primary);
}

/* ===================================================================
   12. CTA Section
=================================================================== */
.cta-section {
    background: var(--bg-dark-secondary);
    text-align: center;
}

.cta-section .container {
    max-width: 700px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 30px;
}

/* ===================================================================
   13. Contact Page Styles
=================================================================== */
.contact-page-section {
    padding-top: calc(var(--header-height) + 80px);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    background: var(--bg-dark-secondary);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.contact-form-wrapper .form-row {
    display: flex;
    gap: 20px;
}

.contact-form-wrapper .form-group {
    width: 100%;
    margin-bottom: 20px;
}

.contact-form-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.contact-form-wrapper input,
.contact-form-wrapper textarea,
.contact-form-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    background: var(--bg-dark-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.2);
}

.contact-details-wrapper h3 {
    margin-bottom: 15px;
}

.contact-details-wrapper p {
    margin-bottom: 25px;
}

.contact-list {
    margin-bottom: 30px;
}

.contact-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.contact-list li strong {
    color: var(--text-primary);
}

/* ===================================================================
   14. Legal Page Styles
=================================================================== */
.legal-page {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    text-align: center;
    margin-bottom: 40px;
}

.legal-page h2 {
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.75rem;
}

.legal-page ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 1.5rem;
}

/* ===================================================================
   15. Keyframes
=================================================================== */
@keyframes blink {
    50% {
        background: transparent;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===================================================================
   16. Responsive Design (Media Queries)
=================================================================== */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        min-height: 150px;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-dark-secondary);
        width: 80%;
        max-width: 300px;
        height: 100vh;
        text-align: left;
        transition: 0.3s ease-in-out;
        gap: 0;
        padding: 100px 30px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .solution-finder-wrapper,
    .forecaster-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .solution-result-wrapper {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        min-height: 120px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-slide .quote {
        font-size: 1.2rem;
    }

    .contact-form-wrapper .form-row {
        flex-direction: column;
        gap: 0;
    }
}