/*
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  GLOBAL STYLES & VARIABLES
2.  HELPER & UTILITY CLASSES
3.  CUSTOM CURSOR
4.  HEADER & NAVIGATION
5.  FOOTER
6.  BUTTONS & FORMS
7.  HERO SECTION
8.  PAGE HEADER SECTION (for inner pages)
9.  SECTION STYLES (Common)
10. SERVICES SECTION
11. PROCESS SECTION (Timeline)
12. INDUSTRIES SECTION
13. TESTIMONIALS SECTION
14. CALCULATOR SECTION
15. CTA SECTION
16. LEGAL & CONTACT PAGE CONTENT
17. POPUP & CHAT WIDGET
18. ANIMATIONS (Scroll & Keyframes)
19. RESPONSIVE DESIGN (Media Queries)
================================================
*/

/* 1. GLOBAL STYLES & VARIABLES
------------------------------------------------ */
:root {
    --bg-dark-primary: #0a0a23;
    --bg-dark-secondary: #1b1b32;
    --bg-dark-tertiary: #2a2a4f;
    --accent-primary: #6a5acd;
    /* SlateBlue */
    --accent-secondary: #00f5d4;
    /* Bright Teal */
    --text-light-primary: #f5f6f7;
    --text-light-secondary: #a9a9b2;
    --border-color: rgba(106, 90, 205, 0.2);
    --shadow-color: rgba(0, 245, 212, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Orbitron', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark-primary);
    color: var(--text-light-secondary);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-light-primary);
    font-family: var(--font-secondary);
    line-height: 1.3;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--text-light-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. HELPER & UTILITY CLASSES
------------------------------------------------ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 100px 0;
}

/* 3. CUSTOM CURSOR
------------------------------------------------ */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-secondary);
    transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-primary);
}


/* 4. HEADER & NAVIGATION
------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 35, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    background-color: rgba(27, 27, 50, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo .logo-img {
    height: 80px;
    filter: invert(1);
    transition: transform var(--transition-speed) ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-light-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-secondary);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-close {
    display: none;
}

.nav-toggle {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* 5. FOOTER
------------------------------------------------ */
.footer {
    background-color: var(--bg-dark-secondary);
    padding: 80px 0 30px;
    border-top: 2px solid var(--accent-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col .footer-logo .logo-img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-about-text {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-dark-tertiary);
    color: var(--text-light-primary);
    border-radius: 50%;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--accent-primary);
    transform: translateY(-5px);
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-secondary);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-light-secondary);
    transition: all var(--transition-speed) ease;
}

.footer-links ul li a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin-top: 5px;
}

.footer-contact a {
    color: var(--text-light-secondary);
}

.footer-contact a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* 6. BUTTONS & FORMS
------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    cursor: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--text-light-primary);
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    color: var(--bg-dark-primary);
    box-shadow: 0 4px 20px var(--shadow-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light-primary);
    border: 2px solid var(--accent-secondary);
}

.btn-secondary:hover {
    background-color: var(--accent-secondary);
    color: var(--bg-dark-primary);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    background-color: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-light-primary);
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 10px var(--shadow-color);
}

textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}


/* 7. HERO SECTION
------------------------------------------------ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
}

.highlight-text {
    color: var(--accent-secondary);
    position: relative;
}

#typing-text::after {
    content: '_';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scene {
    width: 250px;
    height: 250px;
    perspective: 800px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-125px);
    animation: rotateCube 20s infinite linear;
}

.cube__face {
    position: absolute;
    width: 250px;
    height: 250px;
    background-color: rgba(27, 27, 50, 0.7);
    border: 1px solid var(--accent-primary);
    color: var(--accent-secondary);
    font-size: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.cube__face--front {
    transform: rotateY(0deg) translateZ(125px);
}

.cube__face--right {
    transform: rotateY(90deg) translateZ(125px);
}

.cube__face--back {
    transform: rotateY(180deg) translateZ(125px);
}

.cube__face--left {
    transform: rotateY(-90deg) translateZ(125px);
}

.cube__face--top {
    transform: rotateX(90deg) translateZ(125px);
}

.cube__face--bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

@keyframes rotateCube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.hero-bg-shape {
    position: absolute;
    top: -10%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 60%);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(50px);
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 8. PAGE HEADER SECTION
------------------------------------------------ */
.page-header-section {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-dark-secondary) 0%, var(--bg-dark-primary) 100%);
}

.page-header-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumbs {
    margin-top: 1.5rem;
    color: var(--text-light-secondary);
}

.breadcrumbs a {
    color: var(--text-light-primary);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 0.5rem;
    color: var(--accent-primary);
}

/* 9. SECTION STYLES (Common)
------------------------------------------------ */
.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 10. SERVICES SECTION
------------------------------------------------ */
.services-section {
    background-color: var(--bg-dark-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-dark-primary);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    border-color: var(--accent-secondary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    margin-bottom: 1.5rem;
}

.service-link {
    font-weight: 600;
    color: var(--text-light-primary);
}

.service-link i {
    transition: transform var(--transition-speed) ease;
    margin-left: 5px;
}

.service-card:hover .service-link i {
    transform: translateX(10px);
}

/* 11. PROCESS SECTION
------------------------------------------------ */
.process-section {
    position: relative;
    overflow: hidden;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-dark-primary);
    border: 4px solid var(--accent-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: all var(--transition-speed) ease;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-secondary);
    transform: scale(1.2);
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: var(--border-radius);
}

