/*
---
Chromatic Streetline Theme
---
*/

/* ------------------- */
/*  1. ROOT & VARIABLES  */
/* ------------------- */
:root {
    --bg-primary: #0A071E;
    --bg-secondary: #120C33;
    --bg-tertiary: #1A114A;
    --bg-accent: rgba(23, 16, 69, 0.7);

    --primary-color: #6A11CB;
    --secondary-color: #2575FC;
    --accent-color: #F72585;
    --accent-color-light: #FF85B8;

    --text-primary: #E0E0E0;
    --text-secondary: #A0A0C0;
    --text-headings: #FFFFFF;

    --border-color: rgba(106, 17, 203, 0.3);
    --border-hover: var(--accent-color);

    --shadow-color: rgba(106, 17, 203, 0.2);
    --shadow-color-accent: rgba(247, 37, 133, 0.3);

    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;

    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #B5179E 100%);
    --gradient-border: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);

    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s ease;
}

/* ------------------- */
/*  2. GLOBAL STYLES     */
/* ------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--gradient-background);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-color-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--text-headings);
    line-height: 1.3;
    text-shadow: 0 0 10px var(--shadow-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}

/* ------------------- */
/*  3. UTILITY CLASSES   */
/* ------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header .subtitle {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--gradient-accent);
    color: var(--text-headings);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.section-header .subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: subtitle-shine 4s infinite;
}

@keyframes subtitle-shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
}

/* ------------------- */
/*  4. CUSTOM CURSOR    */
/* ------------------- */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    transition: all 0.1s ease-out;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

/* Cursor hover states */
a:hover~.cursor-outline,
button:hover~.cursor-outline,
.service-card:hover~.cursor-outline,
.slider-btn:hover~.cursor-outline,
.hamburger:hover~.cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--shadow-color-accent);
}

/* ------------------- */
/*  5. PRELOADER        */
/* ------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 150px;
    filter: invert(1);
    animation: pulse 2s infinite ease-in-out;
}

.preloader-bar {
    width: 150px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.preloader-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--gradient-accent);
    animation: preloader-fill 2.5s ease-out forwards;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes preloader-fill {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* ------------------- */
/*  6. HEADER & NAVBAR  */
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-medium);
    background: transparent;
}

.header.scrolled {
    background: var(--bg-accent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 50px;
    filter: invert(1);
    transition: var(--transition-medium);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-headings);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-headings);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* ------------------- */
/*  7. BUTTONS          */
/* ------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    transition: var(--transition-fast);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--shadow-color-accent);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--shadow-color-accent);
}

.btn-full {
    width: 100%;
}

/* ------------------- */
/*  8. HERO SECTION     */
/* ------------------- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-glow-1,
.hero-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    top: -10%;
    left: -15%;
    opacity: 0.3;
    animation: drift 15s infinite alternate ease-in-out;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    bottom: -15%;
    right: -20%;
    opacity: 0.2;
    animation: drift 20s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, -30px) scale(1.1);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(106, 17, 203, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(106, 17, 203, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-pan 30s linear infinite;
}

@keyframes grid-pan {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 50px 50px;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-text h1 {
    background: -webkit-linear-gradient(45deg, var(--text-headings), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.hero-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(18, 12, 51, 0.6);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--shadow-color-accent);
}

.front {
    transform: rotateY(0deg) translateZ(125px);
}

.back {
    transform: rotateY(180deg) translateZ(125px);
}

.right {
    transform: rotateY(90deg) translateZ(125px);
}

.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.top {
    transform: rotateX(90deg) translateZ(125px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ------------------- */
/*  9. SERVICES SECTION */
/* ------------------- */
.services-section {
    background: var(--bg-secondary);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-tertiary);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: -1;
}

.service-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    animation: rotate-glow 8s linear infinite;
    z-index: -2;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover .service-card-glow {
    opacity: 0.2;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-medium);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-10deg);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-link {
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 1.5rem;
    display: inline-block;
}

.service-link i {
    transition: transform var(--transition-fast);
    margin-left: 0.25rem;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* ------------------- */
/*  10. ABOUT SECTION   */
/* ------------------- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 15px;
    position: relative;
    z-index: 2;
}

.about-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    top: 20px;
    left: 20px;
    z-index: 1;
    transition: var(--transition-medium);
}

.about-image:hover .about-image-bg {
    top: -10px;
    left: -10px;
}

.stats-counter {
    display: flex;
    gap: 2rem;
    margin: 2.5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}


/* ------------------- */
/*  11. PROCESS SECTION */
/* ------------------- */
.process-section {
    background: var(--bg-secondary);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--gradient-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 1;
}

.timeline-item {
    padding: 2rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-secondary);
    border: 4px solid var(--accent-color);
    top: 30px;
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition-medium);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--shadow-color-accent);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 6px;
    transition: var(--transition-medium);
}

