/*
---
TABLE OF CONTENTS
---
1.  :root Variables
2.  Reset & Base Styles
3.  Preloader
4.  Global Components (Buttons, Containers, etc.)
5.  Header & Navigation
6.  Hero Section
7.  Section Headers
8.  Services Section
9.  About Section
10. Process Section (Timeline)
11. ROI Calculator Section
12. Testimonials Section (Slider)
13. Stats Section (3D Cubes)
14. CTA Section
15. Footer
16. Legal Pages (Privacy, Terms, Disclaimer)
17. Contact Page
18. Helper Classes & Animations (Reveal Effect)
19. Back to Top Button
20. Responsive Design (Media Queries)
---
*/

/* 1. :root Variables */
:root {
    --primary-color: #64ffda;
    --primary-color-darker: #52d1b8;
    --secondary-color: #ccd6f6;
    --background-dark: #0a192f;
    --background-light: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --white: #ffffff;
    --border-color: #233554;
    --shadow-color: rgba(2, 12, 27, 0.7);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --transition-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* 2. Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-darker);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo img {
    width: 120px;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-bar {
    width: 150px;
    height: 4px;
    background-color: var(--background-light);
    margin-top: 20px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: loading 2s infinite linear;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes loading {
    0% {
        left: -50%;
        width: 50%;
    }

    100% {
        left: 100%;
        width: 50%;
    }
}


/* 4. Global Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
}

.subtitle {
    display: block;
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* 5. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    background-color: var(--background-dark);
    box-shadow: 0 5px 20px var(--shadow-color);
    height: 70px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 80px;
    transition: transform var(--transition-speed) ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) var(--transition-cubic);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.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(--secondary-color);
    transition: all 0.3s ease-in-out;
}


/* 6. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--background-light));
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    right: 10%;
    animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 25%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-30px) translateX(20px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}


.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}


/* 7. Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* 8. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.card-content {
    padding: 40px 30px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.card-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
}

.card-link i {
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* 9. About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-speed) ease;
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    mix-blend-mode: screen;
    opacity: 0.1;
}

.about-image img {
    transition: transform var(--transition-speed) ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text-content h2 {
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
}

.about-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}


/* 10. Process Section (Timeline) */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -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-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    right: -30px;
    top: 32px;
    background-color: var(--primary-color);
    border: 4px solid var(--background-dark);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--background-dark);
    transition: transform var(--transition-speed) ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(360deg);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--background-light);
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 30px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 30px;
}

.timeline-step {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-content h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 11. ROI Calculator Section */
.roi-calculator-section {
    background-color: var(--background-light);
}

.roi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.roi-calculator {
    background-color: var(--background-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
}

.roi-calculator .btn {
    width: 100%;
    margin-top: 10px;
}

.roi-results {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.result-item h4 {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.result-item p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}


/* 12. Testimonials Section */
.testimonial-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-quote i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-quote p {
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-info h4 {
    margin: 0;
    color: var(--secondary-color);
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 100px);
    left: -50px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-arrow {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-speed) ease;
    pointer-events: all;
}

.slider-arrow:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
}


/* 13. Stats Section (3D Cubes) */
.stats-section {
    background-color: var(--background-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    justify-items: center;
}

.stat-cube-wrapper {
    perspective: 1000px;
    width: 250px;
    height: 250px;
}

.stat-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
    animation: rotateCube 20s infinite linear;
}

.stat-cube:hover {
    animation-play-state: paused;
}

.stat-cube .face {
    position: absolute;
    width: 250px;
    height: 250px;
    background-color: rgba(17, 34, 64, 0.8);
    border: 2px solid var(--primary-color);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.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);
}

.face i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.face h3 {
    font-size: 2.5rem;
    color: var(--white);
    margin: 0;
}

.face p {
    color: var(--text-primary);
    margin: 0;
}

@keyframes rotateCube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.stat-cube-wrapper:nth-child(2) .stat-cube {
    animation-delay: -3s;
}

.stat-cube-wrapper:nth-child(3) .stat-cube {
    animation-delay: -6s;
}

/* 14. CTA Section */
.cta-section {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)),
        url(https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1484&q=80) no-repeat center center/cover;
    padding: 80px 0;
}

.cta-wrapper {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.cta-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-wrapper p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}


/* 15. Footer */
.footer {
    background-color: var(--background-light);
    padding-top: 80px;
    font-size: 0.9rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .footer-logo img {
    height: 80px;
    margin-bottom: 1.5rem;
}

.footer-about p {
    color: var(--text-secondary);
    padding-right: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-primary);
    transition: var(--transition-speed) ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.footer-contact ul li a {
    color: var(--text-secondary);
}

.footer-contact ul li a:hover {
    color: var(--primary-color);
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.footer-legal a {
    color: var(--text-secondary);
    margin: 0 10px;
}

.footer-legal a:hover {
    color: var(--primary-color);
}


/* 16. Legal Pages (Privacy, Terms, Disclaimer) */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background-color: var(--background-light);
}

.page-header h1 {
    margin-bottom: 1rem;
}

.legal-content {
    background-color: var(--background-dark);
}

.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--secondary-color);
}

/* 17. Contact Page */
.contact-page-section {
    background-color: var(--background-dark);
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--background-light);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info-block h3,
.contact-form-block h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--border-color);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.info-text h4 {
    margin: 0 0 5px;
    color: var(--secondary-color);
}

.info-text p,
.info-text a {
    margin: 0;
    color: var(--text-secondary);
}

.info-text a:hover {
    color: var(--primary-color);
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    width: 50%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    margin-top: 10px;
}

.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: opacity 0.3s, visibility 0.3s;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--background-light);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}


/* 18. Helper Classes & Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-cubic), transform 0.8s var(--transition-cubic);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* 19. Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--background-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-speed) ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color-darker);
    transform: scale(1.1);
}

/* 20. Responsive Design (Media Queries) */

/* Tablets and larger phones */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--background-light);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        gap: 40px;
        padding-top: 100px;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        /* Ensure it's above menu */
    }

    .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);
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-content {
        order: -1;
        margin-bottom: 30px;
    }

    .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-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 5px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
    }

    .roi-wrapper {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        display: none;
        /* simpler navigation for touch */
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Smaller devices */
@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about p {
        padding-right: 0;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-legal {
        margin-top: 10px;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        width: 100%;
    }

    .contact-page-wrapper {
        padding: 30px;
    }

    .stats-grid {
        gap: 120px;
    }
}