/*
================================================
Theme: Quantum Bloom
Author: AI Assistant
Description: A futuristic, dark-themed design
with light-based bloom effects and animations.
================================================
*/

/* ---------------------------------- */
/*          1. VARIABLES              */
/* ---------------------------------- */
:root {
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Orbitron', sans-serif;

    --color-background: #0a0e1a;
    --color-surface: #131a2f;
    --color-primary: #00f2ea;
    --color-primary-dark: #00c7c0;
    --color-secondary: #ff00c1;
    --color-accent: #9d00ff;
    --color-text: #c0c8e7;
    --color-heading-text: #ffffff;
    --color-border: rgba(0, 242, 234, 0.2);
    --color-shadow: rgba(0, 242, 234, 0.1);
    --color-success: #00ff8c;

    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --container-width: 1200px;
    --section-padding: 100px;

    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.6);

    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
    --transition-slow: 0.6s ease-in-out;
}

/* ---------------------------------- */
/*          2. GLOBAL STYLES          */
/* ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading-text);
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 242, 234, 0.1);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}


/* ---------------------------------- */
/*      3. BACKGROUND & PARTICLES     */
/* ---------------------------------- */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
}

.blob1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -200px;
    left: -200px;
    animation: moveBlob1 25s infinite alternate;
}

.blob2 {
    width: 700px;
    height: 700px;
    background: var(--color-accent);
    bottom: -300px;
    right: -300px;
    animation: moveBlob2 30s infinite alternate;
}

.blob3 {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: moveBlob3 20s infinite alternate;
}

@keyframes moveBlob1 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(200px, 100px) scale(1.2);
    }
}

@keyframes moveBlob2 {
    from {
        transform: translate(0, 0) scale(1.1);
    }

    to {
        transform: translate(-150px, -200px) scale(0.9);
    }
}

@keyframes moveBlob3 {
    from {
        transform: rotate(0deg) scale(1);
    }

    to {
        transform: rotate(360deg) scale(1.3);
    }
}


/* ---------------------------------- */
/*          4. PRELOADER              */
/* ---------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo-container {
    position: relative;
    margin-bottom: 2rem;
}

.preloader-logo {
    height: 100px;
    animation: pulse 2s infinite ease-in-out;
}

.preloader-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--color-primary) 0%, rgba(0, 242, 234, 0) 70%);
    border-radius: 50%;
    animation: glow 2s infinite ease-in-out;
    opacity: 0;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.preloader-bar::after {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background: var(--color-primary);
    animation: load 1.5s ease-in-out forwards;
}

.preloader-text {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--color-text);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes glow {

    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes load {
    to {
        width: 100%;
    }
}

/* ---------------------------------- */
/*      5. HEADER & NAVIGATION        */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 10px 0;
    transition: background-color var(--transition-medium), box-shadow var(--transition-medium);
}

.header.scrolled {
    background-color: rgba(19, 26, 47, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-heading-text);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--color-text);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-heading-text);
    border-radius: 3px;
    transition: all var(--transition-medium);
}

