/*
================================================
TABLE OF CONTENTS
================================================
1.  GLOBAL STYLES & VARIABLES
2.  REUSABLE COMPONENTS (Buttons, Containers)
3.  PRELOADER
4.  HEADER & NAVIGATION
5.  HERO SECTION
6.  SECTION STYLES (General)
7.  SERVICES SECTION
8.  ABOUT SECTION
9.  PROCESS SECTION
10. TESTIMONIALS SECTION
11. ROI CALCULATOR SECTION
12. CTA (CALL TO ACTION) SECTION
13. FOOTER
14. PAGE-SPECIFIC STYLES (Contact, Legal)
15. INTERACTIVE WIDGETS (Back to Top, Chat)
16. ANIMATIONS & KEYFRAMES
17. RESPONSIVE DESIGN (Media Queries)
================================================
*/

/* 1. GLOBAL STYLES & VARIABLES */
/* ================================================ */
:root {
    --primary-color: #0ea5e9;
    /* Sky Blue */
    --secondary-color: #3b82f6;
    /* Blue */
    --dark-bg: #0f172a;
    /* Slate 900 */
    --dark-bg-secondary: #1e293b;
    /* Slate 800 */
    --card-bg: #334155;
    /* Slate 700 */
    --text-light: #f8fafc;
    /* Slate 50 */
    --text-medium: #cbd5e1;
    /* Slate 300 */
    --text-dark: #94a3b8;
    /* Slate 400 */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition-smooth: all 0.3s ease-in-out;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-medium);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--text-light);
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--text-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. REUSABLE COMPONENTS */
/* ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--card-bg);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* 3. PRELOADER */
/* ================================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-logo img {
    width: 100px;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-bar {
    width: 150px;
    height: 4px;
    background-color: var(--card-bg);
    margin-top: 20px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: loading-bar 2s infinite;
}

/* 4. HEADER & NAVIGATION */
/* ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.header.scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 40px;
    transition: var(--transition-smooth);
}

.header.scrolled .nav-logo img {
    height: 35px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-medium);
    font-family: var(--font-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}


/* 5. HERO SECTION */
/* ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #172541 100%);
}

.hero-background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0));
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 600px;
    height: 600px;
    bottom: -20%;
    right: -10%;
    animation-delay: 5s;
    animation-duration: 25s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: 20%;
    animation-delay: 10s;
    animation-duration: 15s;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-medium);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-3d-element {
    flex-shrink: 0;
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.3);
}

.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);
}


/* 6. SECTION STYLES (General) */
/* ================================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header .section-title {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.section-header.align-left {
    text-align: left;
}

.section-header.align-left p {
    margin-left: 0;
    margin-right: 0;
}


/* 7. SERVICES SECTION */
/* ================================================ */
.services-section {
    background-color: var(--dark-bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    border-radius: var(--border-radius);
    min-height: 280px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card-back {
    transform: rotateY(180deg);
    background-color: var(--primary-color);
}

.service-card-back h3 {
    color: var(--text-light);
}

.service-card-back p {
    color: var(--dark-bg);
    font-size: 0.9rem;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card-front h3 {
    margin-bottom: 0.5rem;
}


/* 8. ABOUT SECTION */
/* ================================================ */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image-column,
.about-content-column {
    flex: 1;
}

.about-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image-container img {
    border-radius: var(--border-radius);
}

.about-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(35deg, rgba(14, 165, 233, 0.4), transparent 70%);
    z-index: 1;
}

.about-image-experience {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    z-index: 2;
    border: 4px solid var(--dark-bg);
}

.experience-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-primary);
}

.experience-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.about-features {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}


/* 9. PROCESS SECTION */
/* ================================================ */
.process-section {
    background-color: var(--dark-bg-secondary);
}

.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 5%;
    width: 90%;
    height: 2px;
    background-image: linear-gradient(to right, var(--primary-color) 50%, transparent 50%);
    background-size: 20px 2px;
    background-repeat: repeat-x;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 100px;
}

.process-step-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 3px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition-smooth);
}

.process-step:hover .process-step-icon {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateX(-50%) scale(1.1);
}

.process-step-number {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.process-step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}


/* 10. TESTIMONIALS SECTION */
/* ================================================ */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 2rem;
    background-color: var(--dark-bg-secondary);
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 5px solid var(--primary-color);
    position: absolute;
}

.testimonial-card.active {
    opacity: 1;
    position: relative;
}

.testimonial-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    margin: 1.5rem 0;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    color: var(--text-light);
    margin-bottom: 0;
}

.author-info span {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    background-color: transparent;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}


/* 11. ROI CALCULATOR SECTION */
/* ================================================ */
.roi-calculator-section {
    background-color: var(--dark-bg-secondary);
}

