/*
================================================
META FLUX THEME - style.css
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  :root & CSS Variables
2.  Global & Reset Styles
3.  Typography
4.  Layout & Container
5.  Header & Navigation
6.  Mobile Menu
7.  Footer
8.  Buttons & Forms
9.  Animation & Utility Classes
10. Hero Section
11. Services Section
12. About Section
13. Process Section
14. Interactive Report Section
15. Testimonials Section
16. CTA Section
17. Page Header & Legal Content
18. Contact Page Section
19. Popups & Modals
20. Interactive Widgets (Chat, Scroll)
21. Blob Canvas
22. Responsive Design (Media Queries)
    - 1200px (Large Desktops)
    - 992px (Tablets)
    - 768px (Small Tablets / Large Mobiles)
    - 576px (Mobiles)
================================================
*/

/* 1. :root & CSS Variables */
:root {
    --color-primary: #FF61A6;
    /* Pink */
    --color-secondary: #00FFF7;
    /* Cyan */
    --color-accent: #FFD740;
    /* Yellow */
    --color-bg-dark: #0F0F1B;
    --color-bg-light: #1A1A2E;
    --color-bg-glass: rgba(26, 26, 46, 0.6);
    --color-text-primary: #E0E0E0;
    --color-text-secondary: #a0a0c0;
    --color-border: rgba(100, 100, 150, 0.2);
    --color-success: #00ff7f;
    --color-error: #ff5555;

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Oswald', sans-serif;

    --header-height: 80px;
    --border-radius: 12px;
    --card-padding: 2rem;
    --section-padding: 100px 0;
    --transition-speed: 0.4s;
    --transition-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* 2. Global & Reset Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-secondary);
}

/* 3. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.section-title {
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

/* 4. Layout & Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

main {
    position: relative;
    z-index: 2;
}

section {
    padding: var(--section-padding);
    position: relative;
}

/* 5. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease-in-out;
}

.header.scrolled {
    background: var(--color-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    filter: invert(1);
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-primary);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-speed) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width var(--transition-speed) var(--transition-elastic);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 6. Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin: 2rem 0;
}

.mobile-nav-link {
    font-size: 1.8rem;
    font-family: var(--font-secondary);
    color: #fff;
    text-transform: uppercase;
}

/* 7. Footer */
.footer {
    background-color: #0A0A14;
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 45px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.9rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: all var(--transition-speed) var(--transition-elastic);
}

.social-link:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    border-color: var(--color-primary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-contact li i {
    color: var(--color-primary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* 8. Buttons & Forms */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--transition-speed) var(--transition-elastic);
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    color: #000;
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 97, 166, 0.3);
    color: #000;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-bg-dark);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 247, 0.2);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 97, 166, 0.3);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

/* 9. Animation & Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 10. Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 15px;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 11. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(5px);
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
}

.service-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-link {
    font-weight: 600;
    display: inline-block;
    color: var(--color-secondary);
}

.card-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.card-link:hover i {
    transform: translateX(5px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 97, 166, 0.15) 0%, rgba(255, 255, 255, 0) 40%);
    transition: opacity 0.8s ease;
    opacity: 0;
    transform: translate(var(--x), var(--y));
}

.service-card:hover::before {
    opacity: 1;
}

/* 12. About Section */
.about-section {
    background: var(--color-bg-light);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image-container {
    position: relative;
    perspective: 1500px;
}

.about-image {
    width: 100%;
    padding-bottom: 120%;
    /* Aspect Ratio */
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    border-radius: var(--border-radius);
    transform: rotateY(-15deg) rotateX(5deg);
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s var(--transition-elastic);
}

.about-image-container:hover .about-image {
    transform: rotateY(0) rotateX(0);
}

.about-image-deco {
    position: absolute;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    opacity: 0.3;
    filter: blur(20px);
    border-radius: 50%;
}

.deco-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
}

.deco-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: -30px;
}

.about-content p {
    margin-bottom: 2rem;
}

.about-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.about-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.about-features i {
    color: var(--color-secondary);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* 13. Process Section */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-border), var(--color-border) 5px, transparent 5px, transparent 10px);
}

.process-step {
    padding: 2rem;
    position: relative;
    text-align: center;
}

.process-step-inner {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    transition: all var(--transition-speed) ease;
}

.process-step:hover .process-step-inner {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--color-secondary);
}

.process-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    transition: transform 0.4s var(--transition-elastic);
}

.process-step:hover .process-icon {
    transform: scale(1.2) rotate(10deg);
}

.process-number {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-bg-dark);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--color-secondary);
    z-index: 2;
}

