/* ========================================
   UFTD - Cyberpunk Dark Theme
   REFINED GLITCH EFFECTS
   ======================================== */

/* ========================================
   ACCESSIBILITY
   ======================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding:  0;
    margin: -1px;
    overflow:  hidden;
    clip: rect(0, 0, 0, 0);
    white-space:  nowrap;
    border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left:  0;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count:  1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scan-line,
    .glitch-overlay,
    .noise,
    .cyber-grid,
    .data-stream {
        display: none;
    }
}

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d0d14;
    --bg-tertiary: #12121a;
    --bg-card: #0f0f18;
    
    /* Accent colors */
    --accent-primary: #00ffff;
    --accent-secondary: #ff0033;
    --accent-red: #ff0033;
    --accent-red-dark: #cc0022;
    --accent-red-glow: rgba(255, 0, 51, 0.4);
    --accent-cyan: #00ffff;
    --accent-cyan-glow: rgba(0, 255, 255, 0.4);
    --accent-magenta: #ff00ff;
    --accent-yellow: #ffff00;
    --accent-green: #00ff88;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    
    --border-color: #1a1a2a;
    --border-glow: rgba(0, 255, 255, 0.3);
    --border-glow-red: rgba(255, 0, 51, 0.3);
    
    /* Gradients */
    --gradient-cyber: linear-gradient(135deg, var(--accent-cyan), var(--accent-red));
    --gradient-red: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    
    /* Shadows - reduced intensity */
    --shadow-glow: 0 0 20px rgba(0, 255, 255, 0.3);
    --shadow-glow-red: 0 0 20px var(--accent-red-glow);
    
    /* Typography - fonts with Polish support */
    --font-display: 'Chakra Petch', 'Segoe UI', sans-serif;
    --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    
    --container-width: 1400px;
    --section-padding: 100px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style:  none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   GLITCH OVERLAYS - REDUCED
   ======================================== */
.glitch-overlay {
    position:  fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    animation: glitchOverlay 15s infinite; /* slower */
}

.glitch-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 0, 51, 0.015) 2px, rgba(255, 0, 51, 0.015) 4px);
}

.glitch-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0, 255, 255, 0.01) 3px, rgba(0, 255, 255, 0.01) 6px);
}

@keyframes glitchOverlay {
    0%, 96%, 100% { opacity: 0; }
    97% { opacity: 0.5; transform: translateX(-3px); }
    98% { opacity:  0.3; transform: translateX(3px); }
    99% { opacity: 0; }
}

.rgb-shift-overlay {
    position:  fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode:  screen;
    opacity: 0;
    animation: rgbShift 20s infinite; /* slower */
}

@keyframes rgbShift {
    0%, 97%, 100% { opacity: 0; }
    98% { opacity: 0.15; box-shadow: -2px 0 0 rgba(255, 0, 0, 0.3), 2px 0 0 rgba(0, 255, 255, 0.3); }
}

.crt-flicker {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9997;
    animation: crtFlicker 0.2s infinite;
}

@keyframes crtFlicker {
    0% { opacity: 0.98; }
    50% { opacity: 1; }
    100% { opacity:  0.99; }
}

.cyber-grid {
    position:  fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index:  -1;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 60s linear infinite; /* slower */
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform:  perspective(500px) rotateX(60deg) translateY(50px); }
}

.scan-line {
    position: fixed;
    top:  0; left:  0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan) 50%, transparent);
    opacity: 0.1;
    pointer-events: none;
    z-index: 1000;
    animation: scanLine 6s linear infinite; /* slower */
}

.scan-line-fast {
    display: none; /* disabled */
}

@keyframes scanLine {
    0% { top: -10px; opacity: 0; }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { top: 100%; opacity: 0; }
}

.noise {
    position: fixed;
    top:  0; left:  0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.015; /* reduced */
    background-image:  url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: noise 0.5s steps(5) infinite;
}

