/*
* Table of Contents
* -----------------
* 1.  :root Variables & Global Styles
* 2.  Utility Classes
* 3.  Keyframe Animations
* 4.  Header & Navigation
* 5.  Hero Section
* 6.  Services Section
* 7.  Stats Section
* 8.  Process Section
* 9.  Interactive Report Section
* 10. Testimonials Section
* 11. CTA Section
* 12. Footer
* 13. Page-Specific Styles (Contact, Legal)
* 14. Interactive Widgets (Chat)
* 15. Responsive Design (Media Queries)
*/

/* 1. :root Variables & Global Styles
-------------------------------------------------- */
:root {
    --color-primary: #00f5c3;
    /* Vibrant Cyan/Teal */
    --color-secondary: #a755c2;
    /* Magenta/Purple Accent */
    --color-background: #0a0e1a;
    /* Dark Blue/Charcoal */
    --color-surface: #141a2c;
    /* Slightly Lighter Surface */
    --color-surface-light: #202840;
    --color-text: #e0e0e0;
    --color-heading: #ffffff;
    --color-border: #323a51;
    --color-success: #00f5c3;
    --color-error: #ff4d4d;
    --color-shadow: rgba(0, 0, 0, 0.2);

    --font-family: 'Poppins', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;

    --border-radius: 8px;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --section-padding: 80px 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: var(--line-height-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-heading);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: var(--section-padding);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Utility Classes
-------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-heading);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
}

.section-title p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text);
}