.process-step h3 {
    margin-top: 60px;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.process-step p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 14. Interactive Report Section */
.interactive-report-section {
    background: var(--color-bg-light);
}

.report-dashboard {
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.dashboard-header h4 {
    font-size: 1.3rem;
}

.date-range {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.kpi-card,
.chart-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.kpi-card:hover,
.chart-card:hover {
    transform: scale(1.03);
    border-color: var(--color-accent);
}

.kpi-title {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2.2rem;
    font-family: var(--font-secondary);
    color: #fff;
    line-height: 1;
}

.kpi-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.kpi-change.positive {
    color: var(--color-success);
}

.kpi-change.negative {
    color: var(--color-error);
}

.chart-card {
    grid-column: span 2;
}

.chart-card.main-chart {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
}

.chart-card h5 {
    margin-bottom: 1rem;
}

.chart-placeholder {
    height: 150px;
    position: relative;
}

.sparkline path {
    animation: dash 2s ease-in-out forwards;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
}

.bar {
    width: 15%;
    background: linear-gradient(to top, var(--color-primary), var(--color-secondary));
    border-radius: 4px 4px 0 0;
    position: relative;
    animation: grow 1.5s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes grow {
    to {
        transform: scaleY(1);
    }
}

.bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* 15. Testimonials Section */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.testimonial-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 3rem;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--color-text-primary);
}

.testimonial-quote::before {
    content: '“';
    font-size: 4rem;
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 1rem;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* 16. CTA Section */
.cta-section {
    padding: 0;
}

.cta-wrapper {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--border-radius);
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-bg-dark);
}

.cta-wrapper .section-title {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--color-bg-dark);
}

.cta-wrapper p {
    color: var(--color-bg-light);
    margin: 0;
    max-width: 600px;
}

.cta-action .btn-primary {
    background: #fff;
    color: var(--color-bg-dark);
}

.cta-action .btn-primary:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 17. Page Header & Legal Content */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    background: var(--color-bg-light);
}

.page-header h1 {
    font-size: 3.5rem;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.legal-content {
    padding: var(--section-padding);
}

.legal-content .container {
    max-width: 800px;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
}

.legal-section p {
    line-height: 1.8;
}

/* 18. Contact Page Section */
.contact-page-section {
    padding-bottom: 120px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    padding: 4rem;
    border: 1px solid var(--color-border);
}

.contact-info .section-header {
    margin-bottom: 2.5rem;
}

.contact-info .section-title {
    font-size: 2.2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--color-bg-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.contact-text p,
.contact-text a {
    color: var(--color-text-secondary);
    margin: 0;
}

.contact-form-wrapper {
    background: var(--color-bg-dark);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-form-wrapper h3 {
    text-align: center;
    margin-bottom: 2rem;
}

/* 19. Popups & Modals */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

/* 20. Interactive Widgets (Chat, Scroll) */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-secondary);
    border-radius: 25px;
    position: relative;
}

.mouse span {
    position: absolute;
    display: block;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--color-secondary);
    border-radius: 4px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s var(--transition-elastic);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle i {
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}

.chat-toggle .fa-times {
    opacity: 0;
    transform: rotate(-45deg);
}

.chat-widget.open .chat-toggle .fa-comment-dots {
    opacity: 0;
    transform: rotate(45deg);
}

.chat-widget.open .chat-toggle .fa-times {
    opacity: 1;
    transform: rotate(0);
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.chat-widget.open .chat-box {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    padding: 1rem;
    background: var(--color-bg-dark);
}

.chat-header h5 {
    margin-bottom: 0.2rem;
}

.chat-header p {
    font-size: 0.8rem;
    margin: 0;
}

.chat-body {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
}

.message p {
    padding: 0.75rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    display: inline-block;
    margin: 0;
}

.message.received p {
    background-color: var(--color-bg-dark);
    border-top-left-radius: 0;
}

.chat-footer {
    display: flex;
    padding: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.chat-footer input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 0 0.5rem;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* 21. Blob Canvas */
#blob-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

/* 22. Responsive Design */
@media (max-width: 1200px) {
    .process-timeline::before {
        left: 20%;
        width: 60%;
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-container {
        max-width: 400px;
        margin: 0 auto 3rem;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .process-timeline::before {
        display: none;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chart-card.main-chart {
        grid-column: 1 / -1;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 80%;
        max-width: 300px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials,
    .footer-contact {
        justify-content: center;
    }

    .footer-contact li {
        text-align: left;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .chart-card {
        grid-column: span 1;
    }

    .testimonial-slider {
        padding: 2rem;
    }

    .testimonial-quote::before {
        display: none;
    }

    .slider-controls {
        position: static;
        margin-top: 1.5rem;
        justify-content: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .process-step h3 {
        margin-top: 50px;
    }
}

@media (max-width: 576px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }

    .chat-box {
        width: calc(100vw - 40px);
    }
}