/*
=====================================================
    Theme: Quantum
    Author: Loren Lane Properties
    Version: 2.0
=====================================================

    TABLE OF CONTENTS
    ---------------------------------
    1.  Variables & Root Styles
    2.  Base & Reset Styles
    3.  Keyframes & Animations
    4.  Utility Classes
    5.  Header & Navigation
    6.  Hero Section & Particles
    7.  Trusted By Scroller
    8.  Services Section
    9.  Process Section
    10. Strategy Visualizer Section
    11. Results Section (Stats)
    12. Testimonial Section
    13. FAQ Section
    14. Final CTA Section
    15. Page Header & Legal Content
    16. Contact Page Specifics
    17. Footer
    18. Responsive Design
=====================================================
*/

/* 1. Variables & Root Styles
-------------------------------------------------- */
:root {
    --primary-color: #7C3AED;
    /* Vibrant Purple */
    --secondary-color: #00A9E0;
    /* Cyan/Blue */
    --bg-dark: #0D1117;
    --bg-medium: #161B22;
    --bg-light: #21262D;
    --border-color: #30363d;
    --text-light: #E6EDF3;
    --text-medium: #8B949E;
    --text-dark: #C9D1D9;

    --font-primary: 'Inter', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    --transition-speed: 0.3s;
    --container-width: 1140px;
    --section-padding: 120px 0;
}

/* 2. Base & Reset Styles
-------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: var(--font-weight-bold);
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 0.75em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--text-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* 3. Keyframes & Animations
-------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px -5px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 25px 0px var(--primary-color);
    }
}

@keyframes scroller {
    to {
        transform: translate(calc(-50% - 2rem));
    }
}

.animate-on-load {
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.4s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Utility Classes
-------------------------------------------------- */
.section-padding {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.section-title {
    margin-bottom: 4rem;
}

.section-title .subtitle {
    display: block;
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

.section-title p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    font-weight: var(--font-weight-bold);
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 5px 20px -5px rgba(124, 58, 237, 0.4);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px -5px rgba(124, 58, 237, 0.5);
}

/* 5. Header & Navigation
-------------------------------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-speed) ease;
}

#main-header.scrolled {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

#hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Nav Styles */
.nav-open #main-nav {
    transform: translateX(0);
}

.nav-open #hamburger-btn i:before {
    content: "\f00d";
}

/* Times icon */

/* 6. Hero Section & Particles
-------------------------------------------------- */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 150px 0 100px;
    text-align: center;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

#hero h1 .highlight {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p {
    font-size: 1.2rem;
    margin: 1.5rem 0 2.5rem;
}

/* 7. Trusted By Scroller
-------------------------------------------------- */
#trusted-by {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-medium);
    text-align: center;
}

#trusted-by p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.scroller {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller-inner {
    display: flex;
    gap: 4rem;
    width: fit-content;
    animation: scroller 25s linear infinite;
}

.scroller-inner span {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-medium);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 8. Services Section
-------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

/* 9. Process Section
-------------------------------------------------- */
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: flex-start;
}

.process-title-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 150px;
}

.process-steps {
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 2.5rem;
}

.step {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    background: var(--bg-dark);
    padding: 0 10px;
    font-weight: bold;
    color: var(--text-medium);
}

.step::before {
    content: '';
    width: 14px;
    height: 14px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -2.5rem;
    top: 2.5rem;
    transform: translateX(-50%);
    border: 3px solid var(--bg-dark);
}

/* 10. Strategy Visualizer Section
-------------------------------------------------- */
#strategy-visualizer {
    background-color: var(--bg-medium);
}

.visualizer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.visualizer-btn {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.visualizer-btn.active,
.visualizer-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.visualizer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.visualizer-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    opacity: 0.3;
}

.visualizer-item.active {
    opacity: 1;
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 169, 224, 0.2);
    transform: scale(1.05);
}

.visualizer-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* 11. Results Section (Stats)
-------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item h3 {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 500;
}

.stat-number-wrapper {
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: var(--font-weight-black);
    color: var(--text-light);
    line-height: 1;
}

.stat-symbol {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-left: 0.25rem;
}

/* 12. Testimonial Section
-------------------------------------------------- */
#testimonial {
    background: linear-gradient(180deg, var(--bg-medium), var(--bg-dark));
}

.testimonial-card {
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    padding: 4rem;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.quote {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.author h4 {
    margin: 0;
    color: var(--text-medium);
}

/* 13. FAQ Section
-------------------------------------------------- */
.faq-container {
    max-width: 800px;
    margin: auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-light);
    text-align: left;
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
}

.faq-question i {
    transition: transform var(--transition-speed) ease;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.faq-answer p {
    padding-top: 1rem;
    margin-bottom: 0;
    border-top: 1px solid var(--border-color);
}

/* 14. Final CTA Section
-------------------------------------------------- */
#final-cta {
    background-color: var(--bg-medium);
}

#final-cta p {
    max-width: 600px;
    margin: 1rem auto 2.5rem;
}

/* 15. Page Header & Legal Content
-------------------------------------------------- */
.page-header {
    text-align: center;
    padding-top: 180px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    margin-top: 1rem;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* 16. Contact Page Specifics
-------------------------------------------------- */
#contact-page .contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 8px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}

.contact-info-wrapper {
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item p {
    margin: 0;
}

/* 17. Footer
-------------------------------------------------- */
#main-footer {
    padding: 80px 0 0;
    background-color: var(--bg-medium);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a,
.footer-col li {
    color: var(--text-medium);
}

.footer-col a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    margin: 0;
    color: var(--text-medium);
    font-size: 0.9rem;
}


/* 18. Responsive Design
-------------------------------------------------- */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-title-sticky {
        position: static;
        text-align: center;
    }
}

@media (max-width: 991px) {
    #main-header {
        padding: 15px 0;
    }

    #main-nav {
        position: fixed;
        top: 69px;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .header-cta {
        display: none;
    }

    #hamburger-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #contact-page .contact-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .contact-info-wrapper {
        padding-left: 0;
        border-left: 0;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
    }

    .testimonial-card {
        padding: 2.5rem;
    }

    .quote {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}