/**
 * Custom Styles for Jordan Portfolio
 * Полностью ручная разработка без CSS фреймворков
 */

/* ==================== БАЗОВЫЕ СТИЛИ ==================== */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --secondary-dark: #7c3aed;
    --accent: #10b981;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --gray: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* ==================== ОБЩИЕ КОМПОНЕНТЫ ==================== */

/* Заголовки страниц */
.container h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.container h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.container h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Карточки */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Код блоки */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #333;
    margin: 1rem 0;
}

/* Статус карточки */
.status-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    border-left: 4px solid var(--gray);
}

.status-card.active {
    border-left-color: var(--success);
}

.status-card.inactive {
    border-left-color: var(--error);
}

/* ==================== СТРАНИЦА ГЛАВНАЯ (home) ==================== */

.hero {
    text-align: center;
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-work {
    padding: 4rem 0;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-card h3 {
    padding: 1rem 1rem 0.5rem;
    color: white;
}

.project-card .excerpt {
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.project-card .btn {
    margin: 1rem;
}

.tech-stack {
    padding: 4rem 0;
}

.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tech-item {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-item:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

/* ==================== СТРАНИЦА НАВЫКИ (skills) ==================== */

.skills-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.chart-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    height: 400px;
}

.skills-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.skills-list h3 {
    margin-top: 0;
}

.skills-list ul {
    list-style: none;
    padding: 0;
}

.skills-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skills-list li strong {
    color: var(--primary);
}

.loader {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.skill-details {
    margin-top: 3rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.skill-bars {
    margin-top: 1rem;
}

.skill-bar {
    margin: 1rem 0;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 1s ease;
}

/* ==================== СТРАНИЦА REACT/VUE ДЕМО ==================== */

#react-root, #vue-root {
    min-height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webrtc-status {
    text-align: center;
    font-size: 1.2rem;
}

.webrtc-status .online {
    color: var(--success);
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
}

.webrtc-status .offline {
    color: var(--error);
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
}

.code-explanation {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.code-explanation pre {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

/* ==================== СТРАНИЦА NGINX ==================== */

.config-showcase {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.server-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.server-stats ul {
    list-style: none;
    padding: 0;
}

.server-stats li {
    padding: 1rem;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-family: monospace;
}

/* ==================== СТРАНИЦА NODE.JS ==================== */

.nodejs-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

#node-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

/* ==================== СТРАНИЦА XCODE ==================== */

.ios-showcase {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.app-preview {
    margin-bottom: 2rem;
}

.code-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: var(--transition);
}

.tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.code-panel {
    display: none;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.code-panel.active {
    display: block;
}

.features-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== АДАПТИВНОСТЬ ==================== */

@media (max-width: 768px) {
    .container h1 {
        font-size: 2rem;
    }
    
    .container h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .skills-dashboard {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .code-tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .code-block {
        font-size: 12px;
        padding: 1rem;
    }
    
    #node-status {
        grid-template-columns: 1fr;
    }
}

/* ==================== АНИМАЦИИ ==================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==================== УТИЛИТЫ ==================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

/* ==================== КАСТОМНОЕ МЕНЮ ==================== */

/* Основной контейнер меню */
.main-navigation {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin: 1rem auto;
    max-width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

/* Список меню */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

/* Элементы меню */
.main-navigation li {
    position: relative;
    margin: 0;
}

/* Ссылки меню */
.main-navigation a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Эффект фона при наведении */
.main-navigation a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px;
    z-index: -1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.main-navigation a:hover::before,
.main-navigation a:focus::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: white;
    transform: translateY(-2px);
}

/* Активный пункт меню */
.main-navigation .current-menu-item a,
.main-navigation .current-page-ancestor a {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-md);
}

.main-navigation .current-menu-item a::before,
.main-navigation .current-page-ancestor a::before {
    display: none;
}

/* Выпадающие меню (если будут) */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
}

.main-navigation li:hover > .sub-menu {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.main-navigation .sub-menu a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Мобильное меню */
@media (max-width: 768px) {
    .main-navigation {
        border-radius: 20px;
        padding: 0.5rem;
        max-width: 100%;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-navigation a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-navigation .sub-menu {
        position: static;
        display: none;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .main-navigation li:hover > .sub-menu {
        display: block;
    }
    
    .main-navigation .sub-menu a {
        padding: 0.5rem 1.5rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .main-navigation a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Анимация для выпадающего меню */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== МОБИЛЬНАЯ КНОПКА МЕНЮ ==================== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0;
        margin: 0;
        padding: 1rem;
        max-width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation a {
        text-align: center;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ==================== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ REACT ДЕМО ==================== */
.project-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-info {
    margin: 3rem 0;
}

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

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.info-card h3 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.2rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card li:last-child {
    border-bottom: none;
}

.code-explanation pre {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid #333;
}

.code-explanation code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #d4d4d4;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .project-description {
        font-size: 1rem;
    }
}

/* ==================== REACT WEBRTC DASHBOARD ==================== */
.react-webrtc-dashboard {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.connection-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 1.1rem;
}

.status-connected { color: #10b981; }
.status-calling { color: #f59e0b; }
.status-disconnected { color: #ef4444; }
.status-ended { color: #6b7280; }

.call-timer {
    font-family: monospace;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.video-container {
    position: relative;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container video.video-disabled {
    filter: grayscale(1);
    opacity: 0.5;
}

.video-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.call-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.call-controls button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-call {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-end {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-control {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-control.active {
    background: #ef4444;
    border-color: #ef4444;
}

.call-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.call-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.message-log {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

.message-log h4 {
    margin-bottom: 1rem;
    color: white;
}

.messages {
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
}

.message {
    padding: 0.5rem;
    margin: 0.25rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.message .time {
    color: #9ca3af;
    margin-right: 1rem;
}

.message.system .text { color: #60a5fa; }
.message.operator .text { color: #34d399; }
.message.error .text { color: #f87171; }

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .call-controls button {
        min-width: 100%;
    }
}

/* ==================== VUE SERVER DASHBOARD ==================== */
/* ==================== СТИЛЬНЫЙ VUE DASHBOARD ==================== */
.vue-server-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Хедер */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.header-left h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.gradient-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.health-status {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.health-status.healthy {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #10b981;
}

.health-status.warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

.health-status.critical {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

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

.time-display {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-display i.spinning {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Toggle Switch */
.refresh-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.refresh-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.refresh-select option {
    background: #1a1a1a;
}

/* Табы */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kpi-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.kpi-icon.cpu { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.kpi-icon.memory { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.kpi-icon.disk { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.kpi-icon.uptime { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.kpi-content {
    flex: 1;
}

.kpi-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.2rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.kpi-trend {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.2rem;
}

/* История график */
.history-chart {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-cpu, .legend-memory {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.legend-cpu::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 2px;
    margin-right: 0.3rem;
}

.legend-memory::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #8b5cf6;
    border-radius: 2px;
    margin-right: 0.3rem;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    height: 150px;
    gap: 2px;
}

.chart-column {
    flex: 1;
    min-width: 8px;
}

.chart-bars {
    display: flex;
    gap: 2px;
    height: 120px;
    align-items: flex-end;
}

.chart-bar {
    flex: 1;
    min-width: 3px;
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
    position: relative;
}

.chart-bar.cpu-bar { background: #3b82f6; }
.chart-bar.memory-bar { background: #8b5cf6; }

/* CPU View */
.cpu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.cpu-core-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.cpu-core-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.core-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.core-number {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.core-percent {
    font-weight: 700;
    font-size: 1.2rem;
}

.core-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.core-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.core-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Memory View */
.memory-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.memory-donut {
    max-width: 300px;
    margin: 0 auto;
}

.donut-chart {
    width: 100%;
    height: auto;
}

.donut-ring {
    stroke: rgba(255, 255, 255, 0.1);
}

.donut-segment {
    transition: stroke-dashoffset 0.5s ease;
}

.donut-text {
    fill: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.memory-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.memory-stat {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.memory-stat:last-child {
    border-bottom: none;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    font-weight: 600;
    color: white;
}

/* Disk View */
.disk-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.disk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.disk-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disk-icon {
    font-size: 1.2rem;
}

.disk-mount {
    font-weight: 600;
    font-size: 1.1rem;
}

.disk-filesystem {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
}

.disk-progress-section {
    margin-bottom: 1rem;
}

.disk-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.disk-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.disk-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.disk-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.disk-number {
    display: flex;
    flex-direction: column;
}

.disk-number span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.disk-number strong {
    font-size: 1rem;
    margin-top: 0.2rem;
}

/* Placeholder */
.placeholder-message {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.placeholder-message i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.placeholder-message h3 {
    margin: 0.5rem 0;
}

.placeholder-message p {
    color: rgba(255, 255, 255, 0.6);
}

/* Адаптивность */
@media (max-width: 768px) {
    .vue-server-dashboard {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .memory-view {
        grid-template-columns: 1fr;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .cpu-grid {
        grid-template-columns: 1fr;
    }
    
    .disk-numbers {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 1.4rem;
    }
    
    .dashboard-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
}

/* ==================== ГЛАВНАЯ СТРАНИЦА ==================== */

/* Герой секция */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-greeting {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    display: block;
    animation: fadeInUp 0.5s ease;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.title-line:first-child {
    color: white;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.title-line.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.5s ease 0.4s both;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.5s ease 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease 0.8s both;
}

.btn.primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn.outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.outline:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.btn.small {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* Статистика */
.hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 800px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease 1s both;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.stat-icon {
    font-size: 2rem;
    background: rgba(59, 130, 246, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Заголовки секций */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #cbd5e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Архитектура */
.architecture-section {
    padding: 4rem 0;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.arch-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.arch-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

.arch-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.arch-icon {
    font-size: 2rem;
}

.arch-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.arch-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arch-list li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.arch-list li:last-child {
    border-bottom: none;
}

/* Проекты */
.featured-work {
    padding: 4rem 0;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.project-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin: 0 0 0.5rem;
    color: white;
    font-size: 1.3rem;
}

.project-content .excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

/* Технологии */
.tech-stack {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    margin: 2rem 0;
}

.tech-cloud {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-category {
    margin-bottom: 2rem;
}

.tech-category h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-item:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateY(-2px) scale(1.05);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Преимущества */
.why-me {
    padding: 4rem 0;
}

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

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .title-line {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .title-line {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для выделенного проекта */
.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 2rem;
}

.project-card.featured .project-thumb {
    height: 100%;
    min-height: 400px;
}

.project-card.featured .project-content {
    padding: 2rem;
}

.project-card.featured h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card.featured .project-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-card.featured .project-features,
.project-card.featured .project-architecture {
    margin-bottom: 1.5rem;
}

.project-card.featured h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.project-card.featured ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.project-card.featured li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card.featured .project-tech {
    margin-bottom: 1.5rem;
}

.project-card.featured .project-links {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .project-card.featured {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured .project-thumb {
        min-height: 200px;
    }
    
    .project-card.featured h3 {
        font-size: 1.5rem;
    }
    
    .project-card.featured ul {
        grid-template-columns: 1fr;
    }
}
/* Плейсхолдер для изображения проекта */
.project-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gradientShift 8s ease infinite;
    background-size: 300% 300%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.project-thumb-placeholder.small {
    min-height: 150px;
}

.placeholder-content {
    text-align: center;
    color: white;
}

.placeholder-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.placeholder-text {
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* Обновлённые стили для технологий */
.tech-stack {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    margin: 2rem 0;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-item:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateY(-2px) scale(1.05);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Обновлённые преимущества */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
/* ==================== СТИЛЬНЫЙ HEADER С ЛОГОТИПОМ ==================== */
.site-header {
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 20, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 40px;
    height: 40px;
    animation: float 3s ease-in-out infinite;
}

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

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Навигация */
.main-navigation ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 50px;
    transition: transform 0.3s ease;
    z-index: -1;
}

.main-navigation a:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.main-navigation a:hover {
    color: white;
}

.main-navigation .current-menu-item a {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Кнопка мобильного меню */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        padding: 0.8rem 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 20, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
    
    .main-navigation.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-navigation a {
        padding: 0.8rem 1.5rem;
        text-align: center;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

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

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .logo-name {
        font-size: 1.2rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
}
