/**
 * Holographic Command Theme
 * ==========================
 * Futuristische Sci-Fi Hologramm-Interface für HENX3D
 *
 * Features:
 * - Deep Space Background
 * - Holographic Glass Panels
 * - 3D Wireframe Elements
 * - Scan Line Effects
 * - Parallax Depth
 * - Cyan/Purple Neon Glow
 *
 * @version 1.0.0
 * @created 2026-01-06
 */

:root {
    /* Colors - Sci-Fi */
    --holo-deep-space: #0a0a15;
    --holo-space-dark: #0f0f1f;
    --holo-space-medium: #1a1a2e;

    /* Holographic Colors */
    --holo-cyan-bright: #00ffff;
    --holo-cyan-medium: #00d4ff;
    --holo-purple-neon: #bd00ff;
    --holo-purple-medium: #9000d4;
    --holo-blue-electric: #0080ff;
    --holo-pink-neon: #ff00ff;

    /* Glass & Transparency */
    --holo-glass-tint: rgba(255, 255, 255, 0.05);
    --holo-glass-edge: rgba(0, 255, 255, 0.3);
    --holo-glass-bg: rgba(26, 26, 46, 0.6);

    /* Edge Glow */
    --holo-edge-glow: rgba(0, 255, 255, 0.8);
    --holo-scan-color: rgba(189, 0, 255, 0.6);

    /* Neutral */
    --holo-white: #ffffff;
    --holo-off-white: #e0e0ff;

    /* Typography */
    --holo-font-heading: 'Exo 2', 'Orbitron', sans-serif;
    --holo-font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
    --holo-font-mono: 'JetBrains Mono', 'Consolas', monospace;

    /* Spacing */
    --holo-space-xs: 0.5rem;
    --holo-space-sm: 1rem;
    --holo-space-md: 1.5rem;
    --holo-space-lg: 2rem;
    --holo-space-xl: 3rem;

    /* Borders */
    --holo-border-width: 1px;
    --holo-border-radius: 2px;

    /* Shadows & Glows */
    --holo-shadow-sm: 0 2px 16px rgba(0, 255, 255, 0.2);
    --holo-shadow-md: 0 4px 32px rgba(0, 255, 255, 0.3);
    --holo-shadow-lg: 0 8px 64px rgba(0, 255, 255, 0.4);
    --holo-glow-cyan: 0 0 20px rgba(0, 255, 255, 0.8),
                      0 0 40px rgba(0, 255, 255, 0.4),
                      0 0 60px rgba(0, 255, 255, 0.2);
    --holo-glow-purple: 0 0 20px rgba(189, 0, 255, 0.8),
                        0 0 40px rgba(189, 0, 255, 0.4);

    /* Transitions */
    --holo-transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Standard CSS Variables for Compatibility */
    --color-bg: var(--holo-deep-space);
    --color-bg-elevated: var(--holo-space-dark);
    --color-bg-subtle: var(--holo-deep-space);
    --color-bg-secondary: var(--holo-space-dark);
    --color-bg-tertiary: var(--holo-space-medium);
    --color-text: var(--holo-off-white);
    --color-text-muted: var(--holo-cyan-medium);
    --color-text-subtle: var(--holo-glass-edge);
    --color-primary: var(--holo-cyan-bright);
    --color-primary-dark: var(--holo-cyan-medium);
    --color-primary-light: var(--holo-blue-electric);
    --color-border: var(--holo-cyan-medium);
    --color-line: var(--holo-glass-edge);
    --background-color: var(--holo-deep-space);
    --card-background: var(--holo-glass-bg);
    --input-background: var(--holo-space-medium);
    --input-text: var(--holo-white);
    --text-color: var(--holo-off-white);
    --border-color: var(--holo-cyan-medium);
    --card-bg: var(--holo-glass-bg);
    --input-bg: var(--holo-space-medium);
    --input-border: var(--holo-cyan-medium);
    --button-text: var(--holo-deep-space);
    color-scheme: dark;
}

/* Deep Space Background with Stars */
body {
    font-family: var(--holo-font-body);
    color: var(--holo-off-white);
    background: var(--holo-deep-space);
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 80%, white, transparent);
    background-size: 200% 200%, 180% 180%, 220% 220%, 190% 190%, 210% 210%, 230% 230%, 200% 200%;
    background-position: 0% 0%, 20% 30%, 40% 60%, 60% 10%, 80% 90%, 10% 50%, 90% 20%;
    animation: stars-twinkle 120s ease-in-out infinite;
    perspective: 1000px;
}

@keyframes stars-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Holographic Grid Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    transform: perspective(1000px) rotateX(60deg) scale(2);
    transform-origin: center center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--holo-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--holo-white);
    text-shadow: var(--holo-glow-cyan);
}

h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.25rem; }

