/*
    Table of Contents
    -----------------
    1.  Root Variables & Global Styles
    2.  Preloader
    3.  Header & Navigation
    4.  Footer
    5.  Buttons & Forms
    6.  Utility Classes
    7.  Hero Section
    8.  Page Header (for inner pages)
    9.  Services Section
    10. About Section
    11. Process Section
    12. Interactive (ROI Calculator) Section
    13. Industries (Tabs) Section
    14. Testimonials Section
    15. CTA (Call to Action) Section
    16. Contact Page Specifics
    17. Legal Pages Specifics
    18. Helper Components (Back to Top, Chat Bubble, Popup)
    19. Animations & Keyframes
    20. Responsive Design (Media Queries)
*/


/* 1. Root Variables & Global Styles */
:root {
    --primary-dark: #0a192f;
    --secondary-dark: #112240;
    --primary-accent: #64ffda;
    --secondary-accent: #ccd6f6;
    --tertiary-accent: #8892b0;
    --lightest-slate: #a8b2d1;
    --white: #e6f1ff;
    --shadow-color: rgba(2, 12, 27, 0.7);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --header-height: 80px;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-accent) var(--primary-dark);
}

body {
    font-family: var(--font-secondary);
    background-color: var(--primary-dark);
    color: var(--tertiary-accent);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    color: var(--secondary-accent);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    max-width: 650px;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    margin-bottom: 20px;
}

.preloader-logo img {
    width: 150px;
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-bar {
    width: 150px;
    height: 4px;
    background-color: var(--secondary-dark);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar::before {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background-color: var(--primary-accent);
    animation: loading 2s ease-out forwards;
}

/* 3. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    display: flex;
    align-items: center;
    background-color: transparent;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, height var(--transition-speed) ease;
}

.header.scrolled {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px var(--shadow-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 80px;
}

.nav-logo img {
    height: 60px;
    transition: all var(--transition-speed) ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-primary);
    color: var(--secondary-accent);
    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(--primary-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover {
    color: var(--primary-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-accent);
    border-radius: 5px;
    transition: all var(--transition-speed) ease-in-out;
}

/* 4. Footer */
.footer {
    background-color: var(--secondary-dark);
    padding: 60px 0 20px;
    border-top: 1px solid var(--primary-accent);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .footer-logo img {
    height: 80px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 0.9rem;
    max-width: 100%;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--tertiary-accent);
    font-size: 1.2rem;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.footer-social a:hover {
    color: var(--primary-accent);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--secondary-accent);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-accent);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: var(--tertiary-accent);
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
}

.footer-links ul a:hover {
    color: var(--primary-accent);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--tertiary-accent);
}

.footer-contact i {
    color: var(--primary-accent);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--tertiary-accent);
}

.footer-contact a:hover {
    color: var(--primary-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(136, 146, 176, 0.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--tertiary-accent);
    margin-left: 20px;
}

.footer-legal a:hover {
    color: var(--primary-accent);
}

/* 5. Buttons & Forms */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    border-color: var(--primary-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-accent);
    border-color: var(--primary-accent);
}

.btn-secondary:hover {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    color: var(--secondary-accent);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--secondary-dark);
    border: 1px solid var(--tertiary-accent);
    border-radius: var(--border-radius);
    color: var(--white);
    font-family: var(--font-secondary);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* 6. Utility Classes */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: block;
    font-family: var(--font-primary);
    color: var(--primary-accent);
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header p {
    margin-left: auto;
    margin-right: auto;
    color: var(--lightest-slate);
}

/* 7. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-animation .circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, rgba(100, 255, 218, 0) 70%);
    animation: move 20s infinite linear;
}

.hero-bg-animation .circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 15%;
    animation-duration: 25s;
}

.hero-bg-animation .circle:nth-child(2) {
    width: 500px;
    height: 500px;
    top: 60%;
    left: 80%;
    animation-duration: 30s;
}

.hero-bg-animation .circle:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 30%;
    left: 70%;
    animation-duration: 20s;
}

.hero-bg-animation .circle:nth-child(4) {
    width: 200px;
    height: 200px;
    top: 80%;
    left: 10%;
    animation-duration: 35s;
}


.hero-content {
    max-width: 800px;
}

.hero-content .subtitle {
    font-family: var(--font-primary);
    color: var(--primary-accent);
    font-weight: 500;
    letter-spacing: 1.5px;
}

.hero-content h1 {
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--lightest-slate);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* 8. Page Header (for inner pages) */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background-color: var(--secondary-dark);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: var(--lightest-slate);
}

