/* ============================================
   HIGH-END SCI-FI PORTFOLIO - 2077 AESTHETIC
   ============================================ */

:root {
    /* Deep Space Color Palette */
    --bg-center: #112240;
    --bg-deep: #020c1b;
    --bg-glass: rgba(17, 34, 64, 0.3);
    
    /* Neon Energy Colors */
    --neon-cyan: #64ffda;
    --neon-cyan-glow: rgba(100, 255, 218, 0.5);
    --neon-cyan-bright: rgba(100, 255, 218, 0.8);
    
    /* Horizon Gold */
    --gold: #ffb700;
    --gold-glow: rgba(255, 183, 0, 0.4);
    --amber: #ffaa00;
    
    /* Text Colors */
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-muted: #495670;
    
    /* Typography */
    --font-mono: 'Fira Code', 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --section-padding-mobile: 32px 0;
    
    /* Effects */
    --glow-cyan: 0 0 20px var(--neon-cyan-glow), 0 0 40px var(--neon-cyan-glow);
    --glow-gold: 0 0 20px var(--gold-glow), 0 0 40px var(--gold-glow);
    --glass-border: 1px solid rgba(100, 255, 218, 0.2);
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(ellipse at center, var(--bg-center) 0%, var(--bg-deep) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   NAVIGATION - Glassmorphism HUD
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(17, 34, 64, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: var(--glass-border);
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

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

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

.nav-logo .logo-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--neon-cyan);
    font-weight: 700;
    text-shadow: var(--glow-cyan);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--gold));
    box-shadow: var(--glow-cyan);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--neon-cyan);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-cyan-glow);
}

/* ============================================
   HERO SECTION - Deep Space
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 2rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#globe-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    width: 100%;
    text-align: center;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    box-shadow: var(--glow-cyan);
    animation: float 3s ease-in-out infinite;
}

/* Специфичные селекторы для гарантированного применения */
.status-indicator .status-text,
.status-text {
    color: #00ff41 !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-shadow: 
        0 0 10px rgba(0, 255, 65, 0.8),
        0 0 20px rgba(0, 255, 65, 0.6),
        0 0 30px rgba(0, 255, 65, 0.4) !important;
    opacity: 1 !important;
    animation: none !important;
}

.status-indicator .status-dot,
.status-dot {
    width: 10px !important;
    height: 10px !important;
    background: #00ff41 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8), 0 0 20px rgba(0, 255, 65, 0.6) !important;
    animation: blink-green 1.5s ease-in-out infinite !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.status-dot {
    width: 10px !important;
    height: 10px !important;
    background: #00ff41 !important; /* Зеленый цвет */
    border-radius: 50% !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8), 0 0 20px rgba(0, 255, 65, 0.6) !important;
    animation: blink-green 1.5s ease-in-out infinite !important;
}

@keyframes blink-green {
    0%, 50% { 
        opacity: 1; 
        box-shadow: 
            0 0 10px rgba(0, 255, 65, 0.8), 
            0 0 20px rgba(0, 255, 65, 0.6),
            0 0 30px rgba(0, 255, 65, 0.4);
    }
    51%, 100% { 
        opacity: 0.3; 
        box-shadow: 
            0 0 5px rgba(0, 255, 65, 0.4), 
            0 0 10px rgba(0, 255, 65, 0.3);
    }
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
    letter-spacing: 3px;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 20px var(--neon-cyan-glow);
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}



/* ============================================
   SECTIONS - Glassmorphism Cards
   ============================================ */

/* Общие стили для всех секций, кроме security-dashboard и hero */
section:not(#security-dashboard):not(#hero) {
    padding: 0 var(--section-padding) var(--section-padding); /* Убираем верхний padding для всех секций */
    position: relative;
}

/* Специфичные отступы для секции experience (такие же как у security-dashboard) */
section#experience.experience,
#experience.experience,
#experience {
    padding: 63px 0 5px 0 !important; /* Уменьшен нижний отступ до 5px */
    min-height: auto !important;
    height: auto !important;
}

/* Уменьшаем нижний отступ секции about на 75% и еще в два раза */
section#about.about,
#about.about,
#about {
    padding-bottom: 5px !important; /* 6.25% от 80px = 5px */
}

/* Выравниваем отступы таблицы в секции tech - делаем одинаковыми сверху и снизу */
section#tech.tech,
#tech.tech,
#tech {
    padding-bottom: 0 !important; /* Убираем нижний padding секции */
}

/* Выравниваем отступы таблицы - делаем одинаковыми сверху и снизу */
#tech .circuit-board {
    margin-top: 0 !important;
    margin-bottom: 4rem !important; /* Такой же как margin-bottom у .section-title (4rem) */
}

