/*
================================================
PIXEL & PULSE THEME - DIGITAL MARKETING WEBSITE
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  Root Variables & Global Styles
2.  Preloader
3.  Header & Navigation
4.  Footer
5.  Reusable Components (Buttons, Containers, etc.)
6.  Background & Animations
7.  Hero Section
8.  Page Header (for subpages)
9.  Services Section
10. About Section
11. Process Section
12. Testimonials Section
13. ROI Calculator Section
14. CTA Section
15. Contact Page
16. Legal Pages
17. Utility & Helper Classes
18. Responsive Design (Media Queries)
================================================
*/

/* 1. Root Variables & Global Styles
------------------------------------------------ */
:root {
    --color-teal: #00BFA6;
    --color-magenta: #FF4081;
    --color-white: #F5F5F5;
    --color-charcoal: #222222;
    --color-charcoal-light: #333333;
    --color-charcoal-lighter: #444444;
    --color-gray: #9e9e9e;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    --header-height: 80px;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--color-magenta), var(--color-teal));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-charcoal);
    color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-gray);
}

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-magenta);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--color-teal);
    font-family: var(--font-secondary);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header .section-title {
    color: var(--color-white);
    margin-bottom: 15px;
}

.section-header .section-intro {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-gray);
}

/* 2. Preloader
------------------------------------------------ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-charcoal);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    width: 100px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-bar {
    width: 150px;
    height: 4px;
    background: var(--color-charcoal-light);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar::before {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loading-bar 1.5s ease-in-out forwards;
}

@keyframes loading-bar {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* 3. Header & Navigation
------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    background-color: rgba(34, 34, 34, 0.8);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 40px;
    transition: height var(--transition-speed) ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: var(--color-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(--gradient-primary);
    transition: width var(--transition-speed) 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;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-speed) ease-in-out;
}

/* 4. Footer
------------------------------------------------ */
.footer {
    background-color: var(--color-charcoal-light);
    padding: 80px 0 30px;
    border-top: 2px solid var(--color-charcoal-lighter);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about .footer-logo img {
    height: 45px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-charcoal-lighter);
    color: var(--color-white);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--color-white);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}


.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-contact ul li a {
    color: var(--color-gray);
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
    color: var(--color-teal);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gray);
}

.footer-contact ul li i {
    color: var(--color-teal);
}

.footer-bottom {
    border-top: 1px solid var(--color-charcoal-lighter);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--color-gray);
    margin: 0;
}

.footer-legal a {
    color: var(--color-gray);
    margin: 0 10px;
}

.footer-legal a:hover {
    color: var(--color-white);
}

.footer-legal .separator {
    color: var(--color-gray);
}


/* 5. Reusable Components
------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-secondary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    color: var(--color-white);
    box-shadow: 0 5px 20px rgba(255, 64, 129, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-charcoal);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.pulse-on-hover:hover {
    animation: pulse 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* 6. Background & Animations
------------------------------------------------ */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(50px);
}

.shape1 {
    width: 400px;
    height: 400px;
    background-color: var(--color-magenta);
    top: 10%;
    left: 10%;
    animation: float 20s infinite ease-in-out alternate;
}

.shape2 {
    width: 300px;
    height: 300px;
    background-color: var(--color-teal);
    bottom: 15%;
    right: 5%;
    animation: float 25s infinite ease-in-out alternate;
}

.shape3 {
    width: 200px;
    height: 200px;
    background-color: var(--color-magenta);
    top: 50%;
    right: 20%;
    animation: float 18s infinite ease-in-out alternate;
}

.shape4 {
    width: 150px;
    height: 150px;
    background-color: var(--color-teal);
    bottom: 5%;
    left: 25%;
    animation: float 22s infinite ease-in-out alternate;
}