.breadcrumbs a:hover {
    color: var(--primary-accent);
}

.breadcrumbs span {
    color: var(--primary-accent);
}

.page-header-desc {
    font-size: 1.1rem;
    color: var(--lightest-slate);
    max-width: 600px;
    margin: 20px auto 0;
}

/* 9. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-dark);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid transparent;
    position: relative;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--tertiary-accent), var(--secondary-dark), var(--secondary-dark));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all var(--transition-speed);
}


.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 40px -15px var(--shadow-color);
}

.service-card:hover::before {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-dark), var(--secondary-dark));
}

.service-card-inner {
    transform: translateZ(20px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-link {
    display: inline-block;
    margin-top: 20px;
    font-family: var(--font-primary);
    font-weight: 500;
}

.service-link i {
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 10. About Section */
.about-section {
    background-color: var(--secondary-dark);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px -10px var(--shadow-color);
}

.about-content p {
    color: var(--lightest-slate);
}

.about-features {
    margin-top: 20px;
    margin-bottom: 30px;
}

.about-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--primary-accent);
}


/* 11. Process Section */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--tertiary-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.3;
}

.process-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.process-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--secondary-dark);
    border: 2px solid var(--primary-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-accent);
    z-index: 1;
}

.process-step:nth-child(odd) .process-icon {
    right: -30px;
}

.process-step:nth-child(even) .process-icon {
    left: -30px;
}

.process-content {
    padding: 20px 30px;
    background-color: var(--secondary-dark);
    border-radius: var(--border-radius);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(100, 255, 218, 0.1);
    z-index: -1;
}

.process-step:nth-child(odd) .step-number {
    right: 20px;
}

.process-step:nth-child(even) .step-number {
    left: 20px;
}

/* 12. Interactive (ROI Calculator) Section */
.interactive-section {
    background-color: var(--secondary-dark);
}

.interactive-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.roi-form {
    margin-top: 30px;
}

.roi-form .form-group {
    max-width: 350px;
}

.roi-result-display {
    background-color: var(--primary-dark);
    border-radius: var(--border-radius);
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--tertiary-accent);
}

.result-placeholder {
    text-align: center;
    color: var(--tertiary-accent);
}