/* Scroll Animation Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Keyframe Animations
-------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin3D {
    from {
        transform: rotateY(0deg) rotateX(10deg);
    }

    to {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 4. Header & Navigation
-------------------------------------------------- */
.site-header {
    background-color: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.site-header.scrolled {
    background-color: var(--color-surface);
    box-shadow: 0 4px 20px var(--color-shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--color-heading);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background-color: var(--color-heading);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: var(--color-heading);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-open .hamburger {
    background-color: transparent;
}

.nav-open .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-open .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* 5. Hero Section
-------------------------------------------------- */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 55%;
    text-align: left;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--color-heading), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.animate-on-load {
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-content h1.animate-on-load {
    animation-delay: 0.2s;
}

.hero-content p.animate-on-load {
    animation-delay: 0.4s;
}

.hero-content .hero-cta.animate-on-load {
    animation-delay: 0.6s;
}

.hero-3d-element-container.animate-on-load {
    animation-delay: 0.8s;
}

/* Hero 3D Element */
.hero-3d-element-container {
    perspective: 1000px;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-element {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin3D 20s infinite linear;
}

.hero-3d-element .face {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid var(--color-primary);
    background-color: rgba(0, 245, 195, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.face.front {
    transform: rotateY(0deg) translateZ(125px);
}

.face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

/* Hero Background Shapes */
.hero-background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    opacity: 0.1;
    filter: blur(100px);
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -150px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -50px;
    right: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 20%;
}


/* 6. Services Section
-------------------------------------------------- */
.services-section {
    background-color: var(--color-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    border-radius: var(--border-radius);
    perspective: 1000px;
    height: 320px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background-color: var(--color-surface-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    z-index: 1;
}

.service-card:hover .card-front,
.service-card:hover .card-back {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 245, 195, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    color: var(--color-heading);
    margin-bottom: 10px;
}

.card-front p {
    margin-bottom: 0;
}

.btn-card {
    margin-top: 20px;
    padding: 8px 20px;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: var(--border-radius);
    font-weight: 500;
}

.btn-card:hover {
    background-color: var(--color-heading);
}

/* 7. Stats Section
-------------------------------------------------- */
.stats-section {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MiIgaGVpZ2h0PSIyNiIgdmlld0JveD0iMCAwIDUyIDI2Ij48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiMyMDJhNDAiIGZpbGwtb3BhY2l0eT0iLjA0Ij48cGF0aCBkPSJNMTAgMEg2djZoNEgxMFYwem0yNCAwSDE4djZoNEgyMlYwem0yNCAwSDQydjZoNEg0NlYwek0zNCA2SDE0djZoNEgxOFY2em0yNCAwSDM4djZoNEg0MlY2em0tNDAgMTJIMHY2aDRWMTJ6bTQwIDBoLTR2Nmg0VjEyek0xNCAxMkg0djZoNEgxMFYxMnpNMzAgMTJoLTZ2Nmg2VjEyek0zNCAxMlgyMnY2aDRWMjBoOHYtNmg0VjEyek0yIDJoLTR2Nmg0VjJ6TTQ4IDJoLTR2Nmg0VjJ6Ii8+PC9nPjwvZz48L3N2Zz4=');
    background-color: var(--color-background);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0;
}

/* 8. Process Section
-------------------------------------------------- */
.process-section {
    background-color: var(--color-surface);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-secondary), var(--color-primary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 30px;
    background-color: var(--color-surface-light);
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-background);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    z-index: 2;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

/* 9. Interactive Report Section
-------------------------------------------------- */
.interactive-report-section {
    background-color: var(--color-background);
}

.report-dashboard {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 40px var(--color-shadow);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.report-header h3 {
    margin: 0;
}

.report-header span {
    background-color: var(--color-surface-light);
    color: var(--color-primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.report-card {
    background-color: var(--color-surface-light);
    padding: 20px;
    border-radius: var(--border-radius);
}

.report-card.kpi {
    grid-column: span 1;
}

.report-card.chart {
    grid-column: span 2;
    grid-row: span 2;
}

.report-card.list {
    grid-column: span 2;
    grid-row: span 2;
}

.kpi h4 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-heading);
}

.kpi-change {
    font-weight: 500;
}

.kpi-change.positive {
    color: var(--color-success);
}

.kpi-change.negative {
    color: var(--color-error);
}

.bar-chart {
    display: flex;
    height: 80%;
    align-items: flex-end;
    justify-content: space-around;
    padding-top: 20px;
}

.bar {
    width: 15%;
    background: linear-gradient(to top, var(--color-secondary), var(--color-primary));
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: all 0.3s ease;
}

.bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    white-space: nowrap;
}

.list ul {
    margin-top: 10px;
}

.list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.list li:last-child {
    border-bottom: none;
}

.list li span {
    color: var(--color-success);
    font-weight: 500;
}

/* 10. Testimonials Section
-------------------------------------------------- */
.testimonials-section {
    background-color: var(--color-surface);
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    text-align: center;
    background-color: var(--color-surface-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.quote::before {
    content: '“';
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 0;
}

.author h4 {
    margin-bottom: 5px;
    color: var(--color-heading);
}

.author span {
    color: var(--color-text);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.prev-btn,
.next-btn {
    background-color: var(--color-surface-light);
    border: 1px solid var(--color-border);
    color: var(--color-heading);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.prev-btn {
    margin-left: -60px;
}

.next-btn {
    margin-right: -60px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

/* 11. CTA Section
-------------------------------------------------- */
.cta-section {
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    color: var(--color-background);
    text-align: center;
}

.cta-section .container {
    background-color: rgba(10, 14, 26, 0.7);
    padding: 60px;
    border-radius: var(--border-radius);
}

.cta-section h2 {
    color: var(--color-heading);
    font-size: 2.2rem;
}

.cta-section p {
    color: var(--color-text);
    max-width: 700px;
    margin: 20px auto 30px;
}

.cta-section .btn-primary {
    transform: scale(1.1);
}

.cta-section .btn-primary:hover {
    background-color: var(--color-heading);
    color: var(--color-background);
    border-color: var(--color-heading);
}

/* 12. Footer
-------------------------------------------------- */
.site-footer {
    background-color: var(--color-surface);
    padding: 60px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--color-heading);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-column.about .footer-logo img {
    height: 70px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-column.links ul li {
    margin-bottom: 10px;
}

.footer-column.links ul a {
    color: var(--color-text);
}

.footer-column.links ul a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-column.contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
    color: var(--color-text);
}

/* 13. Page-Specific Styles (Contact, Legal)
-------------------------------------------------- */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(rgba(10, 14, 26, 0.8), rgba(10, 14, 26, 0.8)), url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') no-repeat center center/cover;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
}

.page-header p {
    font-size: 1.1rem;
}

/* Contact Page */
.contact-section {
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-container,
.contact-info-container {
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-surface-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: inherit;
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-details {
    margin-top: 20px;
}

.contact-details li {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-details strong {
    color: var(--color-heading);
    margin-bottom: 5px;
}

.contact-map {
    margin-top: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-map iframe {
    filter: invert(90%) hue-rotate(180deg);
}

/* Legal Pages */
.legal-content {
    padding-bottom: 80px;
}

.legal-content .container {
    max-width: 800px;
    background-color: var(--color-surface);
    padding: 50px;
    border-radius: var(--border-radius);
}

.legal-content h2 {
    color: var(--color-primary);
    margin-top: 2em;
    margin-bottom: 1em;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1em;
}

/* 14. Interactive Widgets (Chat)
-------------------------------------------------- */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 245, 195, 0.3);
    transition: transform var(--transition-speed);
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-bubble svg {
    width: 30px;
    height: 30px;
    color: var(--color-background);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px var(--color-shadow);
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-speed) ease;
    transform-origin: bottom right;
}

.chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background-color: var(--color-surface-light);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    height: 200px;
    overflow-y: auto;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid var(--color-border);
    display: flex;
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background-color: var(--color-surface-light);
    padding: 10px;
    border-radius: 5px 0 0 5px;
    color: var(--color-text);
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    border: none;
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 600;
}


/* 15. Responsive Design (Media Queries)
-------------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 60px;
    }

    .hero p {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-3d-element-container {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-surface);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-open .main-nav {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 140px 0 80px;
        min-height: auto;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    .report-card.kpi,
    .report-card.chart,
    .report-card.list {
        grid-column: span 1;
        grid-row: span 1;
    }

    .process-timeline::after {
        left: 25px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-icon {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }

    .slider-controls {
        position: static;
        transform: none;
        margin-top: 20px;
        justify-content: center;
        gap: 20px;
    }

    .prev-btn,
    .next-btn {
        margin: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column.about {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .stats-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-section .container {
        padding: 40px 20px;
    }

    .hero-3d-element,
    .hero-3d-element .face {
        width: 200px;
        height: 200px;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(100px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

}