/* ==========================================
   DYNAMIC CUBEZ MARKETING - FUTURE CORE CSS
   ========================================== */

/* Design Tokens & Variables */
:root {
    --bg-primary: #040610;
    --bg-secondary: #0a0d22;
    --bg-glass: rgba(6, 9, 26, 0.7);
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glass-active: rgba(0, 240, 255, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Cyber/Futuristic Accent Colors */
    --accent-cyan: #00f0ff;
    --accent-purple: #bd00ff;
    --accent-blue: #3b82f6;
    
    /* Glowing Shadows */
    --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.4);
    --glow-cyan-strong: 0 0 25px rgba(0, 240, 255, 0.8);
    --glow-purple: 0 0 15px rgba(189, 0, 255, 0.3);
    --glow-blue: 0 0 15px rgba(59, 130, 246, 0.4);
    
    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-cyber: 'Orbitron', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(189, 0, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.05) 0%, transparent 45%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

/* Global Typography & Elements */
h1, h2, h3, h4 {
    font-family: var(--font-cyber);
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* Common Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 2rem;
    padding-left: 2rem;
}

/* Background Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Glowing Custom Cursor */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.04) 0%, rgba(189, 0, 255, 0.01) 50%, transparent 70%);
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    transition: transform 0.1s ease-out;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-cyber);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #000;
    border: none;
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan-strong);
    color: #000;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-purple);
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    background: transparent;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-nav:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: var(--glow-cyan);
}

.btn-submit {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    gap: 10px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.btn-submit:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: var(--glow-cyan);
}

.submit-success-icon {
    display: none;
}

.btn-submit.success {
    border-color: #00ff66;
    color: #00ff66;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

.btn-submit.success:hover {
    background: #00ff66;
    color: #000;
}

/* Text Formatting Utilities */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow {
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.accent-text {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
}

.section-tag {
    display: block;
    font-family: var(--font-cyber);
    color: var(--accent-purple);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    font-weight: 700;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3.5rem;
}

.glow-hover {
    transition: var(--transition-fast);
}
.glow-hover:hover {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(4, 6, 16, 0.9);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    transition: var(--transition-normal);
}

.main-header.scrolled .navbar-container {
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-cyber);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-svg {
    width: 100%;
    height: 100%;
}

.cube-outline {
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 2.5;
    animation: cubePulse 4s infinite alternate;
}

.cube-top-right { fill: rgba(0, 240, 255, 0.08); stroke: var(--accent-cyan); stroke-width: 1.5; }
.cube-top-left { fill: rgba(189, 0, 255, 0.08); stroke: var(--accent-cyan); stroke-width: 1.5; }
.cube-right { fill: rgba(59, 130, 246, 0.08); stroke: var(--accent-cyan); stroke-width: 1.5; }
.cube-left { fill: rgba(0, 240, 255, 0.12); stroke: var(--accent-cyan); stroke-width: 1.5; }
.cube-inner-line { stroke: var(--accent-cyan); stroke-width: 1.5; }

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

/* Scroll Animations/Reveals */
.reveal-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    z-index: 2;
}

.hero-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3联%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.cyber-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.05);
}

.pulsing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: dotPulse 1.5s infinite alternate;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Floating 3D Cube Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-container {
    position: relative;
    width: 250px;
    height: 250px;
    perspective: 1000px;
}

.cube-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateCube 16s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    left: 25px;
    top: 25px;
    background: rgba(10, 15, 36, 0.8);
    border: 2px solid var(--accent-cyan);
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.15), var(--glow-cyan);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-cyber);
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: var(--glow-cyan);
    transition: var(--transition-normal);
}

.face-front  { transform: rotateY(  0deg) translateZ(100px); }
.face-back   { transform: rotateY(180deg) translateZ(100px); border-color: var(--accent-purple); color: var(--accent-purple); box-shadow: inset 0 0 30px rgba(189, 0, 255, 0.15), var(--glow-purple); text-shadow: var(--glow-purple); }
.face-right  { transform: rotateY( 90deg) translateZ(100px); }
.face-left   { transform: rotateY(-90deg) translateZ(100px); border-color: var(--accent-purple); color: var(--accent-purple); box-shadow: inset 0 0 30px rgba(189, 0, 255, 0.15), var(--glow-purple); text-shadow: var(--glow-purple); }
.face-top    { transform: rotateX( 90deg) translateZ(100px); }
.face-bottom { transform: rotateX(-90deg) translateZ(100px); }

.cube-shadow {
    width: 200px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(0, 240, 255, 0.25) 0%, transparent 70%);
    position: absolute;
    bottom: -50px;
    left: 25px;
    border-radius: 50%;
    filter: blur(5px);
    animation: shadowPulse 4s infinite alternate;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.scroll-indicator:hover {
    color: var(--accent-cyan);
}

.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid currentColor;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: currentColor;
    border-radius: 2px;
    animation: scrollWheel 2s infinite ease-out;
}

.arrow-down {
    width: 8px;
    height: 8px;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    animation: arrowPulse 2s infinite ease-in-out;
}

/* Services Section */
.services-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

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

.service-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 3rem 2.2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.card-glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(0, 240, 255, 0.08) 0%, transparent 60%);
    opacity: 0.5;
    transition: var(--transition-normal);
}

.card-border-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-active);
    box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.15);
}

.service-card:hover .card-glow-bg {
    opacity: 1;
    background: radial-gradient(circle at 50% -20%, rgba(0, 240, 255, 0.15) 0%, rgba(189, 0, 255, 0.04) 50%, transparent 70%);
}

