/* ==========================================================================
   1. RESET & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette - Cyber / Space Theme */
    --color-bg-dark: #0a0e17;
    /* Deepest Void */
    --color-bg-panel: #111625;
    /* Panel Background */
    --color-primary: #00f2ff;
    /* Cyber Cyan */
    --color-primary-dark: #00c2cc;
    --color-secondary: #7000ff;
    /* Electric Purple */
    --color-secondary-dark: #5000cc;
    --color-accent: #ff0055;
    /* Alert Red/Pink */
    --color-text-main: #e0e6ed;
    /* Off-white text */
    --color-text-muted: #94a3b8;
    /* Muted text */
    --color-border: #1e293b;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(10, 14, 23, 0.95) 0%, rgba(17, 22, 37, 0.95) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(0, 242, 255, 0.15) 0%, transparent 70%);

    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Section Padding */
.section-padding {
    padding: 100px 0;
}

/* Darker Background Helper */
.dark-bg {
    background-color: var(--color-bg-panel);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   2. ANIMATIONS & KEYFRAMES
   ========================================================================== */

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--color-primary);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--color-secondary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--color-accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    60% {
        clip: rect(80px, 9999px, 30px, 0);
    }

    80% {
        clip: rect(30px, 9999px, 60px, 0);
    }

    100% {
        clip: rect(70px, 9999px, 20px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    60% {
        clip: rect(30px, 9999px, 60px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 90px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 70px, 0);
    }
}

/* Fade In Up */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mouse Scroll Animation */
@keyframes mouse-scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Scanline */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* ==========================================================================
   3. PRELOADER
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.preloader-terminal {
    width: 300px;
    text-align: center;
}

.preloader-logo img {
    width: 80px;
    margin: 0 auto 20px;
    animation: pulse-glow 2s infinite;
}

.preloader-text {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.preloader-bar-container {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    transition: width 0.5s ease;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px var(--color-primary));
    }

    50% {
        filter: drop-shadow(0 0 15px var(--color-primary));
    }
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure white logo if image is dark */
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 2px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000 url('https://cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.4/img/thumb_white.png') repeat;
    /* Fallback pattern */
    background-image: radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.8;
}

.hero-bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.15), transparent 60%);
}

.hero-bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 500px;
    transform: perspective(500px) rotateX(60deg) translateY(100px) scale(2);
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-title span {
    display: block;
    color: var(--color-primary);
    font-size: 4.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-text-muted);
    border-radius: 15px;
    position: relative;
}

.mouse span {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: mouse-scroll 2s infinite;
}

/* ==========================================================================
   6. MISSION BRIEF (ABOUT)
   ========================================================================== */
.section-header {
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: block;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    margin: 15px auto 0;
}

.mission-brief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mission-brief-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.mission-brief-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: 30px 20px;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.1);
}

.stat-icon {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* ==========================================================================
   7. SERVICES SECTION (3D CARDS)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    width: 100%;
    height: 350px;
    perspective: 1000px;
    /* Enable 3D space */
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.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;
    /* Safari */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.service-card-front {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 3px solid var(--color-primary);
}

.service-card-back {
    background: linear-gradient(135deg, var(--color-secondary-dark), #000);
    color: white;
    transform: rotateY(180deg);
    border: 1px solid var(--color-secondary);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
}

.service-link {
    margin-top: 20px;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    gap: 10px;
}

/* ==========================================================================
   8. PROCESS SECTION (TIMELINE)
   ========================================================================== */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--color-border);
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Alternate Left/Right */
.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .process-content {
    text-align: right;
    align-items: flex-end;
}

.process-step:nth-child(even) .process-content .process-number {
    right: -70px;
    left: auto;
}

.process-icon-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--color-bg-dark);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.process-icon {
    color: #fff;
    font-size: 1.2rem;
}

.process-content {
    width: 45%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.process-number {
    position: absolute;
    top: 0;
    left: -70px;
    /* Adjusted for alternating */
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

/* ==========================================================================
   9. INDUSTRIES & TESTIMONIALS
   ========================================================================== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.industry-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 30px 20px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.industry-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
}

.industry-item i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.testimonial-slider-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    background: rgba(17, 22, 37, 0.8);
    border: 1px solid var(--color-border);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.testimonial-slide {
    display: none;
    /* JS will toggle */
    animation: fadeIn 0.5s ease;
    text-align: center;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content p::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2rem;
    color: var(--color-secondary);
    opacity: 0.3;
    display: block;
    margin-bottom: 20px;
}

.author-info h4 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-controls button {
    background: transparent;
    border: 1px solid var(--color-border);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   10. FOOTER & CONTACT PAGE STYLES
   ========================================================================== */
.footer {
    background-color: #05080f;
    border-top: 1px solid var(--color-border);
    padding-top: 80px;
    font-size: 0.9rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: #000;
    transform: translateY(-3px);
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--color-text-muted);
}

.footer-links ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.footer-contact i {
    color: var(--color-primary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 0 10px;
}

.footer-legal span {
    color: #333;
}

.footer-legal a:hover {
    color: #fff;
}

/* Contact Page Specifics */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info-block {
    background: var(--color-bg-panel);
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.contact-info-item .info-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border-radius: 4px;
}

.contact-info-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
}

.contact-form-block {
    background: var(--color-bg-panel);
    padding: 50px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.contact-form-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-bg-panel);
    padding: 50px;
    border: 1px solid var(--color-primary);
    text-align: center;
    border-radius: 4px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
}

.popup-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* UI Elements */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.live-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 900;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
    animation: float 3s ease-in-out infinite;
}

.legal-content h2 {
    color: var(--color-primary);
    margin-top: 40px;
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.cta-content {
    text-align: center;
    padding: 80px 0;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.1), transparent 70%);
}

/* ==========================================================================
   11. MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-title span {
        font-size: 3.8rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-bg-panel);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid var(--color-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-title span {
        font-size: 3rem;
    }

    .mission-brief-grid,
    .contact-page-wrapper,
    .form-row {
        grid-template-columns: 1fr;
    }

    .mission-brief-stats {
        grid-template-columns: 1fr;
    }

    .process-content {
        width: 100%;
    }

    .process-icon-wrapper,
    .timeline-line,
    .process-number {
        display: none;
    }

    .process-step,
    .process-step:nth-child(even) {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .process-step:nth-child(even) .process-content {
        text-align: left;
        align-items: flex-start;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social,
    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .header-actions .btn {
        display: none;
        /* Hide CTA on mobile nav bar to save space */
    }
}