/* Верхний отступ уже убран для всех секций через общее правило выше */

/* Убираем дополнительные отступы у container внутри experience */
#experience .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

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

/* Уменьшаем отступы container внутри security-dashboard */
#security-dashboard .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 5vw, 3rem);
}

.title-accent {
    color: var(--neon-cyan);
    font-weight: 600;
    text-shadow: var(--glow-cyan);
}

.title-text {
    color: var(--text-primary);
    font-weight: 700;
}

.title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* ============================================
   HERO CTA BUTTONS
   ============================================ */

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn {
    padding: 1rem 2.5rem;
    border: 2px solid;
    border-radius: 0;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    font-weight: 600;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: inline-block !important;
}

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

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

.btn-primary {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.btn-primary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan), 0 10px 30px rgba(100, 255, 218, 0.3);
    border-color: var(--neon-cyan);
}

.btn-secondary {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.btn-secondary:hover {
    background: rgba(255, 183, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--glow-gold), 0 10px 30px rgba(255, 183, 0, 0.3);
    border-color: var(--gold);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
    max-width: 900px;
}

.about-text {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.highlight {
    color: var(--neon-cyan);
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-cyan), 0 20px 40px rgba(100, 255, 218, 0.2);
    border-color: var(--neon-cyan);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: var(--glow-gold);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   EXPERIENCE SECTION - Timeline
   ============================================ */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-cyan), var(--gold));
    box-shadow: var(--glow-cyan);
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
    padding-left: 3rem;
    opacity: 1 !important; /* Видимы по умолчанию */
    visibility: visible !important;
}

.timeline-marker {
    position: absolute;
    left: -1.6rem;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--neon-cyan);
    border: 4px solid var(--bg-deep);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
    z-index: 1;
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--gold-glow);
}

.timeline-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.timeline-company {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.timeline-achievements {
    list-style: none;
    color: var(--text-secondary);
}

.timeline-achievements li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.timeline-achievements li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan-glow);
}

/* ============================================
   TECH ARSENAL - Cyberpunk Circuit Board
   ============================================ */

.circuit-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(100, 255, 218, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: visible;
}

.circuit-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(100, 255, 218, 0.03) 2px,
            rgba(100, 255, 218, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(100, 255, 218, 0.03) 2px,
            rgba(100, 255, 218, 0.03) 4px
        );
    pointer-events: none;
    border-radius: 16px;
}

/* Circuit Node Container */
.circuit-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
}

