/* ========== Глобальные переменные ========== */
/* ================ Калинник.РФ ===============*/

        :root {
            /* Цветовая палитра - Neo Digital */
            --bg-light: #F9F7F4;
            --text-light: #1A1A1A;
            --card-light: #FFFFFF;
            --border-light: rgba(0, 0, 0, 0.08);
            
            --bg-dark: #0D0D15;
            --text-dark: #E6E6E6;
            --card-dark: #1A1A24;
            --border-dark: rgba(255, 255, 255, 0.1);
            
            --primary: #2EE7D6;   /* Digital Teal - главный акцент */
            --secondary: #FF6B8B; /* Warm Neon */
            --accent: #8A4FFF;    /* Purple для глубины */
            --tertiary: #FFD166;  /* Жёлтый для акцентов */
            
            --success: #10B981;
            --warning: #F59E0B;
            --error: #EF4444;
            
            /* Градиенты */
            --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #FF8E53 100%);
            --gradient-dark: linear-gradient(135deg, var(--bg-dark) 0%, #1A1A24 100%);
            --gradient-glass: linear-gradient(135deg, rgba(46, 231, 214, 0.1) 0%, rgba(138, 79, 255, 0.05) 100%);
            --gradient-card: linear-gradient(135deg, var(--card-light) 0%, #F5F3FF 100%);
            
            /* Тени */
            --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
            --shadow-hover: 0 30px 80px rgba(46, 231, 214, 0.15);
            --shadow-neon: 0 0 20px rgba(46, 231, 214, 0.3);
            
            /* Разное */
            --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            --border-radius: 20px;
            --border-radius-sm: 12px;
            --border-radius-lg: 32px;
        }
        
        /* ========== Базовые стили ========== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: smooth;
            scroll-padding-top: 100px;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.7;
            background: var(--bg-light);
            color: var(--text-light);
            min-height: 100vh;
            overflow-x: hidden;
            transition: var(--transition-smooth);
            cursor: none;
        }
        
        body.dark-theme {
            background: var(--bg-dark);
            color: var(--text-dark);
        }
        
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }
        
        .section {
            padding: 120px 0;
            position: relative;
        }
        
        .section-title {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            display: inline-block;
            position: relative;
        }
        
        .section-subtitle {
            font-size: 1.25rem;
            color: var(--text-light);
            opacity: 0.8;
            max-width: 600px;
            margin-bottom: 4rem;
            font-family: 'JetBrains Mono', monospace;
        }
        
        body.dark-theme .section-subtitle {
            color: var(--text-dark);
        }
        
        /* ========== Анимированный фон ========== */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            background: 
                radial-gradient(circle at 20% 50%, rgba(46, 231, 214, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(138, 79, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 107, 139, 0.05) 0%, transparent 50%);
            animation: gradientFloat 20s ease infinite;
        }
        
        body.dark-theme .animated-bg {
            background: 
                radial-gradient(circle at 20% 50%, rgba(46, 231, 214, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(138, 79, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 107, 139, 0.03) 0%, transparent 50%);
        }
        
        @keyframes gradientFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(-30px, -30px) scale(1.05); }
            66% { transform: translate(30px, 30px) scale(0.95); }
        }
        
        /* ========== Частицы ========== */
        #particles-js {
            position: fixed;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        
        /* ========== УЛУЧШЕННЫЙ КУРСОР ========== */
        .cursor {
            position: fixed;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary);
            pointer-events: none;
            z-index: 9999;
            mix-blend-mode: difference;
            transition: transform 0.1s, width 0.3s, height 0.3s;
        }
        
        .cursor-follower {
            position: fixed;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid var(--primary);
            pointer-events: none;
            z-index: 9998;
            transition: transform 0.6s, width 0.3s, height 0.3s;
            opacity: 0.3;
        }
        
        .cursor-trail {
            position: fixed;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
            pointer-events: none;
            z-index: 9997;
            opacity: 0.5;
            transition: opacity 0.3s;
        }
        
        /* ========== Переключатель темы ========== */
        .theme-switcher {
            position: fixed;
            bottom: 100px; /* Отступ от самого низа */
            right: 30px;
            z-index: 1000;
            background: var(--card-light);
            backdrop-filter: blur(10px);
            border-radius: 50px;
            padding: 8px;
            box-shadow: var(--shadow-lg);
            display: flex;
            gap: 6px;
            transition: var(--transition);
            border: 1px solid var(--border-light);
        }
        
        /* Для мобильных устройств - увеличить отступ */
        @media (max-width: 768px) {
            .theme-switcher {
                display: none;
            }
        }
        
        body.dark-theme .theme-switcher {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }
        
        .theme-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            background: transparent;
            color: var(--text-light);
            font-size: 1.2rem;
            cursor: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        body.dark-theme .theme-btn {
            color: var(--text-dark);
        }
        
        .theme-btn.active {
            background: var(--gradient-primary);
            color: white;
            transform: scale(1.1);
            box-shadow: var(--shadow-sm);
        }
        
        .theme-btn:hover:not(.active) {
            background: rgba(46, 231, 214, 0.1);
            transform: scale(1.05);
        }
        
        /* ========== Навигация ========== */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 100;
            padding: 24px 0;
            background: rgba(249, 247, 244, 0.9);
            backdrop-filter: blur(15px);
            transition: var(--transition);
            border-bottom: 1px solid var(--border-light);
        }
        
        body.dark-theme header {
            background: rgba(13, 13, 21, 0.9);
            border-bottom-color: var(--border-dark);
        }
        
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-family: 'JetBrains Mono', monospace;
            font-size: 1.8rem;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-decoration: none;
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: none;
        }
        
        .logo-icon {
            width: 32px;
            height: 32px;
            background: var(--gradient-primary);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
            animation: logoFloat 3s ease-in-out infinite;
        }
        
        @keyframes logoFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-5px) rotate(5deg); }
        }
        
        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }
        
        .nav-links a {
            text-decoration: none;
            color: var(--text-light);
            font-weight: 500;
            padding: 10px 20px;
            border-radius: 50px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            font-family: 'Inter', sans-serif;
            cursor: none;
        }
        
        body.dark-theme .nav-links a {
            color: var(--text-dark);
        }
        
        .nav-links a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: var(--transition);
            transform: translateX(-50%);
        }
        
        .nav-links a:hover::before {
            width: 60%;
        }
        
        .nav-links a:hover {
            background: rgba(46, 231, 214, 0.1);
            transform: translateY(-2px);
        }
        
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(46, 231, 214, 0.1);
    transition: var(--transition);
}