.holo-title {
    background: linear-gradient(135deg,
        var(--holo-cyan-bright) 0%,
        var(--holo-purple-neon) 50%,
        var(--holo-blue-electric) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holo-gradient 4s ease infinite;
}

@keyframes holo-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Buttons - Holographic Style */
.btn-primary,
.btn-holo {
    padding: var(--holo-space-sm) var(--holo-space-xl);
    font-family: var(--holo-font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--holo-cyan-bright);
    background: var(--holo-glass-bg);
    border: 1px solid var(--holo-cyan-bright);
    border-radius: var(--holo-border-radius);
    cursor: pointer;
    transition: all var(--holo-transition);
    box-shadow: var(--holo-shadow-md),
                inset 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-holo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.btn-holo:hover::before {
    left: 100%;
}

.btn-holo:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: var(--holo-shadow-lg),
                var(--holo-glow-cyan),
                inset 0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-secondary,
.btn-hologram {
    padding: var(--holo-space-sm) var(--holo-space-xl);
    font-family: var(--holo-font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--holo-purple-neon);
    background: var(--holo-glass-bg);
    border: 1px solid var(--holo-purple-neon);
    border-radius: var(--holo-border-radius);
    cursor: pointer;
    transition: all var(--holo-transition);
    backdrop-filter: blur(10px);
    box-shadow: var(--holo-glow-purple);
}

.btn-hologram:hover {
    background: rgba(189, 0, 255, 0.1);
    box-shadow: var(--holo-glow-purple),
                0 0 60px rgba(189, 0, 255, 0.3);
}

/* Cards - Floating Holographic Panels */
.card,
.service-card,
.portfolio-card {
    position: relative;
    padding: var(--holo-space-lg);
    background: var(--holo-glass-bg);
    border: 1px solid var(--holo-glass-edge);
    border-radius: var(--holo-border-radius);
    box-shadow: var(--holo-shadow-md),
                inset 0 0 40px rgba(0, 255, 255, 0.05);
    transition: all var(--holo-transition);
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(189, 0, 255, 0.1) 100%
    );
    border-radius: var(--holo-border-radius);
    opacity: 0;
    transition: opacity var(--holo-transition);
}

.card:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: var(--holo-cyan-bright);
    box-shadow: var(--holo-shadow-lg),
                var(--holo-glow-cyan),
                inset 0 0 60px rgba(0, 255, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

/* Corner brackets */
.card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--holo-cyan-bright);
    border-left: 2px solid var(--holo-cyan-bright);
    opacity: 0;
    transition: opacity var(--holo-transition);
}

.card:hover::after {
    opacity: 1;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: var(--holo-space-md);
    margin-bottom: var(--holo-space-md);
    padding-bottom: var(--holo-space-md);
    border-bottom: 1px solid var(--holo-glass-edge);
    position: relative;
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--holo-cyan-bright);
    border-radius: 50%;
    box-shadow: var(--holo-glow-cyan);
    font-size: 2rem;
    color: var(--holo-cyan-bright);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    padding: var(--holo-space-xl) var(--holo-space-lg);
    z-index: 10;
    transform-style: preserve-3d;
}

.hero-tagline {
    font-family: var(--holo-font-mono);
    font-size: 0.875rem;
    color: var(--holo-cyan-bright);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: var(--holo-space-md);
    padding: var(--holo-space-xs) var(--holo-space-md);
    border: 1px solid var(--holo-cyan-bright);
    border-left: 3px solid var(--holo-cyan-bright);
    display: inline-block;
    box-shadow: var(--holo-glow-cyan);
}

/* Grid Layout */
.holo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--holo-space-xl);
    padding: var(--holo-space-xl) var(--holo-space-lg);
}

/* Navigation */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--holo-glass-bg);
    border-bottom: 1px solid var(--holo-cyan-bright);
    box-shadow: var(--holo-shadow-lg);
    backdrop-filter: blur(20px);
    z-index: 100;
}

.nav-link {
    padding: var(--holo-space-sm) var(--holo-space-md);
    color: var(--holo-off-white);
    font-family: var(--holo-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all var(--holo-transition);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--holo-cyan-bright);
    transition: width var(--holo-transition);
    box-shadow: var(--holo-glow-cyan);
}

.nav-link:hover,
.nav-link.active {
    color: var(--holo-cyan-bright);
    text-shadow: var(--holo-glow-cyan);
}

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

/* Section Divider - Scan Line */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--holo-cyan-bright) 20%,
        var(--holo-purple-neon) 50%,
        var(--holo-cyan-bright) 80%,
        transparent 100%
    );
    margin: var(--holo-space-xl) 0;
    box-shadow: var(--holo-glow-cyan);
    animation: scan-line-pulse 3s ease-in-out infinite;
}

@keyframes scan-line-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Forms */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--holo-space-sm) var(--holo-space-md);
    font-family: var(--holo-font-mono);
    font-size: 0.875rem;
    color: var(--holo-white);
    background: var(--holo-glass-bg);
    border: 1px solid var(--holo-glass-edge);
    border-radius: var(--holo-border-radius);
    transition: all var(--holo-transition);
    backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--holo-cyan-bright);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.2),
                var(--holo-glow-cyan);
}

/* Stats - Holographic Display */
.stat-number {
    font-family: var(--holo-font-mono);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--holo-cyan-bright);
    text-shadow: var(--holo-glow-cyan);
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--holo-purple-neon);
}

/* Footer */
.site-footer {
    background: var(--holo-glass-bg);
    border-top: 1px solid var(--holo-cyan-bright);
    box-shadow: 0 -8px 32px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(15px);
}

/* Utilities */
.text-cyan { color: var(--holo-cyan-bright); }
.text-purple { color: var(--holo-purple-neon); }
.text-blue { color: var(--holo-blue-electric); }
.bg-holo-glass { background: var(--holo-glass-bg); }
.glow-cyan { box-shadow: var(--holo-glow-cyan); }
.glow-purple { box-shadow: var(--holo-glow-purple); }

/* Floating panels container for JS */
#holo-panels-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Wireframe canvas */
#wireframe-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Scan line container */
#scan-line-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .stat-number { font-size: 3rem; }

    .holo-grid {
        grid-template-columns: 1fr;
    }
}
