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

:root {
    --bg-deep: #02060f;
    --bg-panel: rgba(10, 20, 40, 0.6);
    --primary-cyan: #00f0ff;
    --primary-blue: #3d5afe;
    --accent-purple: #9d26ff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: blur(30px);
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
    --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    --glass-inset: inset 0 0 20px rgba(255, 255, 255, 0.02);
    --glass-hover-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body.light-mode {
    --bg-deep: #ffffff;
    --bg-panel: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary-cyan: #0ea5e9;
    --primary-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --glass-border: 1px solid rgba(15, 23, 42, 0.06);
    --glass-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
    --glass-inset: inset 0 0 0 transparent;
    --glass-hover-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-heading);
    overflow-x: hidden;
    position: relative;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Global Background Layers */
.canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0a192f 0%, #02060f 100%);
    overflow: hidden;
    transition: background 0.5s ease;
}

.light-mode .canvas-bg {
    background: radial-gradient(circle at 50% 50%, #f8faff 0%, #ffffff 100%);
}

.light-mode .grid-overlay {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent 60%);
}

.light-mode .scanline {
    opacity: 0.1;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent 80%);
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 240, 255, 0.01) 50%);
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.5;
}

/* Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 70px 0;
}

/* Even more compact */

/* --- Advanced Glassmorphism Card --- */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 12px;
    box-shadow:
        var(--glass-shadow),
        var(--glass-inset);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.light-mode .glass-panel::after {
    display: none;
}

.glass-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.light-mode .glass-panel::after {
    display: none;
}

.glass-panel:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        var(--glass-hover-shadow),
        inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.glass-panel:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary-cyan), transparent, var(--accent-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.6;
}

/* Typography Enhancements */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Compact Headers */
.section-header {
    margin-bottom: 30px;
    /* Further reduced */
    text-align: center;
}

.section-header h2 {
    font-size: 2.8rem;
    /* Slightly smaller for compactness */
}

/* Compact Product Cards */
.product-card {
    padding: 40px;
    min-height: 480px;
}

.product-card h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 1rem;
    margin-bottom: 30px;
}

/* --- Buttons --- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    background: transparent;
    z-index: 1;
}

.btn-primary {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 4px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple));
    z-index: -1;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    letter-spacing: 2px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
    filter: brightness(1.2);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.light-mode .btn {
    color: var(--text-main);
}

.light-mode .btn-primary {
    color: #fff;
    /* Keep primary text white since it has a background */
}

.light-mode .btn-outline {
    border: 1px solid rgba(15, 23, 42, 0.15);
}

.light-mode .btn-outline:hover {
    background: rgba(14, 165, 233, 0.05);
    border-color: var(--primary-cyan);
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(2, 6, 15, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.logo-icon {
    margin-right: 10px;
    color: var(--primary-cyan);
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--primary-cyan);
    margin-left: 5px;
    font-family: var(--font-mono);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.light-mode .theme-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.light-mode .theme-btn:hover {
    background: #e2e8f0;
    color: var(--primary-blue);
}

.theme-btn .fa-sun {
    display: none;
}

.light-mode .theme-btn .fa-sun {
    display: block;
}

.light-mode .theme-btn .fa-moon {
    display: none;
}

.nav-links .nav-menu {
    display: flex;
    gap: 40px;
}

.drawer-header {
    display: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-num {
    font-size: 0.7rem;
    color: var(--primary-cyan);
    /* Brighter color for visibility */
    font-weight: 700;
    vertical-align: super;
    margin-left: 4px;
    font-family: var(--font-mono);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.4);
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.light-mode .nav-links a:hover,
.light-mode .nav-links a.active {
    color: var(--primary-blue);
}

.light-mode .logo-text {
    color: #1e293b;
}

.light-mode .logo-sub {
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Hero Background Layers (HUD Corners - Image Based) */
.hud-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    background: url('../images/hud-corner.png') no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
    transition: var(--transition-smooth);
}

.light-mode .hud-corner {
    mix-blend-mode: multiply;
    /* Works for light backgrounds */
    filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(1.1);
    /* Inverts colors for dark lines on white */
    opacity: 0.4;
}

.hud-corner.section-corner {
    display: block;
    width: 100px;
    height: 100px;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
}

.hud-corner.section-corner.top-left {
    top: -40px;
    left: 60px;
}

.hud-corner.section-corner.top-right {
    top: -40px;
    right: 60px;
}

.hud-corner.section-corner.bottom-left {
    bottom: -40px;
    left: 60px;
}

.hud-corner.section-corner.bottom-right {
    bottom: -40px;
    right: 60px;
}

.hud-corner.image-corner {
    display: none;
}

.hud-corner.top-left {
    top: 80px;
    left: 80px;
    transform: rotate(0deg);
}

.hud-corner.top-right {
    top: 80px;
    right: 80px;
    transform: rotate(90deg);
}

.hud-corner.bottom-left {
    bottom: 80px;
    left: 80px;
    transform: rotate(-90deg);
}

.hud-corner.bottom-right {
    bottom: 80px;
    right: 80px;
    transform: rotate(180deg);
}

.hud-corner:hover {
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.6));
    scale: 1.05;
}

.hero-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 650px;
    z-index: 2;
    position: relative;
    margin-left: 150px;
}

