/*
================================================
TABLE OF CONTENTS
================================================
1.  GLOBAL STYLES & VARIABLES
2.  REUSABLE COMPONENTS (Buttons, Containers)
3.  HEADER & NAVIGATION
4.  FOOTER
5.  HERO SECTION
6.  PAGE HEADER (Sub-pages)
7.  SERVICES SECTION (3D Flip Cards)
8.  ABOUT SECTION & STATS COUNTER
9.  PROCESS SECTION (Timeline)
10. ROI CALCULATOR SECTION
11. TESTIMONIALS SECTION (3D Tilt Cards & Slider)
12. CTA SECTION
13. CONTACT & LEGAL PAGES
14. LIVE CHAT WIDGET
15. ANIMATIONS (Scroll Effects)
16. MEDIA QUERIES (Responsiveness)
================================================
*/

/* 1. GLOBAL STYLES & VARIABLES */
/* ================================================ */
:root {
    --primary-color: #4A90E2;
    /* A vibrant, professional blue */
    --primary-color-dark: #357ABD;
    --secondary-color: #50E3C2;
    /* A contrasting teal/mint */
    --bg-dark-primary: #121828;
    --bg-dark-secondary: #1A2238;
    --bg-dark-tertiary: #232E4C;
    --text-light: #F0F4F8;
    --text-medium: #A9B4C7;
    --text-dark: #121828;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
    --transition-slow: 0.6s ease-in-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark-primary);
    color: var(--text-medium);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. REUSABLE COMPONENTS */
/* ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.text-center .section-subtitle::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-dark-primary);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* 3. HEADER & NAVIGATION */
/* ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: transparent;
    z-index: 1000;
    transition: all var(--transition-medium);
}

.header.scrolled {
    background-color: var(--bg-dark-secondary);
    box-shadow: var(--shadow-medium);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo img {
    height: 80px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-medium);
    font-family: var(--font-heading);
    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(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle,
.nav-close {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
}

/* 4. FOOTER */
/* ================================================ */
.footer {
    background-color: var(--bg-dark-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .logo {
    margin-bottom: 1.5rem;
}

.footer-about-text {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-medium);
    transition: all var(--transition-medium);
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.footer-col-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-medium);
    transition: all var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* 5. HERO SECTION */
/* ================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg-shape {
    position: absolute;
    top: -50%;
    right: -25%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, rgba(74, 144, 226, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-3d-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-3d-shapes .shape {
    position: absolute;
    border-radius: 20%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 15%;
    left: 10%;
    transform: rotate(45deg);
    animation-duration: 12s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 20%;
    transform: rotate(-30deg);
    animation-duration: 18s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 15%;
    transform: rotate(60deg);
    animation-duration: 20s;
}

.shape-4 {
    width: 50px;
    height: 50px;
    top: 80%;
    right: 30%;
    transform: rotate(-60deg);
    animation-duration: 14s;
}

.shape-5 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 5%;
    transform: rotate(10deg);
    animation-duration: 16s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(var(--initial-rotate, 0deg));
    }

    50% {
        transform: translateY(-40px) rotate(calc(var(--initial-rotate, 0deg) + 20deg));
    }

    100% {
        transform: translateY(0) rotate(var(--initial-rotate, 0deg));
    }
}

.shape-1 {
    --initial-rotate: 45deg;
}

.shape-2 {
    --initial-rotate: -30deg;
}

/* ...and so on for other shapes */

/* 6. PAGE HEADER (Sub-pages) */
/* ================================================ */
.page-header-section {
    padding: 160px 0 80px;
    position: relative;
    background-color: var(--bg-dark-secondary);
    overflow: hidden;
}

.page-header-section .hero-bg-shape {
    top: -60%;
    right: -30%;
}

.page-header-section h1 {
    margin-bottom: 1rem;
}

.breadcrumbs a,
.breadcrumbs span {
    color: var(--text-medium);
    font-family: var(--font-heading);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
    color: var(--primary-color);
}

/* 7. SERVICES SECTION (3D Flip Cards) */
/* ================================================ */
.services-section {
    background-color: var(--bg-dark-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card-wrapper {
    perspective: 1000px;
}

.service-card {
    width: 100%;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform var(--transition-slow);
}

.service-card-wrapper:hover .service-card {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Safari */
    border-radius: var(--border-radius);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card-front {
    background: var(--bg-dark-tertiary);
}

.service-card-back {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: #fff;
    transform: rotateY(180deg);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-medium);
}

.service-card-wrapper:hover .service-icon {
    transform: scale(1.1);
}

.service-card-front h3 {
    margin-bottom: 1rem;
}

.service-card-back h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.service-card-back p {
    color: rgba(255, 255, 255, 0.9);
}

.card-link {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link i {
    transition: transform var(--transition-medium);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* 8. ABOUT SECTION & STATS COUNTER */
/* ================================================ */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.about-image img {
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-features {
    margin: 1.5rem 0 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.about-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.stats-counter {
    display: flex;
    gap: 40px;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-item p {
    margin: 0;
    color: var(--text-light);
}

/* 9. PROCESS SECTION (Timeline) */
/* ================================================ */
.process-section {
    background-color: var(--bg-dark-secondary);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    border: 4px solid var(--bg-dark-secondary);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    transition: all var(--transition-medium);
}

.timeline-item:hover .timeline-icon {
    background-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--bg-dark-tertiary);
    border-radius: var(--border-radius);
    position: relative;
}

.timeline-step {
    position: absolute;
    top: -20px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-step {
    right: 20px;
}

.timeline-item:nth-child(even) .timeline-step {
    left: 20px;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

/* 10. ROI CALCULATOR SECTION */
/* ================================================ */
.roi-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.roi-calculator {
    background-color: var(--bg-dark-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.roi-calculator .form-group {
    margin-bottom: 2rem;
}

.roi-calculator label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-dark-tertiary);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--bg-dark-secondary);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--bg-dark-secondary);
}

.range-value {
    text-align: right;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.roi-results {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.roi-results h4 {
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    font-weight: 700;
    color: var(--text-light);
}

.roi-highlight {
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
}

/* 11. TESTIMONIALS SECTION (3D Tilt Cards) */
/* ================================================ */
.testimonials-section {
    background-color: var(--bg-dark-secondary);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-card {
    flex: 0 0 100%;
    background-color: var(--bg-dark-tertiary);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

.testimonial-quote {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2rem;
}

.testimonial-quote i {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-info h4 {
    margin-bottom: 0;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.slider-btn:hover {
    background-color: var(--primary-color);
}

/* 12. CTA SECTION */
/* ================================================ */
.cta-section {
    background: linear-gradient(rgba(18, 24, 40, 0.8), rgba(18, 24, 40, 0.8)),
        url(https://images.unsplash.com/photo-1516321497487-e288fb19713f?q=80&w=2070&auto=format&fit=crop) no-repeat center center/cover;
    background-attachment: fixed;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 13. CONTACT & LEGAL PAGES */
/* ================================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background-color: var(--bg-dark-secondary);
    padding: 60px;
    border-radius: var(--border-radius);
}

.contact-info-panel h3 {
    margin-bottom: 1.5rem;
}

.contact-details-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark-tertiary);
    border-radius: 50%;
}

.contact-details-list h4 {
    margin-bottom: 5px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-dark-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-body);
    transition: border-color var(--transition-medium);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-dark-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform var(--transition-medium);
}

.popup.is-visible .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    margin-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 2rem;
}

.legal-content {
    background-color: var(--bg-dark-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: auto;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* 14. LIVE CHAT WIDGET */
/* ================================================ */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
}

.chat-bubble:hover {
    background-color: var(--primary-color-dark);
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: var(--bg-dark-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all var(--transition-medium);
}

.chat-window.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background-color: var(--bg-dark-tertiary);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
}

.chat-header h5 {
    margin: 0;
}

.chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-message.agent p {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    max-width: 80%;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: var(--bg-dark-primary);
    padding: 10px;
    border-radius: 20px;
    color: #fff;
    margin-right: 10px;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: var(--primary-color);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
}

/* 15. ANIMATIONS (Scroll Effects) */
/* ================================================ */
.animate-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-in.fade-in-up {
    transform: translateY(50px);
}

.animate-in.fade-in-left {
    transform: translateX(-50px);
}

.animate-in.fade-in-right {
    transform: translateX(50px);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 16. MEDIA QUERIES (Responsiveness) */
/* ================================================ */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .header-actions .btn {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100%;
        background-color: var(--bg-dark-secondary);
        box-shadow: var(--shadow-medium);
        padding: 60px 30px;
        transition: right var(--transition-medium);
        z-index: 100;
    }

    .nav-menu.is-active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .about-container,
    .roi-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .roi-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section-padding {
        padding: 60px 0;
    }

    h1,
    .hero-content h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        padding-left: 70px;
    }

    .timeline-icon {
        left: 0 !important;
    }

    .contact-wrapper {
        padding: 30px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .slider-controls {
        display: none;
        /* simpler on mobile, rely on swipe if implemented */
    }
}

@media (max-width: 480px) {
    .btn-lg {
        width: 100%;
        text-align: center;
    }

    .chat-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
}