.result-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.roi-output {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.roi-output h4 {
    color: var(--primary-accent);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.roi-output .roi-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.roi-output .roi-description {
    font-size: 0.9rem;
    color: var(--lightest-slate);
}

/* 13. Industries (Tabs) Section */
.industries-tabs-wrapper {
    background: var(--secondary-dark);
    border-radius: var(--border-radius);
    padding: 40px;
}

.industries-tabs {
    display: flex;
    border-bottom: 1px solid var(--tertiary-accent);
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-link {
    padding: 15px 25px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--lightest-slate);
    font-family: var(--font-primary);
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-accent);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.tab-link:hover,
.tab-link.active {
    color: var(--primary-accent);
}

.tab-link.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.tab-content img {
    border-radius: var(--border-radius);
}

/* 14. Testimonials Section */
.testimonials-section {
    background-color: var(--secondary-dark);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    height: 350px;
    /* Adjust as needed */
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-content {
    background-color: var(--primary-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
    margin-bottom: 30px;
}

.testimonial-content i.fa-quote-left {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--primary-accent);
    opacity: 0.2;
}

.testimonial-content p {
    font-style: italic;
    color: var(--lightest-slate);
    font-size: 1.1rem;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-accent);
}

.author-info h4 {
    margin: 0;
    color: var(--secondary-accent);
}

.author-info span {
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-btn {
    background: var(--secondary-dark);
    border: 1px solid var(--tertiary-accent);
    color: var(--primary-accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    pointer-events: all;
}

.slider-btn:hover {
    background: var(--primary-accent);
    color: var(--primary-dark);
}

#prevBtn {
    transform: translateX(-70px);
}

#nextBtn {
    transform: translateX(70px);
}

/* 15. CTA (Call to Action) Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
}

.cta-content p {
    color: var(--lightest-slate);
    margin-bottom: 30px;
}

/* 16. Contact Page Specifics */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background-color: var(--secondary-dark);
    padding: 60px;
    border-radius: var(--border-radius);
}

.contact-info-block h3 {
    margin-bottom: 20px;
}

.contact-info-block p {
    color: var(--lightest-slate);
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-accent);
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.info-text p,
.info-text a {
    margin: 0;
    color: var(--tertiary-accent);
}

.contact-social-links h4 {
    margin-top: 30px;
}


.contact-form-block {
    background: var(--primary-dark);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-form-block h3,
.contact-form-block p {
    text-align: left;
    margin-left: 0;
}

.contact-form-block p {
    color: var(--lightest-slate);
    margin-bottom: 30px;
}


/* 17. Legal Pages Specifics */
.legal-content {
    background: var(--secondary-dark);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--primary-dark);
    padding: 50px;
    border-radius: var(--border-radius);
}

.content-wrapper h2 {
    color: var(--primary-accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--tertiary-accent);
}

.content-wrapper p,
.content-wrapper li {
    color: var(--lightest-slate);
    line-height: 1.7;
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 1rem;
}


/* 18. Helper Components (Back to Top, Chat Bubble, Popup) */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.chat-bubble {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
    transition: transform 0.3s ease;
    z-index: 999;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background: var(--secondary-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    transform: scale(0.5);
    transform-origin: bottom left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chat-window.open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--primary-dark);
    padding: 15px;
    color: var(--secondary-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--secondary-accent);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    height: 200px;
    color: var(--lightest-slate);
}

.chat-footer {
    display: flex;
    border-top: 1px solid var(--tertiary-accent);
}

.chat-footer input {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    color: var(--white);
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: var(--primary-accent);
    color: var(--primary-dark);
    border: none;
    padding: 0 20px;
    cursor: pointer;
}


.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--secondary-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--tertiary-accent);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-accent);
    margin-bottom: 20px;
}

.popup-content h3 {
    color: var(--white);
}

.popup-content p {
    color: var(--lightest-slate);
}

.popup-content .btn {
    margin-top: 20px;
}


/* 19. Animations & Keyframes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(5) {
    transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(6) {
    transition-delay: 0.5s;
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-load:nth-child(1) {
    animation-delay: 0.3s;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.5s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.7s;
}

.animate-on-load:nth-child(4) {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes loading {
    to {
        width: 100%;
    }
}

@keyframes move {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(20px, 40px);
    }

    50% {
        transform: translate(-30px, -10px);
    }

    75% {
        transform: translate(10px, -30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* 20. Responsive Design (Media Queries) */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--secondary-dark);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: right var(--transition-speed) ease-in-out;
        box-shadow: -10px 0px 30px -15px var(--shadow-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        /* Ensure it's above the nav menu */
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .about-features {
        text-align: left;
        max-width: 400px;
        margin: 20px auto 30px;
    }

    .interactive-container {
        grid-template-columns: 1fr;
    }

    .roi-form .form-group {
        max-width: none;
    }

    .tab-content.active {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tab-content img {
        margin-top: 20px;
    }

    .slider-btn {
        display: none;
    }

    /* Hide side arrows on smaller screens */
    .slider-controls {
        position: static;
        transform: none;
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    .slider-controls .slider-btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        transform: none !important;
    }


    .contact-page-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-legal {
        text-align: center;
    }

    .footer-legal a {
        margin: 0 10px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .process-timeline::after {
        left: 30px;
    }

    .process-step {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        text-align: left !important;
    }

    .process-step:nth-child(odd) {
        left: 0;
    }

    .process-step:nth-child(even) {
        left: 0;
    }

    .process-icon {
        left: 0px !important;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .contact-page-wrapper {
        padding: 30px;
    }

    .legal-container {
        padding: 30px;
    }

    .chat-bubble {
        left: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .chat-window {
        width: calc(100vw - 30px);
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

}