/*
---
Theme: BubbleTech
Colors:
  - Sky: #70E0FF
  - Lavender: #C084FC
  - White: #FFFFFF
  - Charcoal: #1B1B1B
  - Glass BG: rgba(27, 27, 27, 0.5)
Font: Poppins
---
*/

/* 1. Global Styles & Variables
--------------------------------------------- */
:root {
    --sky: #70E0FF;
    --lavender: #C084FC;
    --white: #FFFFFF;
    --charcoal: #1B1B1B;
    --light-charcoal: #2a2a2a;
    --text-color: #d1d1d1;
    --glass-bg: rgba(40, 40, 40, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(90deg, var(--sky), var(--lavender));
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--charcoal);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--white);
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.2rem;
}

a {
    color: var(--sky);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--lavender);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header p {
    max-width: 600px;
    margin: 10px auto 0;
}

.text-center {
    text-align: center;
}

.subtitle {
    color: var(--sky);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--charcoal);
    box-shadow: 0 5px 20px rgba(192, 132, 252, 0.3);
}

.btn-primary:hover {
    color: var(--charcoal);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(112, 224, 255, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--charcoal);
    transform: translateY(-3px);
}

/* 2. Background & Preloader
--------------------------------------------- */
.background-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.1;
    animation: rise 25s infinite ease-in;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.1;
    }

    100% {
        transform: translateY(-120vh) scale(0.5);
        opacity: 0;
    }
}

.bubble-1 {
    width: 80px;
    height: 80px;
    left: 10%;
    bottom: -150px;
    animation-duration: 20s;
}

.bubble-2 {
    width: 40px;
    height: 40px;
    left: 20%;
    bottom: -150px;
    animation-duration: 30s;
    animation-delay: 2s;
}

.bubble-3 {
    width: 120px;
    height: 120px;
    left: 35%;
    bottom: -150px;
    animation-duration: 18s;
    animation-delay: 5s;
}

.bubble-4 {
    width: 60px;
    height: 60px;
    left: 50%;
    bottom: -150px;
    animation-duration: 28s;
}

.bubble-5 {
    width: 90px;
    height: 90px;
    left: 70%;
    bottom: -150px;
    animation-duration: 22s;
    animation-delay: 7s;
}

.bubble-6 {
    width: 50px;
    height: 50px;
    left: 85%;
    bottom: -150px;
    animation-duration: 35s;
}

.bubble-7 {
    width: 150px;
    height: 150px;
    left: 5%;
    bottom: -150px;
    animation-duration: 15s;
    animation-delay: 10s;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--charcoal);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 100px;
    margin-bottom: 20px;
}

.preloader-logo img {
    animation: pulse 2s infinite ease-in-out;
}

.preloader-bubbles {
    display: flex;
    gap: 15px;
}

.bubble-loader {
    width: 15px;
    height: 15px;
    background: var(--primary-gradient);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.bubble-loader:nth-child(1) {
    animation-delay: -0.32s;
}

.bubble-loader:nth-child(2) {
    animation-delay: -0.16s;
}

.preloader p {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-color);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

/* 3. Header & Navigation
--------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header.sticky {
    background: rgba(27, 27, 27, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 80px;
}

.nav-logo img {
    height: 60px;
    transition: height 0.3s ease;
}


.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* 4. Hero Section
--------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    margin: 20px 0 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-bubble-main {
    width: 350px;
    height: 350px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.hero-bubble-inner {
    width: 60%;
    height: 60%;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--charcoal);
    box-shadow: 0 0 50px rgba(112, 224, 255, 0.5);
    transform: translateZ(50px);
}

.stat-bubble {
    position: absolute;
    padding: 10px 15px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: float 4s ease-in-out infinite;
}

.stat-bubble i {
    color: var(--sky);
}

.stat-1 {
    top: 10%;
    left: -10%;
    transform: translateZ(30px);
    animation-delay: 0s;
}

.stat-2 {
    bottom: 0;
    left: 20%;
    transform: translateZ(20px);
    animation-delay: 1s;
}

.stat-3 {
    top: 40%;
    right: -20%;
    transform: translateZ(40px);
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateZ(var(--tz, 30px));
    }

    50% {
        transform: translateY(-15px) translateZ(var(--tz, 30px));
    }
}

.stat-1 {
    --tz: 30px;
}

.stat-2 {
    --tz: 20px;
}

.stat-3 {
    --tz: 40px;
}


/* 5. Services Section
--------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--sky);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--charcoal);
    box-shadow: 0 0 20px rgba(112, 224, 255, 0.4);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(15deg);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 6. About Section
--------------------------------------------- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.image-bubble-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 20px;
    opacity: 0.3;
    z-index: 1;
    filter: blur(15px);
}

.about-content p {
    margin: 20px 0;
}

.about-features {
    margin-bottom: 30px;
}

.about-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--sky);
}

/* 7. Process Section
--------------------------------------------- */
.process-section {
    position: relative;
    overflow: hidden;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--light-charcoal);
    transform: translateX(-50%);
}

.process-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-gradient);
    transition: height 0.5s ease;
}

/* JS will add 'scrolled' class to animate the line */
.process-line.scrolled::after {
    height: 100%;
}

.process-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    width: 50%;
}

.process-step:nth-child(even) {
    left: 50%;
}

.process-step:nth-child(odd) {
    text-align: right;
}

