/*
    Theme: Glitchpunk Dystopia
    Author: AI Assistant
    Description: A dark, futuristic theme with glitch effects, neon accents, and cyberpunk aesthetics.
*/

/* ------------------- */
/* CSS Custom Properties (Variables) */
/* ------------------- */
:root {
    --color-background: #0a0a0c;
    --color-surface: #121218;
    --color-primary: #00f0ff;
    /* Neon Cyan */
    --color-secondary: #ff00f0;
    /* Neon Magenta */
    --color-accent: #00ff85;
    /* Neon Green */
    --color-text: #e0e0e0;
    --color-text-muted: #8a8a9e;
    --color-border: rgba(0, 240, 255, 0.2);
    --color-shadow: rgba(0, 240, 255, 0.1);

    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;

    --header-height: 80px;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

/* ------------------- */
/* Base & Reset Styles */
/* ------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAAYklEQVRIx+3MyQEAIAwEQRjS3M/gC+isg8S/C8gAPgG/A/gG/AYwzNwevfsT4b/w+x8gS/tP8l/s/wB/gP8P/s/wP8P/gH8P+Gf4H/gH/A/wI+gU4gYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYg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YgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYgYg-');
    z-index: -2;
    opacity: 0.1;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
    color: var(--color-secondary);
    text-shadow: 0 0 5px var(--color-secondary);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0 5px var(--color-primary), 0 0 10px var(--color-primary);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* ------------------- */
/* 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 ease, transform 0.1s ease;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-primary);
}

a:hover~.cursor-outline,
button:hover~.cursor-outline,
.form-group input:focus~.cursor-outline,
.form-group textarea:focus~.cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--color-secondary);
}

/* ------------------- */
/* Scanline & Glitch Effect */
/* ------------------- */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9998;
    background-size: 100% 3px, 5px 100%;
    pointer-events: none;
    animation: scanline 15s linear infinite;
}

@keyframes scanline {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100vh;
    }
}

@keyframes text-glitch {
    0% {
        text-shadow: 0.05em 0 0 #ff00f0, -0.05em 0 0 #00f0ff;
    }

    14% {
        text-shadow: 0.05em 0 0 #ff00f0, -0.05em 0 0 #00f0ff;
    }

    15% {
        text-shadow: -0.05em -0.025em 0 #ff00f0, 0.025em 0.025em 0 #00f0ff;
    }

    49% {
        text-shadow: -0.05em -0.025em 0 #ff00f0, 0.025em 0.025em 0 #00f0ff;
    }

    50% {
        text-shadow: 0.025em 0.05em 0 #ff00f0, 0.05em 0 0 #00f0ff;
    }

    99% {
        text-shadow: 0.025em 0.05em 0 #ff00f0, 0.05em 0 0 #00f0ff;
    }

    100% {
        text-shadow: -0.025em 0 0 #ff00f0, -0.025em -0.05em 0 #00f0ff;
    }
}

[data-text] {
    position: relative;
}

[data-text]::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-primary);
    -webkit-clip-path: inset(50% 0 50% 0);
    clip-path: inset(50% 0 50% 0);
    animation: text-glitch-top 3s linear infinite;
    z-index: 1;
}

@keyframes text-glitch-top {

    0%,
    100% {
        clip-path: inset(50% 0 50% 0);
    }

    20% {
        clip-path: inset(20% 0 60% 0);
    }

    40% {
        clip-path: inset(80% 0 5% 0);
    }

    60% {
        clip-path: inset(40% 0 40% 0);
    }

    80% {
        clip-path: inset(65% 0 10% 0);
    }
}

[data-text]::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-secondary);
    -webkit-clip-path: inset(50% 0 50% 0);
    clip-path: inset(50% 0 50% 0);
    animation: text-glitch-bottom 3s linear infinite;
    z-index: 1;
}

@keyframes text-glitch-bottom {

    0%,
    100% {
        clip-path: inset(50% 0 50% 0);
    }

    20% {
        clip-path: inset(70% 0 10% 0);
    }

    40% {
        clip-path: inset(10% 0 85% 0);
    }

    60% {
        clip-path: inset(60% 0 20% 0);
    }

    80% {
        clip-path: inset(35% 0 50% 0);
    }
}

/* ------------------- */
/* Header & Navigation */
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: background-color var(--transition-speed) ease, backdrop-filter var(--transition-speed) ease;
}

.header.scrolled {
    background-color: rgba(18, 18, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-right: 10px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-secondary);
    color: var(--color-text);
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 0;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease, visibility var(--transition-speed) ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 30px;
    height: 2px;
    background-color: #fff;
    position: relative;
    transition: background-color 0s 0.2s linear;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: transform 0.2s ease, top 0.2s 0.2s ease, bottom 0.2s 0.2s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav.is-active .hamburger {
    background-color: transparent;
}

.nav.is-active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    transition: top 0.2s ease, transform 0.2s 0.2s ease;
}

.nav.is-active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
    transition: bottom 0.2s ease, transform 0.2s 0.2s ease;
}

/* ------------------- */
/* Buttons */
/* ------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 250%;
    height: 250%;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-background);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-primary::before {
    background-color: var(--color-background);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    color: var(--color-background);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ------------------- */