/* Parent Node (Top) */
.parent-node {
    position: relative;
    z-index: 10;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.node-core {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid;
    border-radius: 12px;
    padding: 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px;
    transition: all 0.4s ease;
    margin-bottom: 0;
    width: 192px;
    height: 106px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.node-automation .node-core {
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.node-threat .node-core {
    border-color: #ff6b35;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.node-infra .node-core {
    border-color: #9d4edd;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.5);
}

.node-core i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.node-automation .node-core i {
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.node-threat .node-core i {
    color: #ff6b35;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
}

.node-infra .node-core i {
    color: #9d4edd;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.8);
}

.node-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.2;
    flex-shrink: 0;
}

.node-automation .node-title {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.node-threat .node-title {
    color: #ff6b35;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
}

.node-infra .node-title {
    color: #9d4edd;
    text-shadow: 0 0 15px rgba(157, 78, 221, 0.8);
}

/* Circuit Lines (Connectors) */
.circuit-lines {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    z-index: 1;
    pointer-events: none;
    display: none;
}

.circuit-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, currentColor, currentColor 50%, transparent);
    opacity: 0.5;
    animation: pulseFlow 3s ease-in-out infinite;
    display: none;
}

.node-automation .circuit-line {
    color: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.node-threat .circuit-line {
    color: #ff6b35;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

.node-infra .circuit-line {
    color: #9d4edd;
    box-shadow: 0 0 8px rgba(157, 78, 221, 0.6);
}

.circuit-line.line-1 {
    top: 0;
    animation-delay: 0s;
}

.circuit-line.line-2 {
    top: 87px;
    animation-delay: 0.75s;
}

.circuit-line.line-3 {
    top: 174px;
    animation-delay: 1.5s;
}

.circuit-line.line-4 {
    top: 261px;
    animation-delay: 2.25s;
}

/* Pulse Animation for Circuit Lines */
@keyframes pulseFlow {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 5px currentColor;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

/* Child Nodes (Skills) */
.child-nodes {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}

.child-node {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    margin-left: 20px;
}

.node-automation .child-node {
    border-color: rgba(0, 255, 255, 0.4);
}

.node-threat .child-node {
    border-color: rgba(255, 107, 53, 0.4);
}

.node-infra .child-node {
    border-color: rgba(157, 78, 221, 0.4);
}

.child-node::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: pulseFlow 3s ease-in-out infinite;
    z-index: 2;
}

.child-node::after {
    display: none;
}

.node-automation .child-node::before,
.node-automation .child-node::after {
    color: #00ffff;
}

.node-automation .child-node::before {
    animation-delay: calc(var(--node-index, 0) * 0.75s);
}

.node-threat .child-node::before,
.node-threat .child-node::after {
    color: #ff6b35;
}

.node-threat .child-node::before {
    animation-delay: calc(var(--node-index, 0) * 0.75s);
}

.node-infra .child-node::before,
.node-infra .child-node::after {
    color: #9d4edd;
}

.node-infra .child-node::before {
    animation-delay: calc(var(--node-index, 0) * 0.75s);
}

.child-node:hover {
    transform: translateX(8px);
    border-width: 3px;
}

.node-automation .child-node:hover {
    border-color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
    background: rgba(0, 255, 255, 0.1);
}

.node-threat .child-node:hover {
    border-color: #ff6b35;
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.6);
    background: rgba(255, 107, 53, 0.1);
}

.node-infra .child-node:hover {
    border-color: #9d4edd;
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.6);
    background: rgba(157, 78, 221, 0.1);
}

.node-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.node-automation .node-icon {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.node-threat .node-icon {
    color: #ff6b35;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
}

.node-infra .node-icon {
    color: #9d4edd;
    text-shadow: 0 0 15px rgba(157, 78, 221, 0.8);
}

.node-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.node-name {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.node-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid;
    border-radius: 4px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.node-automation .tag {
    border-color: rgba(0, 255, 255, 0.3);
    color: rgba(0, 255, 255, 0.8);
}

.node-threat .tag {
    border-color: rgba(255, 107, 53, 0.3);
    color: rgba(255, 107, 53, 0.8);
}

.node-infra .tag {
    border-color: rgba(157, 78, 221, 0.3);
    color: rgba(157, 78, 221, 0.8);
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .circuit-board {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .circuit-node {
        min-height: auto;
    }
    
    .circuit-lines {
        height: 180px;
    }
    
    .circuit-line {
        height: 45px;
    }
    
    .circuit-line.line-2 {
        top: 45px;
    }
    
    .circuit-line.line-3 {
        top: 90px;
    }
    
    .circuit-line.line-4 {
        top: 135px;
    }
    
    .parent-node {
        margin-bottom: 0;
    }
    
    .child-nodes {
        margin-top: 0;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .circuit-board {
        padding: 1rem;
        gap: 3rem;
    }
    
    .node-core {
        padding: 1rem 1.2rem;
        margin-bottom: 0;
        width: 192px;
        height: 106px;
    }
    
    .node-core i {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }
    
    .node-title {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .parent-node {
        margin-bottom: 0;
    }
    
    .child-nodes {
        margin-top: 0;
        gap: 1rem;
    }
    
    .child-node {
        padding: 1rem;
        margin-left: 15px;
    }
    
    .child-node::before {
        left: -17px;
        width: 15px;
    }
    
    .child-node::after {
        left: -17px;
    }
    
    .node-icon {
        font-size: 1.5rem;
        width: 40px;
        min-width: 40px;
    }
    
    .node-name {
        font-size: 1rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 0; /* Убираем верхний отступ, так как .section-title уже имеет margin-bottom: 4rem */
    margin-bottom: 4rem; /* Делаем нижний отступ таким же как margin-bottom у .section-title */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glow-cyan), 0 20px 40px rgba(100, 255, 218, 0.2);
    border-color: var(--neon-cyan);
}

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

.project-icon {
    font-size: 4rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px var(--neon-cyan-glow);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
}

.project-card-title {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    pointer-events: none;
}

.project-card-tech {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
    text-shadow: 0 0 5px var(--gold-glow);
    opacity: 0.9;
    pointer-events: none;
}

/* ============================================
   PROJECT MODAL
   ============================================ */

.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.project-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    padding: 0;
}

@media (max-width: 768px) {
    .project-modal.active {
        align-items: flex-start;
        padding-top: 0;
        overflow-y: auto;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glow-cyan), 0 20px 60px rgba(100, 255, 218, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: var(--glass-border);
    position: relative;
}

.modal-title {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
    margin: 0;
}

.modal-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-close {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--neon-cyan);
    color: var(--bg-deep);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(2, 12, 27, 0.5);
    border-radius: 6px;
    padding: 0.25rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.modal-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.modal-tab:hover {
    color: var(--neon-cyan);
    background: rgba(100, 255, 218, 0.1);
}

.modal-tab.active {
    color: var(--neon-cyan);
    background: rgba(100, 255, 218, 0.2);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-section {
    margin-bottom: 2rem;
}

.tab-section-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.tab-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.code-block {
    background: #0a0e1a;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 20, 10, 0.8);
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    gap: 1rem;
}

.code-snippet-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #00ff88;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    flex: 1;
}

.code-language {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #00ff00;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

.code-copy {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.code-copy:hover {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    background: #0a0e1a;
}

.code-block code {
    font-family: 'Fira Code', 'Courier New', 'Consolas', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

/* Terminal-style syntax highlighting */
.code-block code.language-bash {
    color: #00ff00;
}

.code-block code.language-bash::before {
    content: '$ ';
    color: #00ff88;
    opacity: 0.7;
}

.code-block code.language-python {
    color: #ffffff;
}

.code-block code.language-python .comment {
    color: #00ff88;
    font-style: italic;
}

/* Terminal prompt styling for bash */
.code-block pre code.language-bash {
    display: block;
}

.code-block pre code.language-bash .line::before {
    content: '$ ';
    color: #00ff88;
    opacity: 0.7;
    margin-right: 0.5rem;
}

.proof-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.proof-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.proof-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan-glow);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.screenshot-item {
    background: rgba(2, 12, 27, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.screenshot-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.screenshot-placeholder i {
    font-size: 3rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.screenshot-placeholder p {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.screenshot-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
}

.evidence-section {
    margin-bottom: 2.5rem;
}

.evidence-section-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.log-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(2, 12, 27, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.log-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.log-item i {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-top: 0.2rem;
}

.log-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0 0 0.3rem 0;
    font-weight: 600;
}

.log-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 2rem 1.5rem;
        min-height: 180px;
    }
    
    .project-icon {
        font-size: 3rem;
    }
    
    .project-card-title {
        font-size: 1.1rem;
    }
    
    .project-card-tech {
        font-size: 0.75rem;
    }
    
    .modal-container {
        width: calc(100% - 2rem);
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        margin: 1rem;
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        flex-shrink: 0;
    }
    
    .modal-title {
        font-size: 1.2rem;
        word-break: break-word;
    }
    
    .modal-header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .modal-tabs {
        flex: 1;
        gap: 0.25rem;
        min-width: 0;
    }
    
    .modal-tab {
        font-size: 0.65rem;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .modal-content {
        padding: 1rem;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-section {
        margin-bottom: 1.5rem;
    }
    
    .tab-section-title {
    font-size: 1rem;
    }
    
    .tab-section p {
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    
    .code-block {
        margin-bottom: 1rem;
    }
    
    .code-block pre {
        padding: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .code-block code {
        font-size: 0.75rem;
        word-break: break-all;
    }
    
    .code-header {
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .code-language {
        font-size: 0.75rem;
    }
    
    .code-snippet-title {
        font-size: 0.7rem;
    }
    
    .code-copy {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .screenshot-item {
        width: 100%;
    }
    
    .screenshot-placeholder {
        padding: 2rem 1rem;
    }
    
    .screenshot-placeholder i {
        font-size: 2rem;
    }
    
    .logs-list {
        gap: 0.75rem;
    }
    
    .log-item {
        padding: 0.75rem;
    }
    
    .log-title {
        font-size: 0.85rem;
    }
    
    .log-description {
        font-size: 0.75rem;
    }
    
    .proof-list li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }
}

/* ============================================
   EDUCATION SECTION
   ============================================ */

.education-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.education-item {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.education-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-cyan), 0 20px 40px rgba(100, 255, 218, 0.2);
    border-color: var(--neon-cyan);
}

.education-item:hover::before {
    opacity: 1;
}

.education-header {
    margin-bottom: 1.5rem;
}

.education-degree {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--neon-cyan);
    margin-bottom: 0.8rem;
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.education-school {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-period {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--gold);
    text-shadow: 0 0 5px var(--gold-glow);
}

.education-details {
    color: var(--text-secondary);
    line-height: 1.8;
}

.education-focus {
    margin-bottom: 1rem;
}

.education-focus strong {
    color: var(--neon-cyan);
}

.education-projects {
    color: var(--text-secondary);
}

.education-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.education-list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.education-list li strong {
    color: var(--neon-cyan);
    font-weight: 600;
}

.certifications-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: var(--glass-border);
}

.certifications-title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.certification-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(2, 12, 27, 0.4);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.certification-item:hover {
    border-color: var(--neon-cyan);
    transform: translateX(8px);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    background: rgba(100, 255, 218, 0.05);
}

.certification-item i {
    font-size: 1.8rem;
    color: var(--gold);
    width: 35px;
    text-align: center;
    filter: drop-shadow(0 0 5px var(--gold-glow));
    flex-shrink: 0;
}

.certification-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.certification-name {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.certification-org {
    color: var(--neon-cyan);
    font-size: 0.95rem;
}

.certification-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.coursework-section {
    margin-top: 2rem;
}

.coursework-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.coursework-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coursework-list li {
    padding: 1rem 1.5rem;
    background: rgba(2, 12, 27, 0.3);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.coursework-list li:hover {
    background: rgba(100, 255, 218, 0.05);
    border-left-color: var(--gold);
    transform: translateX(5px);
    color: var(--text-primary);
}

.coursework-list li::before {
    content: '▸';
    color: var(--neon-cyan);
    margin-right: 0.8rem;
    font-weight: bold;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 12px;
    transition: all 0.4s ease;
    opacity: 1 !important; /* Видимы по умолчанию */
    transform: translateY(0) !important; /* Позиция по умолчанию */
    visibility: visible !important;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
    border-color: var(--neon-cyan);
}

.contact-item i {
    color: var(--neon-cyan);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 5px var(--neon-cyan-glow));
}

.contact-item span,
.contact-item a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--neon-cyan-glow);
    font-size: inherit;
    font-weight: inherit;
}

.contact-item a:hover {
    color: var(--gold);
    text-shadow: var(--glow-gold);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
}

.social-link {
    width: 60px;
    height: 60px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    opacity: 1 !important; /* Видимы по умолчанию */
    transform: scale(1) !important; /* Размер по умолчанию */
    visibility: visible !important;
}

.social-link:hover {
    background: var(--neon-cyan);
    color: var(--bg-deep);
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--glow-cyan), 0 15px 30px rgba(100, 255, 218, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: var(--glass-border);
    background: rgba(2, 12, 27, 0.3);
    backdrop-filter: blur(10px);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.footer-highlight {
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(17, 34, 64, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: var(--glass-border);
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }


    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .title-line {
        display: none;
    }

    /* Оптимальные отступы для мобильных устройств */
    section:not(#security-dashboard):not(#hero):not(#experience) {
        padding: var(--section-padding-mobile);
    }

    /* Специфичные отступы для секции experience на мобильных */
    section#experience.experience,
    #experience.experience,
    #experience {
        padding: 32px 0 33px 0 !important;
    }

    #experience .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Оптимальные отступы для маленьких мобильных устройств */
    section:not(#security-dashboard):not(#hero):not(#experience) {
        padding: 32px 0;
    }

    /* Специфичные отступы для секции experience на маленьких мобильных */
    section#experience.experience,
    #experience.experience,
    #experience {
        padding: 32px 0 33px 0 !important;
    }

    #experience .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hero {
        padding: 100px 1rem 2rem;
    }
}

/* ============================================
   SECURITY MONITOR UI - CYBERPUNK TERMINAL
   ============================================ */

/* Monitor Button Container */
.monitor-button-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cyber Button */
.cyber-button {
    position: relative;
    background: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
    padding: 1rem 2.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3),
                0 0 20px rgba(100, 255, 218, 0.1),
                inset 0 0 10px rgba(100, 255, 218, 0.1);
}

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

.cyber-button:hover::before {
    left: 100%;
}

.cyber-button:hover {
    color: #0a192f;
    background: #64ffda;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.6),
                0 0 40px rgba(100, 255, 218, 0.4),
                inset 0 0 20px rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

.cyber-button:active {
    transform: translateY(0);
}

.button-text {
    position: relative;
    z-index: 1;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

/* Cyberpunk Terminal */
.cyberpunk-terminal {
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 700px;
    background: #0a192f;
    border: 2px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5),
                0 0 40px rgba(0, 255, 65, 0.3),
                inset 0 0 20px rgba(0, 255, 65, 0.1);
    display: flex;
    flex-direction: column;
    animation: terminalGlow 2s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
    from {
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.5),
                    0 0 40px rgba(0, 255, 65, 0.3),
                    inset 0 0 20px rgba(0, 255, 65, 0.1);
    }
    to {
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.7),
                    0 0 60px rgba(0, 255, 65, 0.5),
                    inset 0 0 30px rgba(0, 255, 65, 0.2);
    }
}

/* Terminal Header */
.terminal-header {
    background: #020c1b;
    border-bottom: 2px solid #00ff41;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #00ff41;
}

.terminal-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Стили .status-indicator, .status-text и .status-dot перенесены выше */

.connection-status {
    color: #64ffda;
    font-size: 0.75rem;
    margin-left: 1rem;
}

.close-btn {
    background: transparent;
    border: 1px solid #00ff41;
    color: #00ff41;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

.close-btn:hover {
    background: #00ff41;
    color: #0a192f;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

/* Terminal Body */
.terminal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #00ff41;
    background: #0a192f;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #020c1b;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #64ffda;
}

/* Log Entries */
.log-entry {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    animation: logEntryFadeIn 0.3s ease;
}

@keyframes logEntryFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-entry.system-msg {
    color: #64ffda;
    border-left-color: #64ffda;
}

.log-entry.log-blocked,
.log-entry.log-ssh_attack {
    color: #ff4444;
    border-left-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.log-entry.log-connected,
.log-entry.log-system {
    color: #00ff41;
    border-left-color: #00ff41;
}

.log-entry.log-error {
    color: #ffaa00;
    border-left-color: #ffaa00;
}

.log-entry.log-reconnecting {
    color: #ffb700;
    border-left-color: #ffb700;
}

/* Terminal Footer */
.terminal-footer {
    background: #020c1b;
    border-top: 2px solid #00ff41;
    padding: 0.75rem 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #00ff41;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-status {
    color: #00ff41;
}

.status-protected {
    color: #00ff41;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.footer-separator {
    color: #64ffda;
}

.footer-uptime {
    color: #64ffda;
}

/* Hidden Utility Class */
.hidden {
    display: none !important;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .cyberpunk-terminal {
        width: 95%;
        height: 85vh;
        max-height: 600px;
    }

    .terminal-header {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }

    .terminal-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .connection-status {
        margin-left: 0;
        font-size: 0.7rem;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.75rem;
    }

    .terminal-footer {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }

    .cyber-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   EMBEDDED SECURITY DASHBOARD - CYBER SECTION
   ============================================ */

/* ============================================
   SECURITY DASHBOARD - GLASSMORPHISM TERMINAL
   Стилизация блока "GLOBAL THREAT INTERCEPTION LOG"
   в соответствии с дизайн-системой hero section
   ============================================ */

/* Основная секция - фон и отступы */
/* Добавляем более специфичные селекторы для гарантированного применения */
#security-dashboard,
.cyber-section,
section#security-dashboard {
    background: radial-gradient(ellipse at center, var(--bg-center) 0%, var(--bg-deep) 100%);
    padding: 63px 0 66px 0 !important;
    position: relative;
    overflow: hidden;
    min-height: auto !important;
    height: auto !important;
}

/* Glassmorphism контейнер - карточка с эффектом стекла */
/* Добавляем более специфичные селекторы */
#security-dashboard .cyber-card,
.cyber-section .cyber-card,
.cyber-card {
    background: rgba(10, 25, 47, 0.4) !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
    border: 1px solid rgba(0, 255, 170, 0.2) !important;
    border-radius: 12px !important;
    padding: 2.5rem !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.15),
                0 0 40px rgba(0, 217, 255, 0.1),
                inset 0 0 60px rgba(0, 255, 170, 0.03) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

/* Hover эффект для контейнера - увеличение свечения */
#security-dashboard .cyber-card:hover,
.cyber-section .cyber-card:hover,
.cyber-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.25),
                0 0 60px rgba(0, 217, 255, 0.15),
                inset 0 0 60px rgba(0, 255, 170, 0.05) !important;
    border-color: rgba(0, 255, 170, 0.4) !important;
}

/* Заголовок секции */
.cyber-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 255, 170, 0.2);
    padding-bottom: 1.5rem;
}

/* Основной заголовок - моноширинный шрифт с неоновым свечением */
.cyber-title {
    font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.5rem;
    color: #00ffaa;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
    letter-spacing: 0.05em;
    line-height: 1.4;
    font-weight: 600;
}

/* Строка статуса */
.cyber-status {
    font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #00d9ff;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

/* Статус "SECURE" с подсветкой */
.status-secure {
    color: #00ffaa;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.6);
}

/* Терминальная консоль - внутренний блок с логами */
#terminal-console,
.terminal-console {
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(0, 255, 170, 0.15);
    border-radius: 8px;
    font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4),
                0 0 15px rgba(0, 255, 170, 0.1);
    position: relative;
    cursor: text;
    /* Опциональный CRT scanline эффект для аутентичности терминала */
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 170, 0.03) 0px,
            transparent 1px,
            transparent 2px
        );
}

/* Focus состояние для accessibility */
#terminal-console:focus,
.terminal-console:focus {
    outline: 2px solid #00ffaa;
    outline-offset: 2px;
    border-color: rgba(0, 255, 170, 0.4);
}

/* Кастомизация скроллбара */
#terminal-console::-webkit-scrollbar,
.terminal-console::-webkit-scrollbar {
    width: 8px;
}

#terminal-console::-webkit-scrollbar-track,
.terminal-console::-webkit-scrollbar-track {
    background: rgba(10, 14, 26, 0.5);
    border-radius: 4px;
}

#terminal-console::-webkit-scrollbar-thumb,
.terminal-console::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 170, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

#terminal-console::-webkit-scrollbar-thumb:hover,
.terminal-console::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 170, 0.6);
    cursor: pointer;
}

/* Строки логов - базовая стилизация */
.log-line {
    margin-bottom: 0.75rem;
    padding: 0.375rem 0;
    line-height: 1.8;
    word-wrap: break-word;
    word-break: break-word;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    animation: logFadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-10px);
}

/* Плавная анимация появления строк */
@keyframes logFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Стилизация префикса [SYSTEM] - выделение цветом и свечением */
.log-line.log-system {
    color: rgba(255, 255, 255, 0.8);
}

.log-line.log-system::before {
    content: "[SYSTEM]";
    color: #00ffaa;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 255, 170, 0.4);
    margin-right: 0.5rem;
}

/* Атаки - красный цвет */
.log-line.log-attack {
    color: #ff4444;
}

.log-line.log-attack::before {
    content: "🚨 ";
    margin-right: 0.25rem;
}

/* Заблокированные атаки - зеленый фон с черным текстом */
.log-line.log-blocked {
    color: #000000;
    background: #00ffaa;
    padding: 0.5rem 0.75rem;
    display: inline-block;
    border-radius: 4px;
    font-weight: 600;
    margin: 0.5rem 0;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.4);
}

