/*
================================================
TABLE OF CONTENTS
================================================
1.  CSS Variables & Global Styles
2.  Preloader & Utility Classes
3.  Header & Navigation
4.  Mobile Navigation
5.  Hero Section & 3D Cube
6.  General Section Styling
7.  Services Section
8.  Process Section (Timeline)
9.  Industries Section
10. Testimonials Section
11. CTA Section
12. Page Header (for subpages)
13. Legal & Contact Page Content
14. Footer
15. Interactive Components (Back to Top, Chat)
16. Animation Keyframes
17. Responsive Media Queries
================================================
*/

/* 1. CSS Variables & Global Styles
------------------------------------------------ */
:root {
    --primary-color: #4A90E2;
    /* A professional blue */
    --secondary-color: #50E3C2;
    /* A vibrant accent teal/mint */
    --dark-blue: #0D1B2A;
    --medium-blue: #1B263B;
    --light-blue: #415A77;
    --text-color: #E0E1DD;
    --text-muted: #a8b2c1;
    --bg-color: #0d1218;
    --bg-light: #1a2029;
    --white-color: #FFFFFF;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.metamorph-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(74, 144, 226, 0.15), transparent 40%);
    transition: background 0.2s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--white-color);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. Preloader & Utility Classes
------------------------------------------------ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-blue);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    margin-bottom: 20px;
}

.loader-logo img {
    max-width: 150px;
    filter: invert(1);
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background-color: var(--light-blue);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    animation: loading 2.5s infinite;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(80, 227, 194, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

/* 3. Header & Navigation
------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.header.scrolled {
    background-color: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 70px;
    filter: invert(1);
    transition: transform var(--transition-speed) ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav .nav-links {
    display: flex;
    gap: 35px;
}

.main-nav .nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-family: var(--font-primary);
    position: relative;
    padding: 5px 0;
}

.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-speed) ease-in-out;
}

.main-nav .nav-links a:hover::after,
.main-nav .nav-links a.active::after {
    width: 100%;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    color: var(--white-color);
}

.nav-cta {
    padding: 10px 24px;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .line {
    width: 28px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: all var(--transition-speed) ease-in-out;
}

.hamburger.active .line1 {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger.active .line2 {
    opacity: 0;
}

.hamburger.active .line3 {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* 4. Mobile Navigation
------------------------------------------------ */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(15px);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 25px 0;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white-color);
    font-family: var(--font-primary);
}

/* 5. Hero Section & 3D Cube
------------------------------------------------ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero-headline {
    margin-bottom: 20px;
}

.hero-headline .highlight {
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subheadline {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual {
    perspective: 1200px;
}

.scene {
    width: 250px;
    height: 250px;
    margin: auto;
    transform-style: preserve-3d;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-125px);
    animation: rotate-cube 30s infinite linear;
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--secondary-color);
    background: rgba(27, 38, 59, 0.6);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.cube-face.front {
    transform: rotateY(0deg) translateZ(125px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* 6. General Section Styling
------------------------------------------------ */
.content-section {
    padding: 100px 0;
}

.dark-section {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: 15px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* 7. Services Section
------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    /* --- FIX: Set initial state for animation --- */
    opacity: 0;
    transform: translateY(50px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1), transparent 30%);
    transition: opacity 0.5s ease;
    opacity: 0;
    transform-origin: center;
    animation: rotate-gradient 8s infinite linear;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-title {
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.service-link {
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: transform var(--transition-speed) ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 8. Process Section (Timeline)
------------------------------------------------ */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(var(--light-blue), var(--secondary-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 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-step:nth-child(odd) .process-content {
    padding-right: 30px;
}

.process-step:nth-child(even) .process-content {
    padding-left: 30px;
}

.process-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--medium-blue);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.process-step:nth-child(odd) .process-icon {
    right: -30px;
}

.process-step:nth-child(even) .process-icon {
    left: -30px;
}

.process-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    z-index: -1;
}

.process-step:nth-child(odd) .process-number {
    right: 30px;
    top: -10px;
}

.process-step:nth-child(even) .process-number {
    left: 30px;
    top: -10px;
}

.process-title {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* 9. Industries Section
------------------------------------------------ */
.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.industry-item {
    background: var(--bg-light);
    padding: 20px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    /* --- FIX: Set initial state for animation --- */
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.industry-item:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.05) translateY(0);
    /* Adjust transform on hover */
}

.industry-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: color var(--transition-speed) ease;
}

.industry-item:hover i {
    color: var(--white-color);
}

/* 10. Testimonials Section
------------------------------------------------ */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 50px;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 30px;
}