.hero-label {
    font-family: var(--font-mono);
    color: var(--primary-cyan);
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 2px solid var(--primary-cyan);
}

.hero-text h1 {
    font-size: 5rem;
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 900;
    letter-spacing: -2px;
    color: white;
}

.light-mode .hero-text h1 {
    color: #0f172a;
}

.light-mode .outline-text {
    -webkit-text-stroke: 1px rgba(15, 23, 42, 0.2);
}

.light-mode .hero-text p {
    color: #1e293b;
}

.outline-text {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    color: transparent;
    display: block;
    position: relative;
}

.hero-text p {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
    border-top: var(--glass-border);
    padding-top: 15px;
    margin-top: -25px;
}

.hero-scroll-down {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary-cyan);
    letter-spacing: 2px;
}

.hero-scroll-down i {
    color: white;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.5));
    animation: bounce 2s infinite;
}

.light-mode .hero-scroll-down i {
    color: var(--primary-blue);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Hero Visual: Premium Image Based Layout */
.hero-visual {
    flex: 1;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    padding-right: 150px;
    will-change: transform;
}

.hero-parallax-scroller {
    width: 100%;
    max-width: 500px;
    height: 380px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    transform-style: preserve-3d;
    cursor: pointer;
    overflow: visible;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 240, 255, 0.1);
    transform: rotateY(-12deg) rotateX(6deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.hero-parallax-scroller:hover .hero-image-wrapper {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    border-color: rgba(0, 240, 255, 0.4);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) brightness(0.9);
    transition: var(--transition-smooth);
}

.hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(2, 6, 15, 0.8));
    pointer-events: none;
}

/* Technical Overlay: Scanner Life */
.hud-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    z-index: 3;
    animation: scanMove 4s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes scanMove {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.technical-ring-thin {
    position: absolute;
    width: 600px;
    height: 600px;
    border: 0.5px solid rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    animation: spin 60s linear infinite;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Hero Particles & Deco */
.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-cyan);
}

.p1 {
    top: 20%;
    left: 10%;
    animation: particleMove 5s infinite;
}

.p2 {
    top: 60%;
    left: 15%;
    animation: particleMove 7s infinite reverse;
}

.p3 {
    top: 30%;
    right: 10%;
    animation: particleMove 6s infinite;
}

@keyframes particleMove {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(50px, -50px);
        opacity: 0;
    }
}

.hero-floating-assets {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(0, 240, 255, 0.2);
    animation: floatItem 8s ease-in-out infinite alternate;
}

.item-video {
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}

.item-chat {
    bottom: 20%;
    left: 5%;
    animation-delay: 1s;
}