@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 2%); }
    50% { transform:  translate(2%, -2%); }
    75% { transform: translate(-2%, -2%); }
}

.vhs-lines {
    position:  fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index:  998;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.03) 3px, rgba(0, 0, 0, 0.03) 4px);
}

.data-rain {
    display: none; /* disabled */
}

/* ========================================
   GLITCH TEXT EFFECTS - REDUCED
   ======================================== */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top:  0; left:  0;
    width: 100%; height: 100%;
    opacity: 0;
}

.glitch-text::before {
    color: var(--accent-red);
    animation: glitchText1 8s infinite linear; /* slower */
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    color: var(--accent-cyan);
    animation: glitchText2 8s infinite linear; /* slower */
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitchText1 {
    0%, 95%, 100% { opacity: 0; transform: translate(0); }
    96% { opacity: 0.5; transform: translate(-2px, -1px); }
    97% { opacity:  0.5; transform: translate(2px, 1px); }
    98% { opacity:  0; }
}

@keyframes glitchText2 {
    0%, 95%, 100% { opacity: 0; transform: translate(0); }
    96% { opacity: 0.5; transform: translate(2px, 1px); }
    97% { opacity: 0.5; transform: translate(-2px, -1px); }
    98% { opacity:  0; }
}

.glitch-hover {
    position: relative;
    display: inline-block;
}

.glitch-hover::before {
    content: attr(data-text);
    position: absolute;
    top:  0; left:  0;
    width: 100%; height: 100%;
    color: var(--accent-red);
    opacity: 0;
    transform: translateX(-1px);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.glitch-hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width:  100%; height:  100%;
    color: var(--accent-cyan);
    opacity: 0;
    transform:  translateX(1px);
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

.glitch-hover:hover::before {
    animation: glitchHover1 0.4s steps(3) forwards;
}

.glitch-hover:hover::after {
    animation: glitchHover2 0.4s steps(3) forwards;
}

@keyframes glitchHover1 {
    0% { opacity: 0; }
    25% { opacity: 0.5; transform: translateX(-2px); }
    50% { opacity:  0.5; transform: translateX(2px); }
    75% { opacity: 0.3; transform: translateX(-1px); }
    100% { opacity:  0; }
}

@keyframes glitchHover2 {
    0% { opacity:  0; }
    25% { opacity: 0.5; transform: translateX(2px); }
    50% { opacity: 0.5; transform: translateX(-2px); }
    75% { opacity: 0.3; transform: translateX(1px); }
    100% { opacity: 0; }
}

.data-corrupt {
    position: relative;
    display: inline-block;
}

.data-corrupt::before {
    content:  attr(data-text);
    position: absolute;
    left: 0; top: 0;
    color: var(--accent-red);
    clip-path: inset(0 0 100% 0);
    animation: dataCorrupt 12s infinite linear; /* slower */
}

@keyframes dataCorrupt {
    0%, 92%, 100% { clip-path: inset(0 0 100% 0); opacity: 0; }
    93% { clip-path: inset(20% 0 60% 0); transform: translateX(-2px); opacity: 0.5; }
    95% { clip-path: inset(50% 0 30% 0); transform: translateX(2px); opacity: 0.5; }
    96% { clip-path: inset(0 0 100% 0); opacity: 0; }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position:  fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.navbar::after {
    content:  '';
    position:  absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan) 50%, transparent);
    opacity: 0.4;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content:  space-between;
    align-items:  center;
}

.logo-img {
    height:  45px;
    width: auto;
    filter: invert(1) drop-shadow(0 0 8px var(--accent-cyan));
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    filter: invert(1) drop-shadow(0 0 12px var(--accent-cyan));
}

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

.nav-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content:  '';
    position:  absolute;
    bottom: 0; left: 0;
    width: 0;
    height:  2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

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

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

.nav-toggle {
    display:  none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width:  28px;
    height: 2px;
    background: var(--accent-cyan);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
}

.hamburger::before { transform: translateY(-9px); }
.hamburger::after { transform: translateY(7px); }

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 20px 80px;
    max-width: var(--container-width);
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-logo-img {
    max-width: 500px;
    width: 100%;
    filter: invert(1) drop-shadow(0 0 20px var(--accent-cyan));
    animation: heroLogoPulse 4s ease-in-out infinite; /* gentler animation */
}

@keyframes heroLogoPulse {
    0%, 100% {
        filter: invert(1) drop-shadow(0 0 20px var(--accent-cyan));
    }
    50% {
        filter:  invert(1) drop-shadow(0 0 30px var(--accent-cyan)) drop-shadow(0 0 40px rgba(255, 0, 51, 0.2));
    }
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 25px 0 45px;
    padding-left: 20px;
    border-left: 3px solid var(--accent-red);
}

.cursor-blink {
    color: var(--accent-cyan);
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-stats {
    display:  flex;
    gap: 50px;
    margin-bottom: 45px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color:  var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.stat-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-buttons {
    display:  flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display:  inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight:  600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.btn-primary {
    background: var(--gradient-cyber);
    color: var(--bg-primary);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color:  var(--accent-red);
    border: 2px solid var(--accent-red);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.btn-secondary:hover {
    background: rgba(255, 0, 51, 0.1);
    box-shadow: var(--shadow-glow-red);
}

.btn-outline {
    background:  transparent;
    color:  var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 14px 28px;
}

.btn-outline:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform:  translateX(5px);
}

.btn-glitch {
    position: relative;
}

/* ========================================
   HERO VISUAL - CIRCUIT BOARD
   ======================================== */
.al {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circuit-board {
    position:  relative;
    width: 350px;
    height: 350px;
    border: 2px solid var(--accent-cyan);
    border-radius:  10px;
    background: var(--bg-card);
    box-shadow: var(--shadow-glow);
}

.chip {
    position:  absolute;
    top: 50%;
    left:  50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: var(--bg-tertiary);
    border:  2px solid var(--accent-red);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-text {
    font-family: var(--font-display);
    font-size:  0.8rem;
    color: var(--accent-red);
}

.trace {
    position: absolute;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
}

.trace-1 { width: 2px; height: 80px; top: 20px; left: 50%; }
.trace-2 { width: 80px; height: 2px; top:  50%; left: 20px; }
.trace-3 { width: 80px; height: 2px; top:  50%; right: 20px; }
.trace-4 { width:  2px; height: 80px; bottom: 20px; left: 30%; background: var(--accent-red); box-shadow: 0 0 6px var(--accent-red); }
.trace-5 { width: 2px; height: 80px; bottom:  20px; right: 30%; background: var(--accent-red); box-shadow: 0 0 6px var(--accent-red); }
.trace-6 { width: 60px; height: 2px; bottom:  30%; left: 50%; transform: translateX(-50%) rotate(45deg); background: var(--accent-magenta); box-shadow: 0 0 6px var(--accent-magenta); }

.node {
    position:  absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 3s infinite; /* slower */
}

.node-red { background: var(--accent-red); box-shadow: 0 0 10px var(--accent-red); }
.node-yellow { background: var(--accent-yellow); box-shadow: 0 0 10px var(--accent-yellow); }

.node-1 { top: 20px; left: 50%; transform: translateX(-50%); }
.node-2 { top: 50%; left: 20px; transform: translateY(-50%); animation-delay: 0.5s; }
.node-3 { top: 50%; right: 20px; transform: translateY(-50%); animation-delay: 1s; }
.node-4 { bottom: 20px; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.node-5 { bottom: 50px; left: 30%; animation-delay: 0.75s; }
.node-6 { bottom: 50px; right: 30%; animation-delay:  1.25s; }
.node-7 { top: 30%; left: 25%; animation-delay:  0.3s; }
.node-8 { top: 30%; right: 25%; animation-delay: 0.9s; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.data-stream {
    position:  absolute;
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, transparent, var(--accent-cyan), transparent);
    animation: dataStream 3s infinite linear; /* slower */
}

.stream-1 { left: 50%; top: 0; animation-delay: 0s; }
.stream-2 { left: 30%; top: 0; animation-delay:  0.7s; }
.stream-3 { right: 30%; top: 0; animation-delay: 1.4s; }

@keyframes dataStream {
    0% { top: 0; opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { top: calc(100% - 30px); opacity: 0; }
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding:  var(--section-padding) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 60px;
    text-align: center;
}

.title-decorator {
    color: var(--accent-red);
    margin-right: 10px;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    background: var(--bg-secondary);
    position: relative;
}

.features::before {
    content:  '';
    position:  absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.features-grid {
    display:  grid;
    grid-template-columns:  repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background:  var(--bg-card);
    padding: 40px 30px;
    border:  1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-cyber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-glitch-line {
    display: none; /* disabled */
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.card-scanline {
    display: none; /* disabled */
}

.feature-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 51, 0.1);
    border:  1px solid var(--accent-red);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(255, 0, 51, 0.15);
    box-shadow: 0 0 15px var(--accent-red-glow);
}

.feature-icon svg {
    width:  32px;
    height: 32px;
    color: var(--accent-red);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color:  var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   MODULES/DEVICES SECTION
   ======================================== */
.modules-preview {
    background: var(--bg-primary);
}

.modules-grid {
    display:  grid;
    grid-template-columns:  repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.module-status {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap:  8px;
}

.status-dot {
    width:  8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.status-dot.dev {
    background:  var(--accent-yellow);
    box-shadow: 0 0 8px var(--accent-yellow);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.module-glitch-bg {
    display: none; /* disabled */
}

.module-header {
    margin-bottom: 15px;
}

.module-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.module-version {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

.module-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.module-specs {
    display:  flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.spec {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 5px 10px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap:  5px;
}

.spec-icon {
    font-style: normal;
}

.module-tech {
    display:  flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-red);
    border:  1px solid var(--accent-red);
    padding: 3px 8px;
    border-radius: 3px;
    background: rgba(255, 0, 51, 0.1);
}

.module-link {
    display:  inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition:  all 0.3s ease;
}

.module-link:hover {
    color: var(--text-primary);
}

.link-arrow {
    transition: transform 0.3s ease;
}

.module-link:hover .link-arrow {
    transform: translateX(5px);
}

/* ========================================
   TECH STACK SECTION
   ======================================== */
.tech-stack {
    background: var(--bg-secondary);
}

.tech-grid {
    display:  grid;
    grid-template-columns:  repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.tech-icon-wrapper {
    width:  50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
}

.tech-icon {
    font-size: 1.5rem;
}

.tech-name {
    font-family: var(--font-display);
    font-size:  0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-methods {
    display:  flex;
    flex-direction: column;
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--accent-cyan);
    transform: translateX(10px);
}

.method-icon {
    font-size: 1.5rem;
}

.method-text {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

/* Terminal */
.terminal-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width:  12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 10px;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.terminal-line {
    margin: 10px 0;
}

.prompt {
    color: var(--accent-green);
}

.cmd-typing {
    color: var(--text-primary);
}

.output {
    color:  var(--text-secondary);
    margin:  3px 0;
}

.highlight {
    color: var(--accent-cyan);
}

.highlight-red {
    color:  var(--accent-red);
}

.highlight-cyan {
    color:  var(--accent-cyan);
}

.highlight-green {
    color:  var(--accent-green);
}

.highlight-yellow {
    color:  var(--accent-yellow);
}

.cursor {
    color: var(--accent-cyan);
    animation: cursorBlink 1s step-end infinite;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background:  var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    height: 40px;
    filter: invert(1);
    opacity: 0.8;
}

.footer-brand p {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap:  30px;
}

.footer-links a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition:  color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top:  30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-glitch-bar {
    display: none; /* disabled */
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        border-left: none;
        padding-left: 0;
        border-bottom: 3px solid var(--accent-red);
        padding-bottom: 15px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top:  70px;
        left: 0;
        width: 100%;
        background:  rgba(10, 10, 15, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        transform: translateY(-150%);
        transition:  transform 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        transform:  translateY(0);
    }
    
    .nav-toggle {
        display:  flex;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        max-width: 280px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.8rem;
    }
}
/* ========================================
   GAUGES DEMO - CLEAN VERSION
   ======================================== */
.gauges-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width:  460px;
}

.gauge-panel {
    background: linear-gradient(180deg, #0c0c14 0%, #080810 100%);
    border:  1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gauges-wrapper {
    display: flex;
    justify-content: center;
    gap:  40px;
    margin-bottom: 20px;
}

/* Individual Gauge */
.gauge {
    position: relative;
    width: 180px;
    height: 180px;
}

.gauge-svg {
    width:  100%;
    height: 100%;
    overflow: visible;
}

/* Arc paths */
.gauge-bg {
    opacity: 0.8;
}

.gauge-value {
    stroke-dasharray: 377;
    stroke-dashoffset: 188;
    transition: stroke-dashoffset 0.4s ease-out;
}

#pressure-arc {
    stroke-dashoffset: 188;
}

#temp-arc {
    stroke-dashoffset: 218;
}

/* Center content */
.gauge-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.gauge-value-text {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.gauge-unit {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Labels */
.gauge-label {
    position: absolute;
    font-size: 2rem;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap:  2px;
    padding: 10px 14px;
    white-space: nowrap;
}

.label-icon {
    font-size: 0.85rem;
}

.label-text {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color:  var(--accent-cyan);
    letter-spacing: 1px;
}

#temp-gauge .gauge-label {
    border-color: rgba(0, 255, 136, 0.2);
}

#temp-gauge .label-text {
    color: var(--accent-green);
}

/* Scale */
.gauge-scale {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    width: 140px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Panel status bar */
.panel-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size:  0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.status-led {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius:  50%;
    box-shadow: 0 0 10px #00ff88;
    animation: ledBlink 2s ease-in-out infinite;
}

@keyframes ledBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-divider {
    color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   SLIDERS PANEL
   ======================================== */
.sliders-panel {
    background: rgba(12, 12, 20, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
}

.slider-row {
    margin-bottom: 20px;
}

.slider-row:last-child {
    margin-bottom:  0;
}

.slider-info {
    display:  flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.slider-icon {
    font-size: 1rem;
}

.slider-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.slider-display {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size:  0.9rem;
    font-weight: 600;
    color:  var(--accent-cyan);
    background: rgba(0, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    min-width: 75px;
    text-align: center;
}

/* Slider input */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width:  22px;
    height: 22px;
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    border:  3px solid var(--accent-cyan);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.slider::-moz-range-thumb {
    width:  22px;
    height: 22px;
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    border: 3px solid var(--accent-cyan);
    border-radius:  50%;
    cursor: grab;
}

/* Temperature slider variant */
.slider-temp::-webkit-slider-thumb {
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.slider-temp::-webkit-slider-thumb:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.slider-minmax {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Temperature states */
#temp-gauge.warning .gauge-value-text {
    color:  #ffff00;
    text-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

#temp-gauge.danger .gauge-value-text {
    color: #ff3333;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
    animation: dangerPulse 0.5s ease-in-out infinite;
}

@keyframes dangerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive */
@media (max-width:  992px) {
    .gauges-demo {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .gauges-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    
    .gauge-panel {
        padding: 30px 20px 50px;
    }
    
    .panel-status {
        margin-top: 70px;
    }
}