body.dark-theme .mobile-menu-btn {
    color: var(--text-dark);
}
        
.mobile-menu-btn:hover {
    background: rgba(46, 231, 214, 0.2);
    transform: scale(1.05);
}
        
        /* ========== Hero секция ========== */
        .hero {
            padding: 180px 0 120px;
            position: relative;
            overflow: hidden;
        }
        
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
            position: relative;
            z-index: 2;
        }
        
        .hero-title {
            font-size: 5rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 2rem;
            background: linear-gradient(45deg, var(--primary), var(--accent), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: titleGlow 3s ease-in-out infinite alternate;
        }
        
        @keyframes titleGlow {
            0% { filter: drop-shadow(0 0 20px rgba(46, 231, 214, 0.3)); }
            100% { filter: drop-shadow(0 0 40px rgba(138, 79, 255, 0.4)); }
        }
        
        .hero-subtitle {
            font-size: 1.5rem;
            color: var(--text-light);
            opacity: 0.9;
            margin-bottom: 3rem;
            font-family: 'JetBrains Mono', monospace;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        
        body.dark-theme .hero-subtitle {
            color: var(--text-dark);
        }
        
        .hero-tagline {
            display: inline-block;
            padding: 12px 24px;
            background: var(--gradient-glass);
            border-radius: 50px;
            border: 1px solid rgba(46, 231, 214, 0.2);
            margin-bottom: 3rem;
            font-weight: 500;
            backdrop-filter: blur(10px);
            animation: taglinePulse 2s ease-in-out infinite;
        }
        
        @keyframes taglinePulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.02); }
        }
        
        /* ========== Кнопки ========== */
        .btn-group {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 3rem;
        }
        
        .btn {
            padding: 18px 36px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            border: none;
            cursor: none;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            font-family: 'Inter', sans-serif;
            min-width: 200px;
            justify-content: center;
        }
        
        .btn-primary {
            background: var(--gradient-primary);
            color: white;
            box-shadow: var(--shadow-lg);
        }
        
        .btn-primary:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: var(--shadow-hover);
        }
        
        .btn-secondary {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
            backdrop-filter: blur(10px);
        }
        
        .btn-secondary:hover {
            background: rgba(46, 231, 214, 0.1);
            transform: translateY(-5px);
            border-color: var(--accent);
            color: var(--accent);
        }
        
        .btn-outline {
            background: transparent;
            border: 2px solid var(--border-light);
            color: var(--text-light);
        }
        
        body.dark-theme .btn-outline {
            border-color: var(--border-dark);
            color: var(--text-dark);
        }
        
        .btn-outline:hover {
            border-color: var(--primary);
            background: rgba(46, 231, 214, 0.1);
            transform: translateY(-5px);
        }
        
        .btn-small {
            padding: 10px 20px;
            font-size: 0.9rem;
            min-width: auto;
        }
        
        /* ========== Секция принципов ========== */
        .principles-section {
            background: var(--gradient-glass);
            position: relative;
        }
        
        .principles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        
        .principle-card {
            background: var(--card-light);
            border-radius: var(--border-radius-lg);
            padding: 2.5rem;
            text-align: center;
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            cursor: none;
        }
        
        body.dark-theme .principle-card {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }
        
        .principle-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--gradient-primary);
            opacity: 0;
            transition: var(--transition);
            z-index: -1;
        }
        
        .principle-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
            border-color: var(--primary);
        }
        
        .principle-card:hover::before {
            opacity: 0.1;
        }
        
        .principle-icon {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            display: inline-block;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .principle-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-light);
        }
        
        body.dark-theme .principle-card h3 {
            color: var(--text-dark);
        }
        
        /* ========== Секция проектов ========== */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2.5rem;
            margin-top: 3rem;
        }
        
        .project-card {
            background: var(--card-light);
            border-radius: var(--border-radius-lg);
            padding: 2.5rem;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
            height: 100%;
            cursor: none;
        }
        
        body.dark-theme .project-card {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }
        
        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--gradient-primary);
        }
        
        .project-card:hover {
            transform: translateY(-10px) rotateX(5deg);
            box-shadow: var(--shadow-hover);
        }
        
        .project-icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .project-card h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: var(--text-light);
        }
        
        body.dark-theme .project-card h3 {
            color: var(--text-dark);
        }
        
        .project-card p {
            color: var(--text-light);
            opacity: 0.8;
            margin-bottom: 1.5rem;
            font-family: 'JetBrains Mono', monospace;
            flex-grow: 1;
        }
        
        body.dark-theme .project-card p {
            color: var(--text-dark);
        }
        
        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }
        
        .tag {
            background: rgba(46, 231, 214, 0.1);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-family: 'JetBrains Mono', monospace;
            color: var(--primary);
            border: 1px solid rgba(46, 231, 214, 0.2);
        }
        
        body.dark-theme .tag {
            background: rgba(46, 231, 214, 0.15);
        }
        
        .project-buttons {
            display: flex;
            gap: 1rem;
            margin-top: auto;
        }
        
        .project-buttons .btn {
            flex: 1;
            padding: 12px;
            min-width: auto;
            font-size: 0.9rem;
        }
        
        /* ========== Секция навыков ========== */
        .skills-section {
            background: var(--gradient-glass);
        }
        
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 3rem;
            margin-top: 3rem;
        }
        
        .skill-category {
            background: var(--card-light);
            border-radius: var(--border-radius-lg);
            padding: 2.5rem;
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-sm);
            cursor: none;
        }
        
        body.dark-theme .skill-category {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }
        
        .skill-category h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: var(--text-light);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        body.dark-theme .skill-category h3 {
            color: var(--text-dark);
        }
        
        .skill-category h3 i {
            color: var(--primary);
        }
        
        .skill-items {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .skill-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            border-radius: var(--border-radius-sm);
            background: rgba(46, 231, 214, 0.05);
            border: 1px solid rgba(46, 231, 214, 0.1);
            transition: var(--transition);
            cursor: none;
        }
        
        .skill-item:hover {
            background: rgba(46, 231, 214, 0.1);
            transform: translateX(5px);
        }
        
        .skill-name {
            font-weight: 500;
            color: var(--text-light);
        }
        
        body.dark-theme .skill-name {
            color: var(--text-dark);
        }
        
        .skill-level {
            color: var(--primary);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
        }
        
        /* ========== Цитатник ========== */
        .quotes-section .swiper {
            width: 100%;
            height: 400px;
            border-radius: var(--border-radius-lg);
            overflow: hidden;
            margin-top: 3rem;
        }
        
        .swiper-slide {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4rem;
            background: var(--card-light);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border-light);
            cursor: none;
        }
        
        body.dark-theme .swiper-slide {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }
        
        .quote-content {
            max-width: 800px;
            text-align: center;
        }
        
        .quote-text {
            font-size: 1.8rem;
            font-style: italic;
            margin-bottom: 2rem;
            color: var(--text-light);
            line-height: 1.8;
            font-weight: 300;
        }
        
        body.dark-theme .quote-text {
            color: var(--text-dark);
        }
        
        .quote-author {
            font-family: 'JetBrains Mono', monospace;
            color: var(--primary);
            font-weight: 600;
            font-size: 1.1rem;
        }
        
        /* ========== Таймлайн ========== */
        .timeline-section {
            background: var(--gradient-glass);
        }
        
        .timeline {
            max-width: 900px;
            margin: 4rem auto 0;
            position: relative;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 3px;
            height: 100%;
            background: var(--gradient-primary);
            border-radius: 2px;
        }
        
        .timeline-item {
            margin-bottom: 3rem;
            position: relative;
            width: calc(50% - 40px);
        }
        
        .timeline-item:nth-child(odd) {
            left: 0;
            text-align: right;
            padding-right: 60px;
        }
        
        .timeline-item:nth-child(even) {
            left: calc(50% + 40px);
            padding-left: 60px;
        }
        
        .timeline-content {
            background: var(--card-light);
            padding: 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-md);
            position: relative;
            border: 1px solid var(--border-light);
            cursor: none;
        }
        
        body.dark-theme .timeline-content {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            background: var(--gradient-primary);
            border-radius: 50%;
            top: 20px;
            right: -50px;
            z-index: 1;
            box-shadow: var(--shadow-neon);
        }
        
        .timeline-item:nth-child(even)::before {
            right: auto;
            left: -50px;
        }
        
        .timeline-year {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
        }
        
        /* ========== Секция сообществ ========== */
        .communities-section {
            background: var(--gradient-glass);
        }
        
        .communities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        
        .community-card {
            background: var(--card-light);
            border-radius: var(--border-radius-lg);
            padding: 2.5rem;
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            text-align: center;
            cursor: none;
        }
        
        body.dark-theme .community-card {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }
        
        .community-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
            border-color: var(--primary);
        }
        
        .community-icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .community-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-light);
        }
        
        body.dark-theme .community-card h3 {
            color: var(--text-dark);
        }
        
        .community-card p {
            color: var(--text-light);
            opacity: 0.8;
            margin-bottom: 1.5rem;
            font-family: 'JetBrains Mono', monospace;
        }
        
        body.dark-theme .community-card p {
            color: var(--text-dark);
        }
        
        /* ========== Контакты ========== */
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        
        .contact-card {
            background: var(--card-light);
            padding: 2.5rem;
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-md);
            transition: var(--transition);
            text-align: center;
            border: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: none;
        }
        
        body.dark-theme .contact-card {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }
        
        .contact-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
            border-color: var(--primary);
        }
        
        .contact-icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }
        
        .contact-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-light);
        }
        
        body.dark-theme .contact-card h3 {
            color: var(--text-dark);
        }
        
        .contact-card p {
            color: var(--text-light);
            opacity: 0.8;
            margin-bottom: 1.5rem;
            font-family: 'JetBrains Mono', monospace;
        }
        
        body.dark-theme .contact-card p {
            color: var(--text-dark);
        }
        
        .contact-link {
            color: var(--primary);
            text-decoration: none;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 500;
            transition: var(--transition);
        }
        
        .contact-link:hover {
            color: var(--accent);
            text-decoration: underline;
        }
        
        /* ========== Секция резюме ========== */
        .resume-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2.5rem;
            margin-top: 3rem;
        }
        
        .resume-card {
            background: var(--card-light);
            border-radius: var(--border-radius-lg);
            padding: 2.5rem;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
            height: 100%;
            cursor: none;
            text-align: center;
        }
        
        body.dark-theme .resume-card {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }
        
        .resume-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--gradient-secondary);
        }
        
        .resume-card:hover {
            transform: translateY(-10px) rotateX(5deg);
            box-shadow: var(--shadow-hover);
            border-color: var(--secondary);
        }
        
        .resume-icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            background: var(--gradient-secondary);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .resume-card h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: var(--text-light);
        }
        
        body.dark-theme .resume-card h3 {
            color: var(--text-dark);
        }
        
        .resume-card p {
            color: var(--text-light);
            opacity: 0.8;
            margin-bottom: 1.5rem;
            font-family: 'JetBrains Mono', monospace;
            flex-grow: 1;
        }
        
        body.dark-theme .resume-card p {
            color: var(--text-dark);
        }
        
        .resume-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            justify-content: center;
        }
        
        .resume-tag {
            background: rgba(255, 107, 139, 0.1);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-family: 'JetBrains Mono', monospace;
            color: var(--secondary);
            border: 1px solid rgba(255, 107, 139, 0.2);
        }
        
        body.dark-theme .resume-tag {
            background: rgba(255, 107, 139, 0.15);
        }
        
        /* ========== Футер ========== */
        footer {
            background: linear-gradient(135deg, var(--bg-dark) 0%, #1A1A24 100%);
            color: white;
            padding: 4rem 0 2rem;
            position: relative;
            overflow: hidden;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }
        
        .footer-logo {
            font-family: 'JetBrains Mono', monospace;
            font-size: 1.8rem;
            margin-bottom: 1rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .footer-description {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .social-link {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            font-size: 1.2rem;
            transition: var(--transition);
            cursor: none;
        }
        
        .social-link:hover {
            background: var(--gradient-primary);
            transform: translateY(-5px) rotate(10deg);
            box-shadow: var(--shadow-neon);
        }
        
        .footer-links h3 {
            color: white;
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
        }
        
        .footer-links ul {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: none;
        }
        
        .footer-links a:hover {
            color: var(--primary);
            transform: translateX(5px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-family: 'JetBrains Mono', monospace;
            color: rgba(255, 255, 255, 0.7);
        }
        
        /* ========== Адаптивность ========== */
        @media (max-width: 1024px) {
            .hero-title {
                font-size: 4rem;
            }
            
            .section-title {
                font-size: 3rem;
            }
        }
        
       @media (max-width: 1018px) {
            .hero-title {
                font-size: 3rem;
            }
            
            .section-title {
                font-size: 2.5rem;
            }
            
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: var(--card-light);
                flex-direction: column;
                padding: 2rem;
                box-shadow: var(--shadow-lg);
                border-radius: 0 0 var(--border-radius) var(--border-radius);
                border: 1px solid var(--border-light);
                border-top: none;
            }
            
            body.dark-theme .nav-links {
                background: var(--card-dark);
                border-color: var(--border-dark);
            }
            
            .nav-links.active {
                display: flex;
            }
            
            .nav-links:not(.active) {
                display: none;
            }
            
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
            
    
            .section {
                padding: 80px 0;
            }
            
            /* Переключатель темы на мобильных */
            .theme-switcher {
                display: none;
            }
            
            .timeline::before {
                left: 30px;
            }
            
            .timeline-item {
                width: calc(100% - 60px);
                left: 60px !important;
                text-align: left !important;
                padding-left: 60px !important;
                padding-right: 0 !important;
            }
            
            .timeline-item::before {
                left: -45px !important;
                right: auto !important;
            }
            
            .btn {
                min-width: 100%;
            }
            
            .btn-group {
                flex-direction: column;
            }
            
            .project-buttons {
                flex-direction: column;
            }
            
            .resume-grid {
                grid-template-columns: 1fr;
            }
            
            /* На мобильных возвращаем стандартный курсор */
            @media (hover: none) and (pointer: coarse) {
                body {
                    cursor: auto;
                }
                
                .cursor,
                .cursor-follower,
                .cursor-trail {
                    display: none;
                }
                
                .btn,
                .nav-links a,
                .social-link,
                .footer-links a {
                    cursor: pointer;
                }
            }
        }
        
        @media (max-width: 480px) {
            .hero-title {
                font-size: 2.5rem;
            }
            
            .section {
                padding: 80px 0;
            }
            
            .container {
                padding: 0 16px;
            }
            
            .project-card,
            .contact-card,
            .community-card,
            .resume-card {
                padding: 2rem;
            }
        }
        /* ========== ОПТИМИЗИРОВАННАЯ НАВИГАЦИЯ ========== */

/* Уменьшаем отступы между пунктами */
.nav-links {
    display: flex;
    gap: 1.2rem; /* Было 2rem */
    list-style: none;
}

/* Для варианта 1: Иконки + текст */
.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 10px 15px; /* Было 10px 20px */
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    cursor: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem; /* Чуть уменьшаем шрифт */
}

/* Скрываем текст на мобильных */
.nav-text {
    display: none;
}

/* Для варианта 2: Только иконки */
.nav-links.icons-only a {
    padding: 10px 12px;
    justify-content: center;
}

.nav-links.icons-only .nav-text {
    display: none;
}

/* Уменьшаем иконки в навигации */
.nav-links i {
    font-size: 1.1rem;
}

/* Адаптивность для навигации */
@media (max-width: 1100px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Стили для открытого мобильного меню */
@media (max-width: 1018px) {
    .nav-text {
        display: inline;
    }
    .nav-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-light);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        border: 1px solid var(--border-light);
        border-top: none;
        z-index: 1000;
    }
    
    body.dark-theme .nav-links.active {
        background: var(--card-dark);
        border-color: var(--border-dark);
    }
}
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-links a {
        padding: 12px 20px;
        justify-content: flex-start;
    }
    
    .nav-text {
        display: inline;
    }
}

/* Подсказки для иконок (только для десктопа) */
@media (min-width: 769px) {
    .nav-links a[title] {
        position: relative;
    }
    
    .nav-links a[title]:hover::after {
        content: attr(title);
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--card-dark);
        color: white;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.8rem;
        white-space: nowrap;
        z-index: 1000;
        margin-top: 8px;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-dark);
    }
    
    body.dark-theme .nav-links a[title]:hover::after {
        background: var(--card-light);
        color: var(--text-light);
        border-color: var(--border-light);
    }
}