.service-card:hover .card-border-glow {
    transform: scaleX(1);
}

.service-card:nth-child(even):hover {
    box-shadow: 0 10px 30px -10px rgba(189, 0, 255, 0.15);
}
.service-card:nth-child(even) .card-border-glow {
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    transition: var(--transition-normal);
}

.service-card:hover .card-icon {
    background: rgba(0, 240, 255, 0.06);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.service-card:nth-child(even) .card-icon {
    color: var(--accent-purple);
}
.service-card:nth-child(even):hover .card-icon {
    background: rgba(189, 0, 255, 0.06);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: var(--glow-purple);
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.card-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bullet-glow {
    color: var(--accent-cyan);
    margin-right: 6px;
    font-weight: bold;
}
.service-card:nth-child(even) .bullet-glow {
    color: var(--accent-purple);
}

/* About Section */
.about-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
    background-color: #050714;
    overflow: hidden;
}

.about-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 30% 50%, black 20%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at 30% 50%, black 20%, transparent 60%);
}

.about-container {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 5rem;
    align-items: center;
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-paragraph {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.stats-container {
    display: flex;
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-cyber);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-unit {
    font-family: var(--font-cyber);
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-left: 2px;
}

.stat-label {
    font-size: 0.75rem;
    font-family: var(--font-cyber);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Cyber Radar Visual */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 380px;
}

.cyber-radar-container {
    width: 320px;
    height: 320px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.02) 0%, transparent 70%);
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 50%;
}

.radar-circle:nth-child(1) { width: 70%; height: 70%; }
.radar-circle:nth-child(2) { width: 40%; height: 40%; border-style: dashed; }
.radar-circle:nth-child(3) { width: 15%; height: 15%; background: rgba(0, 240, 255, 0.05); }

.radar-sweep {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 50%;
    transform-origin: bottom left;
    background: linear-gradient(45deg, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    border-left: 1px solid rgba(0, 240, 255, 0.4);
    animation: radarSweep 6s infinite linear;
}

.radar-target {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    animation: targetBlink 2.5s infinite;
    opacity: 0.8;
}

.target-1 { top: 30%; left: 25%; animation-delay: 0.3s; }
.target-2 { top: 65%; left: 70%; animation-delay: 0.8s; background-color: var(--accent-purple); box-shadow: var(--glow-purple); }
.target-3 { top: 20%; left: 60%; animation-delay: 1.4s; }

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.contact-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 480px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    transition: var(--transition-normal);
}

a.contact-item:hover {
    background: rgba(0, 240, 255, 0.03);
    border-color: var(--accent-cyan);
    box-shadow: 0 5px 20px -10px rgba(0, 240, 255, 0.2);
    transform: translateX(4px);
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    transition: var(--transition-normal);
}

a.contact-item:hover .contact-icon {
    background: rgba(0, 240, 255, 0.06);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-family: var(--font-cyber);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-value {
    font-family: var(--font-cyber);
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Contact Terminal Form */
.contact-form-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.form-wrapper {
    width: 100%;
    background: #06091a;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.form-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background-color: #ff5f56; }
.terminal-dot.yellow { background-color: #ffbd2e; }
.terminal-dot.green { background-color: #27c93f; }

.terminal-title {
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 10px;
    letter-spacing: 1px;
}

.cyber-form {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    font-family: var(--font-sans);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-normal);
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.65rem;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper textarea {
    resize: vertical;
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transition: var(--transition-normal);
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--border-glass-active);
    background: rgba(0, 240, 255, 0.01);
}

.input-wrapper input:focus ~ .input-focus-line,
.input-wrapper select:focus ~ .input-focus-line,
.input-wrapper textarea:focus ~ .input-focus-line {
    left: 0;
    width: 100%;
}

.form-status-message {
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    text-align: center;
    min-height: 20px;
    transition: var(--transition-normal);
}
.form-status-message.success { color: #00ff66; text-shadow: 0 0 10px rgba(0, 255, 102, 0.3); }
.form-status-message.error { color: #ff3366; text-shadow: 0 0 10px rgba(255, 51, 102, 0.3); }

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-glass);
    background: #03040c;
    padding: 5rem 0 0 0;
    position: relative;
    z-index: 2;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links h4,
.footer-legal h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 1.8rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.latency-display {
    font-family: var(--font-cyber);
    font-size: 0.75rem;
}

#ping-time {
    color: var(--accent-cyan);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .container {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .about-container,
    .contact-container {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    /* Header menu mobile states */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(4, 6, 16, 0.98);
        border-top: 1px solid var(--border-glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 4rem 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

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

    .nav-cta-container {
        display: none; /* Hide standard nav CTA on small screens */
    }

    /* Layout stack shifts */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-subtitle {
        margin-right: auto;
        margin-left: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-visual {
        order: 2;
        height: 280px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cyber-form {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes cubePulse {
    0% { stroke: var(--accent-cyan); filter: drop-shadow(0 0 2px rgba(0, 240, 255, 0.4)); }
    50% { stroke: var(--accent-purple); filter: drop-shadow(0 0 8px rgba(189, 0, 255, 0.6)); }
    100% { stroke: var(--accent-cyan); filter: drop-shadow(0 0 2px rgba(0, 240, 255, 0.4)); }
}

@keyframes dotPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

@keyframes rotateCube {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

@keyframes shadowPulse {
    0% { transform: scale(0.85); opacity: 0.2; }
    100% { transform: scale(1.15); opacity: 0.4; }
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0) rotate(45deg); }
    50% { opacity: 1; transform: translateY(4px) rotate(45deg); }
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes targetBlink {
    0%, 100% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}
