/*
================================================
ARCADE OPS INTERFACE - STYLESHEET
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  :ROOT & FONT IMPORTS
2.  GENERAL STYLES & RESETS
3.  REUSABLE COMPONENTS & UTILITIES
    - Containers
    - Buttons
    - Section Headers
    - Forms
4.  ANIMATIONS & KEYFRAMES
    - Scanline, Glitch, Glow, Float
5.  PRELOADER
6.  HEADER & NAVIGATION
7.  FOOTER
8.  PAGE-SPECIFIC SECTIONS
    - Hero Section
    - Services Section (Power-Ups)
    - About Section (Mission Control)
    - Interactive Report (Terminal)
    - Testimonials (Pilot Feedback)
    - Page Headers (Sub-pages)
    - Contact Page
    - Legal Pages
9.  WIDGETS & MISC
    - Back to Top Button
    - Live Chat Widget
    - Popup
10. RESPONSIVE DESIGN (MEDIA QUERIES)
    - Tablets (max-width: 992px)
    - Mobile (max-width: 768px)
    - Small Mobile (max-width: 480px)
================================================
*/

/* 1. :ROOT & FONT IMPORTS */
:root {
    /* Colors - Arcade Ops Interface */
    --color-background-deep: #0A0F1E;
    /* Deep navy */
    --color-background-medium: #10182c;
    --color-primary: #FF00FF;
    /* Glowing magenta */
    --color-secondary: #FFD700;
    /* Golden orange */
    --color-accent: #00FFFF;
    /* Cyan for highlights */
    --color-text-primary: #E0E0E0;
    --color-text-secondary: #A0A0C0;
    --color-border: rgba(255, 0, 255, 0.3);

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
    --font-size-base: 16px;

    /* Spacing & Layout */
    --header-height: 80px;
    --section-padding: 100px 0;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

/* 2. GENERAL STYLES & RESETS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    background-color: var(--color-background-deep);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 5px var(--color-primary);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-speed);
}

a:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 8px var(--color-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 3. REUSABLE COMPONENTS & UTILITIES */
/* Containers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background-deep);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-background-deep);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-background-deep);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-glow {
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    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%;
}

/* Section Headers */
.section-header {
    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: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.subtitle-glitch {
    display: block;
    font-size: 1rem;
    color: var(--color-accent);
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    position: relative;
    animation: glitch 3s infinite;
}

/* 4. ANIMATIONS & KEYFRAMES */
@keyframes scanline {
    0% {
        transform: translateY(-10%);
    }

    100% {
        transform: translateY(110%);
    }
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #ff00ff, -0.05em 0 0 #00ffff;
    }

    14% {
        text-shadow: 0.05em 0 0 #ff00ff, -0.05em 0 0 #00ffff;
    }

    15% {
        text-shadow: -0.05em -0.025em 0 #ff00ff, 0.025em 0.025em 0 #00ffff;
    }

    49% {
        text-shadow: -0.05em -0.025em 0 #ff00ff, 0.025em 0.025em 0 #00ffff;
    }

    50% {
        text-shadow: 0.025em 0.05em 0 #ff00ff, 0.05em 0 0 #00ffff;
    }

    99% {
        text-shadow: 0.025em 0.05em 0 #ff00ff, 0.05em 0 0 #00ffff;
    }

    100% {
        text-shadow: -0.05em 0 0 #ff00ff, 0.05em -0.025em 0 #00ffff;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 0, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 255, 0);
    }
}

@keyframes cube-rotate {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes flicker {

    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        text-shadow:
            0 0 4px var(--color-primary),
            0 0 11px var(--color-primary),
            0 0 19px var(--color-primary),
            0 0 40px var(--color-primary),
            0 0 80px var(--color-primary);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}


/* 5. PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader .scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0, 255, 255, 0), rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0));
    animation: scanline 3s linear infinite;
    z-index: 1;
}

.preloader-content {
    text-align: center;
    z-index: 2;
}

.preloader-logo {
    animation: float 4s ease-in-out infinite;
}

.preloader-logo img {
    max-width: 150px;
    margin-bottom: 2rem;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-secondary);
    animation: flicker 1.5s infinite alternate;
    cursor: pointer;
}

.preloader-bar-container {
    width: 300px;
    height: 10px;
    border: 1px solid var(--color-primary);
    margin: 2rem auto;
    display: none;
    /* Initially hidden */
}

.preloader-bar {
    width: 0;
    height: 100%;
    background-color: var(--color-primary);
    transition: width 2s ease;
}

.preloader-status {
    color: var(--color-accent);
    font-family: var(--font-body);
    letter-spacing: 2px;
    display: none;
    /* Initially hidden */
}

/* 6. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 70px;
    background-color: rgba(10, 15, 30, 0.95);
}

.header-container {
    height: 100%;
}

.navbar {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo img {
    height: 50px;
    filter: brightness(1)invert(1);
    
}

.nav-logo:hover img {
    transform: rotate(360deg);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
    text-shadow: 0 0 5px var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease-in-out;
}

/* 7. FOOTER */
.footer {
    background-color: var(--color-background-medium);
    padding: 80px 0 30px;
    position: relative;
    border-top: 1px solid var(--color-border);
}

.footer-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(to right, var(--color-border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-about img {
    height: 50px;
     filter: brightness(1)invert(1);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-background-deep);
    border-color: var(--color-primary);
}

.footer h3 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    text-shadow: 0 0 5px var(--color-secondary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--color-text-secondary);
}

.footer-links ul li a:hover {
    color: var(--color-text-primary);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.footer-contact ul li i {
    color: var(--color-secondary);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--color-text-secondary);
}

.footer-contact a:hover {
    color: var(--color-text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--color-text-secondary);
    margin: 0 10px;
}

.footer-legal span {
    color: var(--color-border);
}


/* 8. PAGE-SPECIFIC SECTIONS */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 15, 30, 0.5) 0%, var(--color-background-deep) 70%);
    z-index: 1;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to right, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: scanline 10s linear infinite;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-hologram {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.hologram-cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: cube-rotate 20s infinite linear;
}

