/* ===================================================================
   Table of Contents
======================================================================
  - 1. Global Styles & Variables
  - 2. Typography
  - 3. Layout & Container
  - 4. Buttons & Links
  - 5. Header & Navigation
  - 6. Footer
  - 7. Hero Section
  - 8. Services Section
  - 9. About Us Section
  - 10. Dashboard Section
  - 11. Industries Section
  - 12. Testimonials Section
  - 13. Calculator Section
  - 14. CTA Section
  - 15. Contact Page Styles
  - 16. Legal Page Styles
  - 17. Animations & Effects
  - 18. Responsive Design
=================================================================== */

/* ============================================ */
/*           1. GLOBAL STYLES & VARIABLES       */
/* ============================================ */
:root {
    --primary-color: #0e0a1a; /* Deep purple-black base */
    --secondary-color: #1a1033; /* Slightly lighter background for sections */
    --accent-color: #b26ff0; /* Vivid violet-magenta accent */
    --text-light: #e6e1f9; /* Soft light lavender-white for main text */
    --text-medium: #a197c2; /* Muted cool gray-violet for secondary text */
    --text-dark: #6c5b89; /* Subtle dark purple tone */
    --background-light: #0a0715; /* Overall dark background */
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
    --box-shadow: 0 10px 30px -15px rgba(178, 111, 240, 0.25);
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--text-medium);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================ */
/*              2. TYPOGRAPHY                   */
/* ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

/* ============================================ */
/*              3. LAYOUT & CONTAINER           */
/* ============================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-dark {
    background-color: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    display: block;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-medium);
}

/* ============================================ */
/*              4. BUTTONS & LINKS              */
/* ============================================ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================ */
/*              5. HEADER & NAVIGATION          */
/* ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: top 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 5px 20px rgba(2, 12, 27, 0.7);
}

.header.hidden {
    top: -100px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo img {
    height: 40px;
    filter: invert(1);
    width: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--accent-color);
}

.header-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.25s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.25s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Mobile Nav Open State */
.nav-open .hamburger {
    background: transparent;
}

.nav-open .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-open .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* ============================================ */
/*                   6. FOOTER                  */
/* ============================================ */
.footer {
    background-color: #020c1b;
    color: var(--text-medium);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 48px;
    filter: invert(1);
    width: auto;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-medium);
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--accent-color);
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-heading {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-contact strong {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #112240;
    font-size: 0.85rem;
}

/* ============================================ */
/*                   7. HERO SECTION            */
/* ============================================ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: var(--header-height) 0;
    overflow: hidden;
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background-animation .circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.05);
    animation: float 20s infinite linear;
}

.hero-background-animation .circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 15%;
    animation-duration: 25s;
}

.hero-background-animation .circle:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 70%;
    animation-duration: 18s;
}

.hero-background-animation .circle:nth-child(3) {
    width: 500px;
    height: 500px;
    top: 40%;
    left: -10%;
    animation-duration: 30s;
}

.hero-background-animation .circle:nth-child(4) {
    width: 200px;
    height: 200px;
    top: 80%;
    left: 40%;
    animation-duration: 22s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-40px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

/* ============================================ */
/*              8. SERVICES SECTION             */
/* ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.7);
    border-color: var(--accent-color);
}

.service-card-icon {
    color: var(--accent-color);
    margin-bottom: 25px;
}

.service-card-icon svg {
    width: 48px;
    height: 48px;
}

.service-card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-card-link {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================ */
/*               9. ABOUT US SECTION            */
/* ============================================ */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 2;
}

.about-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: var(--border-radius);
    top: 20px;
    left: 20px;
    z-index: 1;
    transition: all var(--transition-speed);
}

.about-image-wrapper:hover .about-image-bg {
    top: 15px;
    left: 15px;
}

.about-features {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    color: var(--accent-color);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    margin-top: 5px;
}

.about-features h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.about-features p {
    font-size: 0.95rem;
    margin-bottom: 0;
}


/* ============================================ */
/*              10. DASHBOARD SECTION           */
/* ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--accent-color);
}

.dashboard-card h4 {
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.dashboard-metric {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.dashboard-trend {
    font-weight: 600;
}

.dashboard-trend.positive {
    color: #64ffda;
}

.dashboard-trend.negative {
    color: #ff6489;
}

/* ============================================ */
/*             11. INDUSTRIES SECTION           */
/* ============================================ */
.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.industry-item {
    background-color: var(--primary-color);
    padding: 20px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: var(--text-light);
    transition: all var(--transition-speed);
    border: 1px solid #233554;
}

.industry-item:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.industry-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


/* ============================================ */
/*            12. TESTIMONIALS SECTION          */
/* ============================================ */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 50px;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 250px;
    /* Adjust as needed */
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 25px;
    position: relative;
    padding: 0 20px;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '“';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    opacity: 0.5;
}

.testimonial-text::before {
    content: '“';
    top: -10px;
    left: -10px;
}

.testimonial-text::after {
    content: '”';
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    margin-top: 20px;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--white);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    border: 1px solid var(--text-medium);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all var(--transition-speed);
}

.slider-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

/* ============================================ */
/*            13. CALCULATOR SECTION            */
/* ============================================ */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: var(--border-radius);
}

.calculator-form .form-group {
    margin-bottom: 25px;
}

.calculator-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-light);
}

.calculator-form input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 5px;
    outline: none;
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    cursor: pointer;
    border-radius: 50%;
}

.calculator-form input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    cursor: pointer;
    border-radius: 50%;
}

.calculator-form .form-group span {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 5px;
}

.calculator-results {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.calculator-results h4 {
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #233554;
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-item strong {
    color: var(--text-light);
    font-size: 1.2rem;
}

.result-item.total-roi strong {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.calculator-disclaimer {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-top: auto;
    padding-top: 20px;
}


/* ============================================ */
/*               14. CTA SECTION                */
/* ============================================ */
.cta-container {
    background-color: var(--secondary-color);
    padding: 60px;
    border-radius: var(--border-radius);
    text-align: center;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ============================================ */
/*            15. CONTACT PAGE STYLES           */
/* ============================================ */
.page-hero {
    padding: 150px 0 80px;
    text-align: center;
    background-color: var(--secondary-color);
}

.page-title {
    font-size: 3.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--secondary-color);
    border: 1px solid #233554;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-details {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-details svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-details strong {
    display: block;
    color: var(--text-light);
}

.contact-subtitle {
    margin-top: 40px;
}


/* ============================================ */
/*             16. LEGAL PAGE STYLES            */
/* ============================================ */
.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-light);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.legal-content p,
.legal-content li {
    line-height: 1.8;
    color: var(--text-medium);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}


/* ============================================ */
/*           17. ANIMATIONS & EFFECTS           */
/* ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-left.is-visible,
.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* ============================================ */
/*            18. RESPONSIVE DESIGN             */
/* ============================================ */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
    }

    .about-features li {
        text-align: left;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1,
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 80px 0;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--secondary-color);
        box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
        transition: right 0.3s ease-in-out;
        padding-top: 100px;
    }

    .nav-open .nav {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .header-btn {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about,
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .testimonial-slider-wrapper {
        padding: 0;
    }

    .slider-btn {
        display: none;
    }

    /* Simpler slider on mobile, maybe auto-rotate */

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1,
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }

    .hero-cta-group a {
        width: 100%;
    }

    .cta-container {
        padding: 40px 20px;
    }
}