.timeline-step {
    font-size: 3rem;
    font-family: var(--font-secondary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.05;
    color: var(--text-light-primary);
    z-index: 0;
}

.timeline-item:nth-child(odd) .timeline-step {
    right: 20px;
}

.timeline-item:nth-child(even) .timeline-step {
    left: 20px;
}

.timeline-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* 12. INDUSTRIES SECTION
------------------------------------------------ */
.industries-section {
    background-color: var(--bg-dark-secondary);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.industry-item {
    background-color: var(--bg-dark-primary);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.industry-item:hover {
    background-color: var(--bg-dark-tertiary);
    border-color: var(--accent-secondary);
    transform: translateY(-8px);
}

.industry-item i {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    display: block;
}

.industry-item span {
    font-weight: 600;
    color: var(--text-light-primary);
}


/* 13. TESTIMONIALS SECTION
------------------------------------------------ */
.testimonial-carousel-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-carousel {
    position: relative;
    height: 250px;
    /* Adjust as needed */
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-light-primary);
}

.author-name {
    font-size: 1.1rem;
    font-family: var(--font-primary);
}

.author-title {
    font-size: 0.9rem;
    color: var(--accent-secondary);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.carousel-nav button {
    background: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-light-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.carousel-nav button:hover {
    background-color: var(--accent-primary);
}

/* 14. CALCULATOR SECTION
------------------------------------------------ */
.calculator-section {
    background-color: var(--bg-dark-secondary);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--bg-dark-primary);
    padding: 4rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.calculator-form-wrapper {
    background-color: var(--bg-dark-secondary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.roi-calculator .form-group {
    margin-bottom: 2rem;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-dark-tertiary);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-secondary);
    cursor: pointer;
    border-radius: 50%;
}

.range-value {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-top: 0.5rem;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.calculator-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-dark-primary);
    border-radius: var(--border-radius);
    text-align: center;
}

.calculator-result h4 {
    margin-bottom: 0.5rem;
}

#estimated-leads {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin: 0;
}

/* 15. CTA SECTION
------------------------------------------------ */
.cta-section {
    background: linear-gradient(rgba(10, 10, 35, 0.8), rgba(10, 10, 35, 0.8)), url('https://via.placeholder.com/1920x500') no-repeat center center/cover;
    padding: 100px 0;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* 16. LEGAL & CONTACT PAGE CONTENT
------------------------------------------------ */
.main-content.section-padding {
    background-color: var(--bg-dark-secondary);
}

.legal-content {
    background-color: var(--bg-dark-primary);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 0.5rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--bg-dark-primary);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-details-list {
    margin-top: 2rem;
    list-style: none;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.contact-details-list h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-primary);
}


/* 17. POPUP & CHAT WIDGET
------------------------------------------------ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup.active+.popup-overlay {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-dark-secondary);
    padding: 3rem;
    border-radius: var(--border-radius);
    width: 90vw;
    max-width: 500px;
    text-align: center;
    border: 1px solid var(--accent-primary);
    position: relative;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-light-secondary);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 2rem;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background-color: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
    background-color: var(--accent-secondary);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: var(--bg-dark-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background-color: var(--bg-dark-tertiary);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-family: var(--font-primary);
}

#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
}

.chat-message.bot p {
    background-color: var(--bg-dark-tertiary);
    padding: 0.75rem 1rem;
    border-radius: 15px 15px 15px 0;
    max-width: 80%;
}

.chat-footer {
    display: flex;
    padding: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex: 1;
    background: var(--bg-dark-primary);
    border: none;
    padding: 0.75rem;
    color: white;
    border-radius: var(--border-radius);
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--accent-secondary);
    font-size: 1.2rem;
    padding: 0 1rem;
    cursor: pointer;
}


/* 18. ANIMATIONS (Scroll & Keyframes)
------------------------------------------------ */
.animate-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in.fade-in-up {
    transform: translateY(40px);
}

.animate-in.fade-in-left {
    transform: translateX(-40px);
}

.animate-in.fade-in-right {
    transform: translateX(40px);
}

.animate-in.zoom-in {
    transform: scale(0.9);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}


/* 19. RESPONSIVE DESIGN
------------------------------------------------ */
@media screen and (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-dark-secondary);
        padding: 6rem 2rem 2rem;
        flex-direction: column;
        transition: right var(--transition-speed) ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
        color: var(--text-light-primary);
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--text-light-primary);
        cursor: pointer;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .scene {
        width: 200px;
        height: 200px;
    }

    .cube__face {
        width: 200px;
        height: 200px;
    }

    .process-timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }

    .timeline-item:nth-child(odd) .timeline-step {
        left: 20px;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .page-header-section h1 {
        font-size: 2.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col-title::after {
        left: 50%;
        margin-left: -15px;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .chat-window {
        width: 90vw;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .carousel-nav button {
        width: 40px;
        height: 40px;
    }

    .carousel-nav {
        width: calc(100% + 2rem);
        left: -1rem;
    }
}