/* ==========================================================================
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   1. ROOT VARIABLES & GLOBAL STYLES
   2. REUSABLE COMPONENTS (Buttons, Containers, etc.)
   3. HEADER & NAVIGATION
   4. HERO SECTION
   5. PARTNERS SECTION
   6. SERVICES SECTION
   7. ABOUT US & STATS SECTION
   8. INDUSTRIES & 3D GLOBE SECTION
   9. ROI CALCULATOR SECTION
   10. PRICING SECTION
   11. TESTIMONIALS SECTION
   12. CTA SECTION
   13. FOOTER
   14. LIVE CHAT SIMULATOR
   15. ANIMATIONS & EFFECTS
   16. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* ==========================================================================
   1. ROOT VARIABLES & GLOBAL STYLES
   ========================================================================== */
:root {
    --header-height: 5rem;

    /* Colors */
    --primary-color: #ff6b6b;
    --primary-color-dark: #e05252;
    --secondary-color: #4d96ff;
    --secondary-color-dark: #3a7de0;
    --bg-dark-1: #0a043c;
    --bg-dark-2: #14084f;
    --bg-light: #ffffff;
    --text-light: #f4f4f4;
    --text-muted: #aab2d1;
    --text-dark: #111;
    --border-color: rgba(77, 150, 255, 0.2);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    /* Font sizes */
    --fs-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --fs-h2: clamp(2rem, 4vw + 1rem, 3rem);
    --fs-h3: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    --fs-body: 1rem;

    /* Transitions & Borders */
    --transition-smooth: all 0.3s ease-in-out;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--fs-body);
    background-color: var(--bg-dark-1);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. REUSABLE COMPONENTS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    display: block;
    text-align: center;
    color: var(--secondary-color);
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    text-align: center;
}

.button--primary {
    background-color: var(--primary-color);
    color: var(--bg-light);
    border-color: var(--primary-color);
}

.button--primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.button--secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.button--secondary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-light);
    transform: translateY(-3px);
}

.button--ghost {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.5);
}

.button--ghost:hover {
    background-color: var(--bg-light);
    color: var(--bg-dark-1);
}

.button--glow {
    position: relative;
    overflow: hidden;
}

.button--glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    opacity: 0;
}

.button--primary:hover::before {
    opacity: 1;
}

.button--lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.button--full {
    width: 100%;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s, padding 0.4s, box-shadow 0.4s;
    padding: 1rem 0;
}