@keyframes floatItem {
    from {
        transform: translateY(0) rotate(0deg);
    }

    to {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* =========================================
   Products & Solutions
   ========================================= */
.section-header {
    margin-bottom: 40px;
    /* Reduced from 80px */
    text-align: center;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--primary-cyan);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    padding: 6px 15px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 30px;
}

.section-header h2 {
    font-size: 3.5rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-mode .section-header h2 {
    background: linear-gradient(to bottom, #1e293b, #64748b);
    -webkit-background-clip: text;
    background-clip: text;
}

.product-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

.product-card h3 {
    font-size: 1.8rem;
    margin: 0;
}

.product-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sol-card {
    padding: 35px;
    /* Slightly tighter */
    text-align: left;
    border-radius: 15px;
}

.sol-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sol-card i {
    font-size: 1.8rem;
    /* Slightly smaller for row alignment */
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    /* Remove bottom margin as it's in a row now */
}

.sol-card h4 {
    font-size: 1.4rem;
    margin: 0;
}

/* =========================================
   About Section
   ========================================= */
.about-wrapper {
    padding: 100px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content {
    flex: 1;
}

.about-stats {
    display: flex;
    gap: 50px;
}

.about-image-container {
    flex: 1;
    min-height: 400px;
    background-image: url('../images/about.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* =========================================
   Scroll Animations
   ========================================= */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* =========================================
   Footer & Contact
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    padding: 80px;
}

.light-mode .contact-wrapper h2,
.light-mode .contact-wrapper p,
.light-mode .contact-list li {
    color: #1e293b;
}

.light-mode .contact-list i {
    color: var(--primary-blue);
}

.dark-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dark-form input,
.dark-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    /* More visible background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Higher contrast border */
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    transition: var(--transition-fast);
    position: relative;
    z-index: 10;
}

.light-mode .dark-form input,
.light-mode .dark-form textarea {
    background: #f8fafc;
    /* Crisp light background */
    border: 1px solid #e2e8f0;
    /* Clear border */
    color: #1e293b;
    /* Dark text */
}

.dark-form input::placeholder,
.dark-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    /* Clearer placeholders */
}

.light-mode .dark-form input::placeholder,
.light-mode .dark-form textarea::placeholder {
    color: #94a3b8;
    /* Darker placeholders for light mode */
}

.dark-form input:focus,
.dark-form textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.light-mode .dark-form input:focus,
.light-mode .dark-form textarea:focus {
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

footer {
    padding: 0 0 30px;
    background: #01040a;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: var(--glass-border);
    padding-top: 40px;
}

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

.social-links {
    display: flex;
    gap: 25px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.social-links a {
    position: relative;
}

.qr-popover {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.qr-popover img {
    width: 150px;
    height: 150px;
    display: block;
}

#wechat-trigger:hover .qr-popover {
    display: block;
}

.light-mode footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* =========================================
   Responsiveness
   ========================================= */

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero-text {
        margin-left: 0;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hud-corner {
        width: 80px;
        height: 80px;
    }

    .about-wrapper {
        padding: 60px;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-visual {
        padding-right: 0;
        height: auto;
        margin-bottom: 50px;
        /* Room for bottom HUD corners */
        overflow: visible;
    }

    .hero-image-wrapper {
        transform: none;
    }

    .hero-scroll-down {
        display: none;
    }

    .hero-image-wrapper:hover {
        transform: scale(1.02);
    }

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

    .about-stats {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 50px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Wrap trigger: Switch to image-relative corners */
    .hud-corner.section-corner {
        display: none;
    }

    .hud-corner.image-corner {
        display: block;
        width: 60px;
        height: 60px;
        opacity: 0.7;
    }

    /* Increased gap from image as requested */
    .hud-corner.image-corner.top-left {
        top: -35px;
        left: -35px;
    }

    .hud-corner.image-corner.top-right {
        top: -35px;
        right: -35px;
    }

    .hud-corner.image-corner.bottom-left {
        bottom: -35px;
        left: -35px;
    }

    .hud-corner.image-corner.bottom-right {
        bottom: -35px;
        right: -35px;
    }
}

@media (max-width: 768px) {
    :root {
        --glass-blur: blur(15px);
    }

    .section-padding {
        padding: 50px 0;
    }

    .hero {
        padding-top: 100px;
    }

    .navbar {
        padding: 15px 0;
        background: var(--bg-panel);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .light-mode .navbar {
        background: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .menu-toggle {
        display: block;
    }

    .light-mode .menu-toggle {
        color: var(--text-main);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-deep);
        display: flex;
        flex-direction: column;
        padding: 0;
        transition: var(--transition-smooth);
        z-index: 1001;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .drawer-header {
        display: flex;
        align-items: center;
        padding: 30px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 20px;
    }

    .drawer-header img {
        height: 40px;
        width: auto;
        margin-right: 12px;
    }

    .drawer-header .logo-text {
        font-size: 1.2rem;
        font-weight: 800;
        color: white;
    }

    .light-mode .drawer-header .logo-text {
        color: var(--text-main);
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 20px;
        font-size: 1.1rem !important;
        border-radius: 8px;
        transition: var(--transition-fast);
        color: var(--text-muted);
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(0, 240, 255, 0.1);
        color: var(--primary-cyan) !important;
    }

    .light-mode .nav-links {
        background: var(--bg-deep);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    }

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

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .product-split,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .hud-corner.image-corner {
        width: 45px;
        height: 45px;
        opacity: 0.6;
    }

    .hud-corner.image-corner.top-left {
        top: -25px;
        left: -25px;
    }

    .hud-corner.image-corner.top-right {
        top: -25px;
        right: -25px;
    }

    .hud-corner.image-corner.bottom-left {
        bottom: -25px;
        left: -25px;
    }

    .hud-corner.image-corner.bottom-right {
        bottom: -25px;
        right: -25px;
    }

    .about-wrapper {
        padding: 40px 20px;
    }

    .about-image-container {
        height: 300px;
        width: 100%;
        flex: none;
        margin-top: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 14px 25px;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns .btn:last-child {
        margin-top: 10px;
    }
}