.hologram-cube .face {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid var(--color-accent);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px var(--color-accent) inset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
}

.hologram-cube .face i {
    font-size: 3rem;
}

.face.front {
    transform: rotateY(0deg) translateZ(125px);
}

.face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

/* Services Section (Power-Ups) */
.services-section {
    background-color: var(--color-background-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    height: 350px;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    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;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, var(--color-background-deep), var(--color-background-medium));
}

.service-card-back {
    transform: rotateY(180deg);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--color-secondary);
}

.service-title {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.service-tagline {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 700;
}

.service-card-back p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* About Section (Mission Control) */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    max-width: 80%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 30px var(--color-primary));
}

.about-visual-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.2;
    z-index: 1;
    animation: pulse 3s infinite;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 3rem;
    color: var(--color-secondary);
    font-weight: 900;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Interactive Report Section (Terminal) */
.interactive-report-section {
    background-color: var(--color-background-medium);
}

.terminal-window {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    overflow: hidden;
}

.terminal-header {
    background-color: #222;
    padding: 10px;
    display: flex;
    align-items: center;
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-dot.close {
    background-color: #ff5f56;
}

.btn-dot.min {
    background-color: #ffbd2e;
}

.btn-dot.max {
    background-color: #27c93f;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
}

.terminal-body {
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
}

.terminal-body p {
    margin: 0 0 5px 0;
}

.terminal-success {
    color: #27c93f;
}

.terminal-highlight {
    color: var(--color-secondary);
}

.terminal-highlight-down {
    color: var(--color-primary);
}

.cursor {
    display: inline-block;
    background-color: var(--color-text-primary);
    width: 10px;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

/* Testimonials (Pilot Feedback) */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    background-color: var(--color-background-medium);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition-speed);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.2);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-name {
    margin: 0;
    color: var(--color-secondary);
    font-size: 1.1rem;
}

.author-title {
    margin: 0;
    font-size: 0.9rem;
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--color-border);
    opacity: 0.5;
}

/* Page Headers (Sub-pages) */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background-color: var(--color-background-medium);
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 0, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 0, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.page-title {
    font-size: 3rem;
}

.page-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Contact Page */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info-block h3,
.contact-form-block h3 {
    margin-bottom: 2rem;
    color: var(--color-secondary);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 40px;
}

.info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.info-text p {
    margin: 0;
}

/* Terminal Style Form */
.contact-form.terminal-style {
    background: var(--color-background-medium);
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    color: var(--color-accent);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--color-background-deep);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
}

.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-primary);
}

.form-group select option {
    background: var(--color-background-deep);
    color: var(--color-text-primary);
}

textarea {
    resize: vertical;
}

/* Legal Pages */
.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* 9. WIDGETS & MISC */
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-background-deep);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-secondary);
    transform: translateY(-5px);
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: var(--color-background-deep);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
    animation: pulse 2s infinite;
    animation-delay: 2s;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background-color: var(--color-background-medium);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background-color: var(--color-background-deep);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-size: 1rem;
    color: var(--color-accent);
    text-shadow: none;
}

.close-chat {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
}

.message.received p {
    background-color: var(--color-background-deep);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    max-width: 80%;
    font-size: 0.9rem;
}

.chat-footer {
    display: flex;
    border-top: 1px solid var(--color-border);
}

.chat-footer input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px;
    color: var(--color-text-primary);
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: var(--color-accent);
    border: none;
    padding: 0 20px;
    color: var(--color-background-deep);
    cursor: pointer;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-background-medium);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 2rem;
}

/* 10. RESPONSIVE DESIGN */
/* Tablets */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-background-deep);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 20px;
        padding-top: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin: 1.5rem auto 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 50px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-visual {
        margin-bottom: 40px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .header-actions .btn {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .live-chat-widget {
        bottom: 20px;
        left: 20px;
    }

    .chat-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .chat-window {
        width: calc(100vw - 40px);
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-3d-hologram,
    .hologram-cube {
        width: 200px;
        height: 200px;
    }

    .hologram-cube .face {
        width: 200px;
        height: 200px;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(100px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }
}