.testimonial-author {
    font-weight: 600;
}

.author-name {
    color: var(--white-color);
    display: block;
}

.author-title {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.testimonial-nav button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--white-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.testimonial-nav button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 11. CTA Section
------------------------------------------------ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, var(--primary-color), var(--dark-blue));
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-text {
    margin-bottom: 30px;
    color: var(--text-color);
}

.cta-section .btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-blue);
}

.cta-section .btn-primary:hover {
    background-color: var(--white-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* 12. Page Header (for subpages)
------------------------------------------------ */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.8)), url('https://source.unsplash.com/random/1600x900/?digital,abstract') no-repeat center center/cover;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs span {
    color: var(--white-color);
}

/* 13. Legal & Contact Page Content
------------------------------------------------ */
.legal-content .content-wrapper,
.contact-grid {
    background-color: var(--bg-light);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-info-item h4 {
    margin-bottom: 5px;
    color: var(--white-color);
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: var(--dark-blue);
    border: 1px solid var(--light-blue);
    border-radius: var(--border-radius);
    color: var(--white-color);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-speed) ease;
}

.form-control:focus+label,
.form-control:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: var(--bg-light);
    padding: 0 5px;
    color: var(--primary-color);
}

select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a8b2c1' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

#form-status {
    margin-top: 15px;
    font-weight: 500;
}

/* 14. Footer
------------------------------------------------ */
.footer {
    background-color: var(--dark-blue);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white-color);
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about .logo img {
    height: 80px;
    filter: invert(1);
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-muted);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--medium-blue);
    color: var(--white-color);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-legal a {
    color: var(--text-muted);
    margin: 0 10px;
}

.footer-legal a:hover {
    color: var(--white-color);
}

/* 15. Interactive Components (Back to Top, Chat)
------------------------------------------------ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    transform: scale(1.1);
}

.live-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 998;
    box-shadow: var(--shadow);
    animation: pulse 2.5s infinite;
}

/* 16. Animation Keyframes
------------------------------------------------ */
@keyframes loading {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
        transform: translateX(200px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(80, 227, 194, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(80, 227, 194, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(80, 227, 194, 0);
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes rotate-gradient {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 17. Responsive Media Queries
------------------------------------------------ */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .main-nav,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
        /* Hide complex animation on smaller screens */
    }

    .hero-subheadline {
        margin: 0 auto 30px;
    }

    .hero-cta {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .process-timeline::after {
        left: 30px;
    }

    .process-step {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        text-align: left !important;
        margin-bottom: 30px;
    }

    .process-step:nth-child(even) {
        left: 0;
    }

    .process-icon {
        left: 0 !important;
    }

    .process-step:nth-child(odd) .process-content,
    .process-step:nth-child(even) .process-content {
        padding-left: 30px;
        padding-right: 0;
    }

    .process-step:nth-child(odd) .process-number,
    .process-step:nth-child(even) .process-number {
        left: 30px;
        top: -10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .legal-content .content-wrapper,
    .contact-grid {
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        margin-left: -15px;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-slide {
        padding: 0 10px;
    }

    .testimonial-nav {
        display: none;
    }

    /* Hide arrows, rely on swipe */
    .live-chat-widget {
        bottom: 20px;
        left: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}