.timeline-item:hover .timeline-content {
    border-color: var(--border-hover);
}

.timeline-step {
    position: absolute;
    top: -20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.timeline-item:nth-child(odd) .timeline-step {
    right: 20px;
}

.timeline-item:nth-child(even) .timeline-step {
    left: 20px;
}

/* ------------------- */
/* 12. TESTIMONIALS     */
/* ------------------- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-medium);
}

.testimonial-card {
    flex: 0 0 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2.5rem;
    color: var(--border-color);
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.author-info {
    text-align: left;
}

.author-info h4 {
    margin: 0;
    color: var(--text-headings);
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-medium);
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* ------------------- */
/*  13. CTA SECTION    */
/* ------------------- */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-section h2 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* ------------------- */
/*  14. FOOTER         */
/* ------------------- */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-logo img {
    height: 50px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-medium);
}

.footer-social a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-5px);
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-accent);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a,
.footer-contact ul a {
    color: var(--text-secondary);
}

.footer-links ul a:hover,
.footer-contact ul a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-contact li i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal a {
    color: var(--text-secondary);
    margin: 0 0.5rem;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

.footer-legal span {
    color: var(--border-color);
}


/* ------------------- */
/*  15. BACK TO TOP     */
/* ------------------- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-medium);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 0 15px var(--shadow-color-accent);
    transform: translateY(-5px);
}

/* ------------------- */
/*  16. CHAT WIDGET    */
/* ------------------- */
.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button i {
    transition: transform 0.3s, opacity 0.3s;
    position: absolute;
}

.chat-button .fa-times {
    transform: scale(0);
    opacity: 0;
}

.chat-widget.open .chat-button .fa-comments {
    transform: scale(0);
    opacity: 0;
}

.chat-widget.open .chat-button .fa-times {
    transform: scale(1);
    opacity: 1;
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    transform-origin: bottom right;
}

.chat-widget.open .chat-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.chat-header p {
    margin: 0;
    font-size: 0.8rem;
}

.chat-body {
    padding: 1.5rem;
    height: 300px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message p {
    display: inline-block;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin: 0;
    max-width: 80%;
}

.chat-message.received p {
    background: var(--bg-tertiary);
    border-top-left-radius: 0;
}

.chat-footer {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: var(--bg-tertiary);
    padding: 0.8rem;
    border-radius: 5px;
    color: var(--text-primary);
    outline: none;
}

.chat-footer button {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 0 1rem;
    margin-left: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
}


/* ------------------- */
/* 17. CONTACT & LEGAL PAGES */
/* ------------------- */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-info-block h3 {
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}

.info-text h4 {
    margin: 0 0 0.5rem;
}

.info-text p,
.info-text p a {
    margin: 0;
    color: var(--text-secondary);
}

.info-text p a:hover {
    color: var(--accent-color);
}

/* Contact Form */
.contact-form {
    background: var(--bg-tertiary);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    width: 50%;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0A0C0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--shadow-color-accent);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    padding: 0 0.25rem;
    background: var(--bg-tertiary);
    color: var(--accent-color);
}

.form-group label.select-label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    padding: 0 0.25rem;
    background: var(--bg-tertiary);
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 7, 30, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: var(--transition-medium);
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.popup-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

/* Legal Pages Content */
.legal-content .content-wrapper {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* ------------------- */
/* 18. ANIMATIONS       */
/* ------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes glitch {

    2%,
    64% {
        transform: translate(2px, 0) skew(0deg);
    }

    4%,
    60% {
        transform: translate(-2px, 0) skew(0deg);
    }

    62% {
        transform: translate(0, 0) skew(5deg);
    }
}


/* ------------------- */
/* 19. RESPONSIVENESS   */
/* ------------------- */

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: var(--bg-secondary);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .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-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-3d-cube {
        width: 200px;
        height: 200px;
    }

    .face {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .front {
        transform: rotateY(0deg) translateZ(100px);
    }

    .back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .hero-actions {
        justify-content: center;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .process-timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
    }

    .timeline-item:nth-child(odd) .timeline-step {
        right: auto;
        left: 20px;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .stats-counter {
        flex-direction: column;
        align-items: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        width: 100%;
    }

    .slider-controls {
        position: static;
        transform: none;
        margin-top: 2rem;
        justify-content: center;
        gap: 1rem;
    }

    .chat-popup {
        width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .header-actions .btn {
        display: none;
    }

    .hero {
        height: auto;
        padding: 120px 0 80px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}