.shape5 {
    width: 250px;
    height: 250px;
    background-color: var(--color-magenta);
    top: 20%;
    right: 40%;
    animation: float 28s infinite ease-in-out alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(100px, 50px) rotate(180deg);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 7. Hero Section
------------------------------------------------ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content .subtitle {
    font-size: 1.1rem;
    color: var(--color-teal);
    font-family: var(--font-secondary);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.hero-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 35px;
    color: var(--color-gray);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    perspective: 1000px;
}

.hero-3d-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    transform-style: preserve-3d;
    animation: rotate3D 30s infinite linear;
}

.hero-3d-element {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--color-white);
}

.hero-3d-element:nth-child(1) {
    transform: rotateY(0deg) translateZ(200px);
    background: rgba(0, 191, 166, 0.2);
}

.hero-3d-element:nth-child(2) {
    transform: rotateY(90deg) translateZ(200px);
    background: rgba(255, 64, 129, 0.2);
}

.hero-3d-element:nth-child(3) {
    transform: rotateY(180deg) translateZ(200px);
    background: rgba(0, 191, 166, 0.2);
}

.hero-3d-element:nth-child(4) {
    transform: rotateY(270deg) translateZ(200px);
    background: rgba(255, 64, 129, 0.2);
}

@keyframes rotate3D {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* 8. Page Header
------------------------------------------------ */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    background: var(--color-charcoal-light);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--color-white);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}


/* 9. Services Section
------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-charcoal-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-charcoal-lighter);
    transition: all var(--transition-speed) ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--color-teal);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--color-white);
    box-shadow: 0 0 20px rgba(255, 64, 129, 0.3);
}

.service-title {
    margin-bottom: 15px;
    color: var(--color-white);
}

.service-description {
    margin-bottom: 25px;
}

.service-link {
    font-weight: 600;
    color: var(--color-teal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: transform var(--transition-speed) ease;
}

.service-link:hover i {
    transform: translateX(5px);
}


/* 10. About Section
------------------------------------------------ */
.about-section {
    background: var(--color-charcoal-light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 30px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-list i {
    color: var(--color-teal);
    font-size: 1.3rem;
}

/* 11. Process Section
------------------------------------------------ */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--color-charcoal-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.process-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
}

.process-icon-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    z-index: 1;
}

.process-step:nth-child(odd) .process-icon-wrapper {
    right: -40px;
}

.process-step:nth-child(even) .process-icon-wrapper {
    left: -40px;
}

.process-icon {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--color-white);
    border: 5px solid var(--color-charcoal);
    box-shadow: 0 0 0 3px var(--color-teal);
}

.process-number {
    position: absolute;
    top: -15px;
    width: 30px;
    height: 30px;
    background: var(--color-magenta);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.process-step:nth-child(odd) .process-number {
    right: -15px;
}

.process-step:nth-child(even) .process-number {
    left: -15px;
}

.process-content {
    padding: 20px 30px;
    background: var(--color-charcoal-light);
    border-radius: var(--border-radius);
    position: relative;
}

.process-content h3 {
    color: var(--color-white);
    margin-bottom: 10px;
}

/* 12. Testimonials Section
------------------------------------------------ */
.testimonials-section {
    background-color: var(--color-charcoal-light);
}

.testimonial-slider-wrapper {
    position: relative;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
    /* For gap between slides */
}

.testimonial-card {
    background-color: var(--color-charcoal);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--color-charcoal-lighter);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--color-teal);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--color-white);
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    margin: 0;
    color: var(--color-white);
}

.author-info span {
    color: var(--color-gray);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 80px);
    /* Extend beyond wrapper */
    left: -40px;
    display: flex;
    justify-content: space-between;
}

.slider-controls button {
    background-color: var(--color-charcoal-lighter);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.slider-controls button:hover {
    background: var(--gradient-primary);
}


/* 13. ROI Calculator Section
------------------------------------------------ */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    background-color: var(--color-charcoal-light);
    padding: 50px;
    border-radius: var(--border-radius);
}