.process-step:nth-child(odd) .process-content {
    padding-right: 50px;
}

.process-step:nth-child(even) .process-content {
    padding-left: 50px;
}

.process-bubble {
    width: 80px;
    height: 80px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.process-step:nth-child(odd) .process-bubble {
    right: -42px;
}

.process-step:nth-child(even) .process-bubble {
    left: -42px;
}

.process-step.in-view .process-bubble {
    background: var(--primary-gradient);
    border-color: var(--sky);
    transform: translateY(-50%) scale(1.1);
}

.process-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s ease;
}

.process-step.in-view .process-icon {
    color: var(--charcoal);
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-content h3 {
    margin-bottom: 10px;
}

/* 8. ROI Calculator Section
--------------------------------------------- */
.roi-calculator-section {
    background: var(--light-charcoal);
}

.roi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.roi-calculator {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
}

.roi-calculator .form-group {
    margin-bottom: 25px;
}

.roi-calculator label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.roi-calculator input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--charcoal);
    border-radius: 5px;
    outline: none;
}

.roi-calculator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--sky);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.roi-calculator input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--sky);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.roi-calculator input[type="range"]:hover::-webkit-slider-thumb,
.roi-calculator input[type="range"]:hover::-moz-range-thumb {
    background: var(--lavender);
}

.form-group span {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--white);
    margin-top: 5px;
}

.roi-results {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.roi-results h4 {
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 5px;
}

.roi-results p {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.roi-results p.negative-roi {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.roi-results p.positive-roi {
    background: linear-gradient(90deg, #70E0FF, #48c6ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* 9. 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%;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    position: relative;
}

.testimonial-bubble {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: -100px auto 30px;
    border: 4px solid var(--sky);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.testimonial-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.testimonial-author span {
    color: var(--text-color);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slider-controls button {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-controls button:hover {
    background: var(--sky);
    color: var(--charcoal);
}

/* 10. CTA Section
--------------------------------------------- */
.cta-wrapper {
    background: var(--primary-gradient);
    padding: 60px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(112, 224, 255, 0.3);
}

.cta-content h2,
.cta-content p {
    color: var(--charcoal);
}

.cta-content {
    max-width: 60%;
}

.cta-action .btn-primary {
    background: var(--white);
    color: var(--charcoal);
    box-shadow: none;
}

.cta-action .btn-primary:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
}

/* 11. Footer
--------------------------------------------- */
.footer {
    background: var(--light-charcoal);
    padding: 80px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo img {
    height: 70px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--sky);
    color: var(--charcoal);
    transform: translateY(-5px);
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-color);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.footer-contact i {
    color: var(--sky);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.footer-legal a {
    color: var(--text-color);
    margin: 0 10px;
}

/* 12. Inner Pages (Legal, Contact)
--------------------------------------------- */
.page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

.page-header p {
    max-width: 600px;
    margin: 10px auto 0;
    font-size: 1.1rem;
}

.content-wrapper,
.contact-page-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    margin: 0 auto;
}

.legal-content .content-wrapper {
    max-width: 900px;
}

.content-wrapper h2 {
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin: 15px 0;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-block h3,
.contact-form-block h3 {
    margin-bottom: 15px;
}

.contact-info-block p {
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--primary-gradient);
    color: var(--charcoal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--charcoal);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--sky);
    box-shadow: 0 0 10px rgba(112, 224, 255, 0.3);
}

.contact-form textarea {
    resize: vertical;
}

/* 13. Popups & Utility
--------------------------------------------- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--light-charcoal);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--sky);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content .btn {
    margin-top: 20px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--charcoal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.animate-on-scroll.in-view:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll.in-view:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll.in-view:nth-child(4) {
    transition-delay: 0.3s;
}

/* 14. Responsive Design
--------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 60px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
    }

    .roi-wrapper {
        grid-template-columns: 1fr;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .cta-content {
        max-width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background: var(--charcoal);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding-top: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .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);
    }

    .hero-bubble-main {
        width: 300px;
        height: 300px;
    }

    .stat-1 {
        left: -5%;
    }

    .stat-3 {
        right: -5%;
    }

    .process-line {
        left: 40px;
    }

    .process-step,
    .process-step:nth-child(even) {
        width: 100%;
        left: 0;
        justify-content: flex-start;
    }

    .process-content {
        width: calc(100% - 100px);
    }

    .process-step:nth-child(odd) .process-content,
    .process-step:nth-child(even) .process-content {
        padding-left: 100px;
        padding-right: 0;
        text-align: left;
    }

    .process-bubble {
        left: 0;
        transform: translate(0, -50%);
    }

    .process-step:nth-child(odd) .process-bubble,
    .process-step:nth-child(even) .process-bubble {
        right: auto;
        left: 0;
    }

    .process-step.in-view .process-bubble {
        transform: translateY(-50%) scale(1.1);
    }

    .slider-controls {
        display: none;
    }

    /* On smaller screens, swipe would be better but for now hiding controls is fine */

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero-bubble-main {
        width: 250px;
        height: 250px;
    }

    .hero-bubble-inner {
        font-size: 3rem;
    }

    .stat-bubble {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .stat-1 {
        top: 0;
    }

    .stat-3 {
        top: 30%;
    }

    .content-wrapper,
    .contact-page-wrapper {
        padding: 30px;
    }

    .popup-content {
        padding: 30px;
        width: 90%;
    }
}