.log-line.log-blocked::before {
    content: "🛡️ ";
    margin-right: 0.25rem;
}

/* Ошибки - оранжевый цвет */
.log-line.log-error {
    color: #ffaa00;
}

.log-line.log-error::before {
    content: "❌ ";
    margin-right: 0.25rem;
}

/* Heartbeat - приглушенный cyan */
.log-line.log-heartbeat {
    color: rgba(0, 217, 255, 0.7);
}

.log-line.log-heartbeat::before {
    content: "💓 ";
    margin-right: 0.25rem;
}

/* Анимация пульсации для строки "Waiting for data stream..." */
.log-line.log-waiting {
    animation: logFadeIn 0.5s ease forwards,
               pulse-glow 2s ease-in-out infinite;
    animation-delay: 0.3s, 1s;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.6; 
        color: rgba(255, 255, 255, 0.6);
    }
    50% { 
        opacity: 1; 
        color: #00ffaa;
        text-shadow: 0 0 8px rgba(0, 255, 170, 0.6);
    }
}

/* ============================================
   RESPONSIVE DESIGN - Адаптация для мобильных
   ============================================ */

/* Планшеты (1024px и меньше) */
@media (max-width: 1024px) {
    .cyber-card {
        max-width: 95%;
        padding: 2rem;
        margin: 0 auto;
    }
    
    #terminal-console,
    .terminal-console {
        height: 280px;
        padding: 1.25rem;
    }
}