.calculator-inputs .form-group {
    margin-bottom: 30px;
}

.calculator-inputs label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.calculator-inputs input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--color-charcoal-lighter);
    border-radius: 5px;
    outline: none;
}

.calculator-inputs input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-teal);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--color-charcoal);
}

.calculator-inputs input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-teal);
    cursor: pointer;
    border-radius: 50%;
}

.calculator-inputs span {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--color-teal);
    margin-top: 5px;
}

.calculator-results {
    background-color: var(--color-charcoal);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.calculator-results h4 {
    margin-bottom: 25px;
}

.result-item {
    margin-bottom: 20px;
}

.result-item span {
    display: block;
    color: var(--color-gray);
    font-size: 0.9rem;
}

.result-item strong {
    font-size: 2.5rem;
    color: var(--color-white);
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-top: 20px;
}

/* 14. CTA Section
------------------------------------------------ */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
}

.cta-container {
    text-align: center;
}

.cta-container h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--color-white);
}

.cta-container p {
    color: var(--color-white);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-container .btn {
    background: var(--color-white);
    color: var(--color-charcoal);
}

.cta-container .btn:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
    border-color: var(--color-white);
}


/* 15. Contact Page
------------------------------------------------ */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-block {
    background-color: var(--color-charcoal-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-info-block h3 {
    margin-bottom: 15px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--color-white);
    flex-shrink: 0;
}

.info-text h4 {
    margin-bottom: 5px;
    color: var(--color-white);
}

.info-text p,
.info-text p a {
    margin: 0;
    color: var(--color-gray);
}

.contact-form-block {
    background-color: var(--color-charcoal-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-form h3 {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background-color: var(--color-charcoal);
    border: 1px solid var(--color-charcoal-lighter);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-teal);
}

.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: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-charcoal-light);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform var(--transition-speed);
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-teal);
    margin-bottom: 20px;
}

/* 16. Legal Pages
------------------------------------------------ */
.legal-content .content-wrapper {
    background-color: var(--color-charcoal-light);
    padding: 50px;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--color-white);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-charcoal-lighter);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-content ul li {
    margin-bottom: 10px;
}


/* 17. Utility & Helper Classes
------------------------------------------------ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--color-white);
    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 var(--transition-speed);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 18. Responsive Design
------------------------------------------------ */

/* Tablets and larger phones */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-charcoal);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: left var(--transition-speed) ease;
        padding-top: 50px;
        gap: 25px;
    }

    .nav-menu.active {
        left: 0;
    }

    .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-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto 35px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 50px;
    }

    .hero-3d-element {
        width: 80px;
        height: 80px;
        margin: -40px;
        font-size: 2rem;
    }

    .hero-3d-element:nth-child(1) {
        transform: rotateY(0deg) translateZ(150px);
    }

    .hero-3d-element:nth-child(2) {
        transform: rotateY(90deg) translateZ(150px);
    }

    .hero-3d-element:nth-child(3) {
        transform: rotateY(180deg) translateZ(150px);
    }

    .hero-3d-element:nth-child(4) {
        transform: rotateY(270deg) translateZ(150px);
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .process-timeline::after {
        left: 40px;
    }

    .process-step {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }

    .process-step:nth-child(odd) {
        left: 0;
        text-align: left;
    }

    .process-step:nth-child(even) {
        left: 0;
    }

    .process-icon-wrapper,
    .process-step:nth-child(even) .process-icon-wrapper,
    .process-step:nth-child(odd) .process-icon-wrapper {
        left: 0;
    }

    .slider-controls {
        display: none;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Smaller phones */
@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .header-actions .btn {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .page-header {
        padding: 140px 0 80px;
    }

    .service-card,
    .contact-info-block,
    .contact-form-block,
    .legal-content .content-wrapper {
        padding: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .chat-widget {
        width: 50px;
        height: 50px;
        left: 20px;
        bottom: 20px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
    }
}