/* ---------------------------------- */
/*       6. BUTTONS & CTAs            */
/* ---------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: var(--color-background);
}

.btn-primary:hover {
    color: var(--color-background);
    box-shadow: 0 0 20px var(--color-primary), 0 0 20px var(--color-secondary);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-background);
}

.btn i {
    margin-left: 8px;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-thaw {
    position: relative;
    z-index: 1;
}

.glimmer {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.glimmer-rect {
    fill: none;
    stroke: #fff;
    stroke-width: 4;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.btn-thaw:hover .glimmer-rect {
    stroke-dashoffset: 0;
}

.btn-thaw span {
    position: relative;
    z-index: 2;
}


/* ---------------------------------- */
/*          7. HERO SECTION           */
/* ---------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-3d-object {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

/* ---------------------------------- */
/*         8. SERVICES SECTION        */
/* ---------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 40px var(--color-shadow);
}

.service-card-bloom {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, var(--color-primary) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
    opacity: 0.15;
}

.service-card:hover .service-card-bloom {
    transform: translate(-50%, -50%) scale(40);
}

.service-card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card-title {
    margin-bottom: 1rem;
}

.service-card-description {
    margin-bottom: 1.5rem;
}

.service-card-link {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

.service-card-link i {
    transition: transform var(--transition-fast);
    display: inline-block;
    margin-left: 5px;
}

.service-card-link:hover i {
    transform: translateX(5px);
}

/* ---------------------------------- */
/*          9. ABOUT SECTION          */
/* ---------------------------------- */
.about-section {
    background-color: var(--color-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--color-primary);
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.about-image-wrapper img {
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-slow);
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-image-bloom {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, var(--color-primary) 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: 1;
    mix-blend-mode: screen;
    pointer-events: none;
}

.about-image-wrapper:hover .about-image-bloom {
    opacity: 0.2;
}

/* ---------------------------------- */
/*         10. PROCESS SECTION        */
/* ---------------------------------- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 0;
}

.process-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.process-step::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-background);
    border: 4px solid var(--color-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color var(--transition-medium), transform var(--transition-medium);
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
}

.process-step:nth-child(odd)::after {
    right: -11.5px;
}

.process-step:nth-child(even)::after {
    left: -8.5px;
}

.process-step:hover::after {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

.process-step-number {
    position: absolute;
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-surface);
    -webkit-text-stroke: 1px var(--color-border);
    z-index: -1;
    opacity: 0.5;
}

.process-step:nth-child(odd) .process-step-number {
    right: 40px;
    top: 0;
}

.process-step:nth-child(even) .process-step-number {
    left: 40px;
    top: 0;
}

.process-step-content {
    padding: 20px;
    background: var(--color-surface);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    position: relative;
}

.process-step-icon {
    position: absolute;
    top: 20px;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.process-step:nth-child(odd) .process-step-icon {
    left: 20px;
}

.process-step:nth-child(even) .process-step-icon {
    right: 20px;
}

/* ---------------------------------- */
/*       11. STATS COUNTER SECTION    */
/* ---------------------------------- */
.stats-section {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), var(--color-surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
}

.stat-label {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}


/* ---------------------------------- */
/*      12. TESTIMONIALS SECTION      */
/* ---------------------------------- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-card {
    flex: 0 0 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: var(--border-radius-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonial-bloom {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-primary) 0%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    margin: 0 auto 1.5rem;
    object-fit: cover;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    margin-bottom: 0.25rem;
}

.testimonial-company {
    font-size: 0.9rem;
    opacity: 0.8;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.slider-btn:hover {
    background: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}


/* ---------------------------------- */
/*          13. CTA SECTION           */
/* ---------------------------------- */
.cta-section {
    padding: 60px 0;
}

.cta-container {
    background: linear-gradient(135deg, var(--color-surface), #1a2242);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-title {
    margin-bottom: 1rem;
}

/* ---------------------------------- */
/*          14. FOOTER                */
/* ---------------------------------- */
.footer {
    background-color: #060914;
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-heading-text);
}

.footer-about p {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    transition: all var(--transition-medium);
}

.footer-social a:hover {
    background: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-5px);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--color-text);
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.footer-links ul li a:hover::before {
    transform: translateX(3px);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-contact ul li i {
    color: var(--color-primary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal-links a {
    color: var(--color-text);
    margin-left: 1.5rem;
}

/* ---------------------------------- */
/*        15. CONTACT PAGE            */
/* ---------------------------------- */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    background: linear-gradient(rgba(10, 14, 26, 0.8), rgba(10, 14, 26, 1)), url('https://images.pexels.com/photos/1591060/pexels-photo-1591060.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
}

.page-title {
    font-size: 3.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--color-surface);
    padding: 50px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
}

.contact-heading {
    margin-bottom: 0.5rem;
}

.contact-subheading {
    margin-bottom: 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.contact-info-item:hover {
    background-color: rgba(0, 242, 234, 0.05);
}

.contact-info-bloom {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    z-index: -1;
    opacity: 0.1;
}

.contact-info-item:hover .contact-info-bloom {
    transform: translate(-50%, -50%) scale(30);
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 50px;
    text-align: center;
}

.info-text h4 {
    margin-bottom: 0.25rem;
}

.info-text p,
.info-text a {
    margin: 0;
    color: var(--color-text);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text);
    font-family: var(--font-primary);
    transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-shadow);
}

.btn-full-width {
    width: 100%;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.popup.visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    text-align: center;
    position: relative;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform var(--transition-medium);
}

.popup.visible .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}


/* ---------------------------------- */
/*       16. LEGAL PAGES              */
/* ---------------------------------- */
.legal-container {
    max-width: 800px;
}

.content-wrapper {
    background-color: var(--color-surface);
    padding: 50px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
}

.content-wrapper h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* ---------------------------------- */
/*      17. UTILITY CLASSES           */
/* ---------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-background);
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.1);
}

.chat-bubble {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: white;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.8rem;
    z-index: 999;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium);
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-bubble-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    animation: chat-glow 2s infinite;
}

@keyframes chat-glow {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ---------------------------------- */
/*        18. ANIMATIONS              */
/* ---------------------------------- */
.animate-on-load,
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.is-visible,
body:not(.preloading) .animate-on-load {
    opacity: 1;
    transform: translateY(0);
}

/* BloomIn Animation */
@keyframes bloomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.animate-on-scroll[data-animation="bloomIn"] {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
}

.animate-on-scroll[data-animation="bloomIn"].is-visible {
    animation: bloomIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: var(--delay, 0s);
}

/* FadeInUp Animation */
.animate-on-scroll[data-animation="fadeInUp"] {
    opacity: 0;
    transform: translateY(50px);
}

.animate-on-scroll[data-animation="fadeInUp"].is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------------------------------- */
/*       19. RESPONSIVENESS           */
/* ---------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-3d-object {
        display: none;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-surface);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--color-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 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);
    }

    .process-timeline::after {
        left: 10px;
    }

    .process-step {
        width: 100%;
        padding-left: 40px;
        padding-right: 15px;
        left: 0 !important;
        text-align: left !important;
    }

    .process-step::after {
        left: 0 !important;
    }

    .process-step:nth-child(odd) .process-step-number,
    .process-step:nth-child(even) .process-step-number {
        display: none;
    }

    .process-step-icon {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-about p {
        padding-right: 0;
    }

    .footer-social,
    .footer-links ul {
        justify-content: center;
    }

    .footer-links ul li a {
        padding-left: 0;
    }

    .footer-links ul li a::before {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {

    h1,
    .hero-title {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .page-header {
        padding: 140px 0 80px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .chat-bubble {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        left: 20px;
        bottom: 20px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
    }
}