/* Мобильные устройства (768px и меньше) */
@media (max-width: 768px) {
    .cyber-section {
        padding: 32px 0 33px 0;
    }

    #security-dashboard .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .cyber-card {
        padding: 1.5rem;
        margin: 0 auto;
        border-radius: 8px;
    }

    .cyber-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .cyber-title {
        font-size: 1.3rem;
        letter-spacing: 0.03em;
        margin-bottom: 0.5rem;
    }

    .cyber-status {
        font-size: 0.85rem;
    }

    #terminal-console,
    .terminal-console {
        height: 250px;
        font-size: 0.85rem;
        padding: 1rem;
        min-height: 250px;
    }

    .log-line {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }
}

/* Маленькие мобильные (480px и меньше) */
@media (max-width: 480px) {
    .cyber-section {
        padding: 32px 0 33px 0;
    }

    #security-dashboard .container {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .cyber-card {
        padding: 1.25rem;
        margin: 0.125rem 1rem;
    }

    .cyber-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .cyber-status {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    #terminal-console,
    .terminal-console {
        height: 220px;
        font-size: 0.75rem;
        padding: 0.875rem;
        min-height: 220px;
    }

    .log-line {
        font-size: 0.75rem;
        line-height: 1.6;
        margin-bottom: 0.375rem;
    }
    
    /* Уменьшаем отступы для префикса [SYSTEM] на маленьких экранах */
    .log-line.log-system::before {
        margin-right: 0.25rem;
    }
}