.header.scrolled {
    background-color: rgba(10, 4, 60, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav__logo img {
    height: auto;
    width: 200px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.nav__logo:hover img {
    filter: drop-shadow(0 0 5px var(--secondary-color));
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    color: var(--text-light);
    font-family: var(--font-primary);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__link.active-link {
    color: var(--primary-color);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__toggle, .nav__close {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(10, 4, 60, 0.8), rgba(20, 8, 79, 0.9)), url('https://images.pexels.com/photos/1595391/pexels-photo-1595391.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero__bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark-1), transparent);
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero__data {
    max-width: 600px;
}

.hero__title {
    font-size: var(--fs-h1);
    margin-bottom: 1.5rem;
}

.hero__title .highlight {
    color: var(--primary-color);
    display: inline-block;
    position: relative;
}

.hero__description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
}

.hero__3d-object-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hero__3d-object {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 20s infinite linear;
}

.hero__3d-object .face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(77, 150, 255, 0.2);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 20px var(--secondary-color-dark) inset;
    border-radius: var(--border-radius);
}

.face.front  { transform: translateZ(100px); }
.face.back   { transform: rotateY(180deg) translateZ(100px); }
.face.right  { transform: rotateY(90deg) translateZ(100px); }
.face.left   { transform: rotateY(-90deg) translateZ(100px); }
.face.top    { transform: rotateX(90deg) translateZ(100px); }
.face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* ==========================================================================
   5. PARTNERS SECTION
   ========================================================================== */
.partners {
    padding: 2rem 0;
    background-color: rgba(20, 8, 79, 0.5);
}

.partners__title {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.partners__logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.partners__logos span {
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.7;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partners__logos span:hover {
    opacity: 1;
    color: var(--text-light);
    transform: scale(1.1);
}

/* ==========================================================================
   6. SERVICES SECTION
   ========================================================================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(145deg, var(--bg-dark-2), var(--bg-dark-1));
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--secondary-color-dark);
}

.service-card__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s;
}

.service-card:hover .service-card__icon {
    transform: scale(1.1);
}

.service-card__title {
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
}

.service-card__description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 100px;
}

.service-card__link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card__link i {
    transition: transform 0.3s ease;
}

.service-card__link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   7. ABOUT US & STATS SECTION
   ========================================================================== */
.about {
    background-color: var(--bg-dark-2);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.about__image-content {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about__image-content img {
    display: block;
    transition: transform 0.5s ease;
}
.about__image-content:hover img {
    transform: scale(1.05);
}

.about__data .section-title,
.about__data .section-subtitle {
    text-align: left;
}
.about__data .section-title::after {
    left: 0;
    transform: translateX(0);
}

.about__description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about__stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat__text {
    font-family: var(--font-primary);
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   8. INDUSTRIES & 3D GLOBE SECTION
   ========================================================================== */
.industries__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.industries__data .section-title,
.industries__data .section-subtitle {
    text-align: left;
}
.industries__data .section-title::after {
    left: 0;
    transform: translateX(0);
}

.industries__description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.industries__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.industries__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.industries__list i {
    color: var(--secondary-color);
}

.industries__globe-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.globe {
    width: 350px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-globe 30s linear infinite;
}

.globe-sphere {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url(https://www.solarsystemscope.com/textures/download/2k_earth_nightmap.jpg);
    background-size: cover;
    box-shadow: -40px -40px 40px rgba(255, 255, 255, 0.1) inset,
                20px 20px 40px rgba(0, 0, 0, 0.8) inset,
                0 0 100px rgba(77, 150, 255, 0.5);
}

.globe-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    transform-origin: 0 0;
    transform: 
        rotateY(calc(var(--lon) * 1deg)) 
        rotateX(calc(var(--lat) * -1deg)) 
        translateZ(175px);
    animation: pulse-marker 1.5s infinite ease-in-out;
}

/* ==========================================================================
   9. ROI CALCULATOR SECTION
   ========================================================================== */
.calculator-section {
    background-color: var(--bg-dark-2);
}

.roi-calculator {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background: linear-gradient(145deg, var(--bg-dark-1), #1a0a5f);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-dark-1);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-light);
    transition: transform .2s ease;
}

.form-group input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.1);
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-light);
    transition: transform .2s ease;
}

.form-group .range-value {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.roi-calculator__results {
    background: var(--bg-dark-1);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 3px solid var(--primary-color);
}

.results__title {
    font-size: var(--fs-h3);
    margin-bottom: 2rem;
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-item h4 {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.result-item p {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--text-light);
}

.result-item.highlight p {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.result-item small {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-top: 2rem;
}

/* ==========================================================================
   10. PRICING SECTION
   ========================================================================== */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.pricing-card {
    background: linear-gradient(145deg, var(--bg-dark-2), var(--bg-dark-1));
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.4);
}

.pricing-card__badge {
    position: absolute;
    top: 1.5rem;
    right: -45px;
    background: var(--primary-color);
    color: var(--bg-light);
    padding: 0.5rem 3rem;
    font-family: var(--font-primary);
    font-weight: 700;
    transform: rotate(45deg);
    font-size: 0.9rem;
}

.pricing-card__header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.pricing-card__title {
    font-size: var(--fs-h3);
}

.pricing-card__subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.pricing-card__price {
    font-size: 3.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    margin: 1.5rem 0;
}

.pricing-card__price sup {
    font-size: 1.5rem;
    font-weight: 600;
    top: -1.5em;
}

.pricing-card__price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card__features {
    margin-bottom: 2.5rem;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pricing-card__features i {
    font-size: 1.2rem;
}
.pricing-card__features .fa-check { color: var(--secondary-color); }
.pricing-card__features .fa-times { color: #555; }

/* ==========================================================================
   11. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png'), var(--bg-dark-2);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.testimonial-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0 2rem;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

.testimonial__img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    margin: 0 auto 1.5rem;
}

.testimonial__text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.testimonial__name {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-family: var(--font-primary);
    margin-bottom: 0.25rem;
}

.testimonial__company {
    color: var(--text-muted);
}

.testimonial-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.testimonial-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.testimonial-controls button:hover {
    background: var(--primary-color);
}

.testimonial-prev { transform: translateX(-20px); }
.testimonial-next { transform: translateX(20px); }

/* ==========================================================================
   12. CTA SECTION
   ========================================================================== */
.cta {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 5rem 0;
    text-align: center;
}

.cta__title {
    font-size: var(--fs-h2);
    color: var(--bg-light);
    margin-bottom: 1rem;
}

.cta__description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta .button--primary {
    background-color: var(--bg-light);
    color: var(--bg-dark-1);
    border-color: var(--bg-light);
}

.cta .button--primary:hover {
    background-color: var(--text-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.footer {
    background-color: #05021f;
    padding-top: 5rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer__logo img {
    height: auto;
    width: 200px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer__about-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer__socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--bg-dark-2);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-light);
    transform: translateY(-3px);
}

.footer__title {
    font-size: 1.2rem;
    font-family: var(--font-primary);
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer__links li, .footer__contact li {
    margin-bottom: 0.75rem;
}

.footer__links a, .footer__contact span {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer__links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.footer__contact i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.footer__bottom {
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.footer__bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    color: var(--text-muted);
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
}

.footer__legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   14. LIVE CHAT SIMULATOR
   ========================================================================== */
.live-chat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    animation: pulse-chat 2s infinite;
    transition: var(--transition-smooth);
}

.chat-bubble:hover {
    transform: scale(1.1);
    animation: none;
}

.chat-window {
    width: 350px;
    height: 450px;
    background: var(--bg-dark-2);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    transform: scale(0) translateY(20px);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
}

.live-chat.active .chat-window {
    transform: scale(1) translateY(0);
    visibility: visible;
}

.live-chat.active .chat-bubble {
    transform: scale(0);
}

.chat-header {
    background: var(--bg-dark-1);
    padding: 1rem;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 { font-size: 1.1rem; }
.chat-header button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
}
.message p {
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
}
.message.bot {
    align-self: flex-start;
}
.message.bot p {
    background: var(--bg-dark-1);
    border-top-left-radius: 0;
}
.message.user {
    margin-left: auto;
}
.message.user p {
    background: var(--primary-color);
    color: var(--bg-light);
    border-top-right-radius: 0;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-option {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.chat-option:hover {
    background: var(--secondary-color-dark);
}

/* ==========================================================================
   15. ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes spin {
    from { transform: rotateY(0) rotateX(0); }
    to   { transform: rotateY(360deg) rotateX(360deg); }
}

@keyframes rotate-globe {
    from { transform: rotateY(0); }
    to   { transform: rotateY(360deg); }
}

@keyframes pulse-marker {
    0%, 100% { transform: rotateY(calc(var(--lon) * 1deg)) rotateX(calc(var(--lat) * -1deg)) translateZ(175px) scale(1); }
    50% { transform: rotateY(calc(var(--lon) * 1deg)) rotateX(calc(var(--lat) * -1deg)) translateZ(175px) scale(1.4); }
}

@keyframes pulse-chat {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 107, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Initial page load animations */
.animate-fade-in-down { animation: fadeInDown 1s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 1s 0.3s ease-out forwards; opacity: 0; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Legal Pages Styling */
.legal-page {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 8rem 0 4rem;
}

.legal-page .header {
    background-color: var(--bg-dark-1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.legal-page .nav__actions {
    display: none;
}
.legal-page .nav__menu {
    width: 100%;
    justify-content: center;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.legal-container h1 {
    color: var(--bg-dark-1);
    font-size: var(--fs-h2);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.legal-container h2 {
    color: var(--bg-dark-2);
    font-size: var(--fs-h3);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-container p,
.legal-container li {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-container ul {
    list-style: disc;
    padding-left: 2rem;
}

.legal-container a {
    color: var(--primary-color);
    font-weight: 600;
}
.legal-container a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   16. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media screen and (max-width: 992px) {
    :root {
        --fs-h1: 3rem;
        --fs-h2: 2.25rem;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background: linear-gradient(180deg, var(--bg-dark-1), var(--bg-dark-2));
        z-index: 100;
        transition: right 0.4s ease-in-out;
        padding: 6rem 2rem 2rem;
        box-shadow: -10px 0 20px rgba(0,0,0,0.2);
    }
    .nav__menu.show-menu {
        right: 0;
    }
    .nav__list {
        flex-direction: column;
        gap: 3rem;
        align-items: flex-start;
    }
    .nav__toggle, .nav__close {
        display: block;
    }
    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        color: var(--text-light);
    }
    .nav__actions .button {
        display: none;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__data {
        max-width: 100%;
    }
    .hero__buttons {
        justify-content: center;
    }
    .hero__3d-object-wrapper {
        display: none;
    }

    .about__container, .industries__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about__data, .industries__data {
        text-align: center;
    }
    .about__data .section-title, .industries__data .section-title {
        text-align: center;
    }
    .about__data .section-title::after, .industries__data .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .about__stats {
        justify-content: center;
    }

    .roi-calculator {
        grid-template-columns: 1fr;
    }

    .footer__container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 4rem;
    }
    .section {
        padding: 4rem 0;
    }
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing__grid {
        gap: 3rem;
    }
    .testimonial-controls {
        display: none; /* Slider might need touch controls for mobile */
    }
    .testimonial-slider {
        padding-bottom: 2rem;
    }
    .testimonial-slides {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
    }
    .testimonial-slide {
        position: relative;
        opacity: 1;
        transform: none;
        scroll-snap-align: center;
    }
    
    .footer__bottom-container {
        flex-direction: column;
        text-align: center;
    }
    .footer__legal {
        margin-top: 1rem;
    }

    .live-chat {
        bottom: 1rem;
        right: 1rem;
    }

    .chat-window {
        width: calc(100vw - 2rem);
        height: calc(100vh - 8rem);
        bottom: 70px;
    }

    .legal-container {
        padding: 2rem 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    .partners__logos {
        justify-content: center;
    }
    .industries__list {
        grid-template-columns: 1fr;
        text-align: left;
    }
}