/* Hero Section */
/* ------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(10, 10, 12, 0) 0%, var(--color-background) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    animation: text-flicker 4s linear infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: 1px solid var(--color-border);
    background: transparent;
    animation: shape-float 20s infinite linear;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    border-radius: 50%;
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation-duration: 15s;
    animation-direction: reverse;
}

.shape-3 {
    width: 50px;
    height: 50px;
    top: 50%;
    left: 25%;
    animation-duration: 25s;
}

@keyframes shape-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.2;
    }

    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.5;
    }
}

@keyframes text-flicker {
    0% {
        opacity: 0.5;
    }

    5% {
        opacity: 1;
    }

    10% {
        opacity: 0.8;
    }

    15% {
        opacity: 1;
    }

    25% {
        opacity: 0.6;
    }

    30% {
        opacity: 1;
    }

    35% {
        opacity: 0.7;
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}


/* ------------------- */
/* Section Headers */
/* ------------------- */
.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    display: block;
    font-family: var(--font-secondary);
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* ------------------- */
/* Services Section */
/* ------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 300px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all var(--transition-speed) ease;
}

.service-card-back {
    transform: rotateY(180deg);
    background-color: #1a1a22;
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: all var(--transition-speed) ease;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.btn-learn-more {
    margin-top: 1rem;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
}

/* ------------------- */
/* Process Section */
/* ------------------- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-background);
    border: 3px solid var(--color-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    position: relative;
    border-radius: var(--border-radius);
}

.timeline-step {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    position: absolute;
    top: -20px;
    right: 20px;
    opacity: 0.2;
}

.timeline-item:nth-child(even) .timeline-step {
    right: auto;
    left: 20px;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--color-accent);
    text-shadow: none;
}

/* ------------------- */
/* Industries Section */
/* ------------------- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background-color: var(--color-surface);
    padding: 2rem;
    text-align: center;
    border: 1px solid transparent;
    border-image: linear-gradient(to bottom right, transparent 30%, var(--color-border) 100%) 1;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.industry-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    border-image: none;
    box-shadow: 0 10px 30px var(--color-shadow);
}

.industry-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.industry-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: none;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ------------------- */
/* Testimonials Section */
/* ------------------- */
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-surface);
    padding: 2rem;
    border-left: 4px solid var(--color-secondary);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    text-align: right;
}

.author-name {
    display: block;
    font-weight: 700;
    color: #fff;
}

.author-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ------------------- */
/* CTA Section */
/* ------------------- */
.cta-section {
    padding: 60px 0;
}

.cta-wrapper {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(from 0deg, var(--color-primary) 0%, transparent 5%, transparent 40%, var(--color-primary) 50%);
    animation: cta-rotate 10s linear infinite;
    opacity: 0.1;
    z-index: 0;
}

@keyframes cta-rotate {
    100% {
        transform: rotate(360deg);
    }
}

.cta-content,
.cta-action {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
}

.cta-text {
    color: var(--color-text-muted);
    max-width: 500px;
}

/* ------------------- */
/* Footer */
/* ------------------- */
.footer {
    background-color: var(--color-surface);
    padding: 60px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 80px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.footer-col.footer-about p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-muted);
}

.footer-socials a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-background);
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: none;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--color-text-muted);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.footer-contact ul li i {
    color: var(--color-primary);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.footer-contact ul li a {
    color: var(--color-text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ------------------- */
/* Page-Specific Styles (Contact, Legal, etc.) */
/* ------------------- */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 12, 0.8), rgba(10, 10, 12, 0.8)), url('https://www.transparenttextures.com/patterns/hexellence.png') var(--color-background);
    background-size: auto, 300px;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--color-text-muted);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span {
    color: var(--color-primary);
}

.main-content .page-content {
    background-color: var(--color-surface);
    padding: 3rem;
    border: 1px solid var(--color-border);
}

.page-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 4rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.contact-details h3 {
    color: #fff;
    text-shadow: none;
}

.contact-details p,
.contact-details a {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.contact-form-container {
    background: var(--color-surface);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-shadow);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0;
}

.checkbox-group a {
    text-decoration: underline;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-surface);
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 30px var(--color-shadow);
    position: relative;
    max-width: 450px;
    transform: scale(0.9);
    transition: all 0.3s;
}

.popup.is-visible .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.popup-icon {
    margin-bottom: 1rem;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px var(--color-accent);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--color-accent);
    fill: none;
    animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 40px var(--color-accent);
    }
}

/* ------------------- */
/* Helper & Utility Classes */
/* ------------------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.live-chat-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: var(--color-background);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    animation: chat-pulse 2s infinite;
}

@keyframes chat-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 133, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 255, 133, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 133, 0);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

/* ------------------- */
/* Responsive Design */
/* ------------------- */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #0a0a0c;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left 0.4s ease;
    }

    .nav.is-active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .dropdown {
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        min-width: auto;
        padding-top: 1rem;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: var(--color-text-muted);
        font-size: 1rem;
    }

    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .process-timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 21px;
    }

    .form-row {
        flex-direction: column;
    }
}