/* ============================================
   CYBER SECURITY ANALYTICS - INSIDE CYBER-CARD
   ============================================ */

/* Period Selector */
.cyber-period-selector {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.cyber-period-btn {
    padding: 0.5rem 1.25rem;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(0, 255, 170, 0.3);
    color: #00d9ff;
    font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.cyber-period-btn:hover {
    background: rgba(0, 255, 170, 0.1);
    border-color: rgba(0, 255, 170, 0.5);
    color: #00ffaa;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.2);
}

.cyber-period-btn.active {
    background: rgba(0, 255, 170, 0.2);
    border-color: #00ffaa;
    color: #00ffaa;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.4);
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.6);
}

/* Stats Grid */
.cyber-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.cyber-stat-card {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cyber-stat-card:hover {
    border-color: rgba(0, 255, 170, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
    transform: translateY(-2px);
}

.cyber-stat-label {
    font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    color: #00d9ff;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-transform: uppercase;
}

.cyber-stat-value {
    font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: #00ffaa;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
    letter-spacing: 0.05em;
}

/* Charts Row */
.cyber-charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cyber-chart-box {
    background: rgba(10, 14, 26, 0.7);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 8px;
    padding: 1.25rem;
    min-height: 280px;
    transition: all 0.3s ease;
}

.cyber-chart-box:hover {
    border-color: rgba(0, 255, 170, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.15);
}

.cyber-chart-title {
    font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #00ffaa;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.4);
    border-bottom: 1px solid rgba(0, 255, 170, 0.2);
    padding-bottom: 0.75rem;
}

.cyber-chart-box canvas {
    max-height: 240px;
}

/* Table Box */
.cyber-table-box {
    background: rgba(10, 14, 26, 0.7);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 2rem 0 0 0;
    transition: all 0.3s ease;
}

.cyber-table-box:hover {
    border-color: rgba(0, 255, 170, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.15);
}

.cyber-table-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    margin-top: 1rem;
}

.cyber-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.cyber-table-container::-webkit-scrollbar-track {
    background: rgba(10, 14, 26, 0.5);
    border-radius: 4px;
}

.cyber-table-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 170, 0.3);
    border-radius: 4px;
}