.calculator-wrapper {
    display: flex;
    gap: 3rem;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.calculator-form {
    flex: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calculator-results {
    flex: 2;
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.calculator-results h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-item h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.result-item span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: var(--font-primary);
}

.result-item.highlight span {
    color: var(--primary-color);
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-top: 1rem;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--dark-bg-secondary);
    border: 1px solid var(--card-bg);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 12. CTA (CALL TO ACTION) SECTION */
/* ================================================ */
.cta-section {
    padding: 80px 0;
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?q=80&w=2084&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* 13. FOOTER */
/* ================================================ */
.footer {
    background-color: var(--dark-bg-secondary);
    padding: 80px 0 0;
    border-top: 1px solid var(--card-bg);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-about p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--card-bg);
    color: var(--text-medium);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a {
    color: var(--text-dark);
}

.footer-links ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-contact ul li a {
    color: var(--text-dark);
}

.footer-contact ul li a:hover {
    color: var(--primary-color);
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid var(--card-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--text-dark);
    margin: 0 10px;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-legal span {
    color: var(--text-dark);
}


/* 14. PAGE-SPECIFIC STYLES (Contact, Legal) */
/* ================================================ */
.page-header {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, #172541 100%);
}

.page-header h1 {
    font-size: 3rem;
}

/* Contact Page */
.contact-page-wrapper {
    display: flex;
    gap: 3rem;
}

.contact-info-block {
    flex: 2;
    background: var(--dark-bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-form-block {
    flex: 3;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--card-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.info-text h4 {
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.info-text p,
.info-text a {
    color: var(--text-dark);
    margin-bottom: 0;
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-bg-secondary);
    border: 1px solid var(--card-bg);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--dark-bg-secondary);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9);
    transition: all 0.3s;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-dark);
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

/* Legal Pages */
.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-bg-secondary);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--card-bg);
    padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-medium);
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

/* 15. INTERACTIVE WIDGETS */
/* ================================================ */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    transition: transform 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle .fa-times {
    display: none;
}

.chat-widget.open .fa-comments {
    display: none;
}

.chat-widget.open .fa-times {
    display: block;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background-color: var(--dark-bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-widget.open .chat-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background-color: var(--card-bg);
    padding: 1rem;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.chat-header h4 {
    margin: 0;
}

.chat-header p {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin: 0;
}

.chat-body {
    padding: 1rem;
    height: 250px;
    overflow-y: auto;
}

.chat-message.bot {
    background-color: var(--card-bg);
    padding: 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    max-width: 80%;
}

.chat-footer {
    display: flex;
    border-top: 1px solid var(--card-bg);
    padding: 0.5rem;
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: var(--text-light);
    padding: 0 0.5rem;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}


/* 16. ANIMATIONS & KEYFRAMES */
/* ================================================ */

/* Scroll Reveal Animations */
.reveal-fade-up,
.reveal-3d,
.reveal-slide-left,
.reveal-slide-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.reveal-fade-up {
    transform: translateY(50px);
}

.reveal-3d {
    transform: rotateY(-30deg) scale(0.9);
}

.reveal-slide-left {
    transform: translateX(-50px);
}

.reveal-slide-right {
    transform: translateX(50px);
}

.is-visible.reveal-fade-up,
.is-visible.reveal-3d,
.is-visible.reveal-slide-left,
.is-visible.reveal-slide-right {
    opacity: 1;
    transform: none;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes loading-bar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-50px) translateX(30px) rotate(180deg);
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* 17. RESPONSIVE DESIGN (Media Queries) */
/* ================================================ */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--dark-bg-secondary);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        justify-content: center;
        gap: 3rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .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);
    }

    .header-actions .btn {
        display: none;
        /* Hide button next to hamburger */
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-3d-element {
        order: 1;
        margin-bottom: 2rem;
    }

    .cube {
        width: 150px;
        height: 150px;
    }

    .face {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(75px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }

    .about-wrapper {
        flex-direction: column;
    }

    .process-timeline {
        flex-direction: column;
    }

    .process-timeline::before {
        left: 50px;
        top: 5%;
        width: 2px;
        height: 90%;
        background-image: linear-gradient(to bottom, var(--primary-color) 50%, transparent 50%);
        background-size: 2px 20px;
        background-repeat: repeat-y;
    }

    .process-step {
        text-align: left;
        padding-top: 0;
        padding-left: 100px;
        min-height: 120px;
    }

    .process-step-icon {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .process-step-number {
        left: -20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 4rem;
    }

    .calculator-wrapper {
        flex-direction: column;
    }

    .calculator-form {
        grid-template-columns: 1fr;
    }

    .contact-page-wrapper {
        flex-direction: column;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about p,
    .footer-contact ul,
    .footer-links ul {
        text-align: center;
    }

    .footer-social,
    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal span {
        display: none;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .chat-widget {
        display: none;
    }

    /* Hide chat on small screens */
}