.cyber-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 170, 0.5);
}

.cyber-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
}

.cyber-table thead {
    position: sticky;
    top: 0;
    background: rgba(10, 14, 26, 0.95);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.cyber-table th {
    padding: 0.875rem 0.75rem;
    text-align: left;
    color: #00ffaa;
    border-bottom: 2px solid rgba(0, 255, 170, 0.3);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.7rem;
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.4);
}

.cyber-table td {
    padding: 0.875rem 0.75rem;
    color: #e6f1ff;
    border-bottom: 1px solid rgba(0, 255, 170, 0.1);
    font-size: 0.75rem;
}

.cyber-table tbody tr {
    transition: all 0.2s ease;
}

.cyber-table tbody tr:hover {
    background: rgba(0, 255, 170, 0.08);
    color: #00ffaa;
}

.cyber-table .cyber-loading {
    text-align: center;
    color: #00d9ff;
    padding: 2rem;
    font-style: italic;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .cyber-charts-row {
        grid-template-columns: 1fr;
    }
    
    .cyber-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cyber-table-container {
        font-size: 0.65rem;
    }
    
    .cyber-table th,
    .cyber-table td {
        padding: 0.5rem 0.375rem;
    }
}

/* Font Awesome Icons Fix - Support both old and new syntax */
/* FontAwesome 6 supports both: fa-solid/fa-brands (new) and fas/fab (old) */
i.fa-solid, i.fas,
i[class*="fa-solid"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

i.fa-brands, i.fab,
i[class*="fa-brands"] {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

i.fa-regular, i.far,
i[class*="fa-regular"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Fallback for any fa- icon */
i[class*="fa-"]:not([class*="fa-solid"]):not([class*="fa-brands"]):not([class*="fa-regular"]) {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    display: inline-block !important;
}

/* Временное решение: абсолютные пути к шрифтам (если относительные не работают) */
/* Раскомментируйте блок ниже, если Kit код недоступен */
/*
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/webfonts/fa-solid-900.woff2") format("woff2"),
         url("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/webfonts/fa-solid-900.ttf") format("truetype");
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/webfonts/fa-brands-400.woff2") format("woff2"),
         url("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/webfonts/fa-brands-400.ttf") format("truetype");
}
*/
