* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Courier New', monospace;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Canvas фон */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

/* Шапка */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #333;
    margin-bottom: 0; /* Убираем margin-bottom */
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #888888;
}

/* Главный блок */
.hero {
    text-align: center;
    padding: 4rem 0;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #888888;
    margin-bottom: 2rem;
}

.btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: #333333;
    color: #ffffff;
    transform: scale(1.05);
}

/* Секции */
section {
    margin: 5rem 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -1px;
}

/* ========== ОБЪЕДИНЁННЫЙ БЛОК (HERO + ABOUT как на deelter) ========== */
.hero-about {
    min-height: auto; /* Меняем с 100vh на auto */
    display: flex;
    align-items: center;
    padding: 2rem 0 2rem 0; /* Уменьшаем верхний отступ */
    position: relative;
}

.hero-about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

/* Фото */
.hero-about-photo {
    position: relative;
}

.photo-frame {
    position: relative;
    border: 2px solid #333;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.photo-frame:hover {
    border-color: #fff;
    transform: translateY(-5px);
}

#profilePhoto {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

#profilePhoto:hover {
    filter: grayscale(0%);
}

/* Контент */
.hero-about-content {
    padding: 0.5rem 0;
}

/* Приветствие */
.greeting {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.greeting-icon {
    font-size: 2.5rem;
    background: #1a1a1a;
    padding: 0.8rem;
    border-radius: 50%;
    border: 1px solid #333;
}

.greeting h1 {
    font-size: 3rem;
    margin: 0;
}

.highlight {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    border-bottom: 2px solid #fff;
}

/* Описание */
.hero-description {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Сетка достижений */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    transition: all 0.3s;
}

.achievement-item:hover {
    border-color: #fff;
    transform: translateX(5px);
}

.achievement-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.achievement-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.achievement-desc {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

/* Статистика */
.stats-row {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #222;
}

.stat-card {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #fff;
    transform: translateY(-3px);
}

.stat-card .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 1px;
}

/* Кнопка */
.contact-wrapper {
    position: relative;
    display: inline-block;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-large:hover {
    background: #333;
    color: #fff;
    transform: scale(1.05);
}

/* Выпадающее меню */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: #0a0a0a;
    border: 1px solid #333;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.dropdown.show {
    opacity: 1;
    visibility: visible;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown a:hover {
    background: #ffffff;
    color: #000000;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .greeting h1 {
        font-size: 2rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .greeting-icon {
        font-size: 1.8rem;
        padding: 0.5rem;
    }
    
    .hero-about {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* Табы */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid #333;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    color: #ffffff;
}

.tab-btn.active {
    background: #ffffff;
    color: #000000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Сетка навыков */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.skill-card:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-5px);
}

/* Фильтры */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: #ffffff;
}

.filter-btn.active,
.filter-btn:hover {
    background: #ffffff;
    color: #000000;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #0a0a0a;
    border: 1px solid #222;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #555;
}

.project-img {
    width: 100%;
    height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-tag {
    display: inline-block;
    background: #1a1a1a;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #ffffff;
}

/* Контакты */
.contact {
    text-align: center;
}

.contact-wrapper {
    position: relative;
    display: inline-block;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Выпадающее меню */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: #0a0a0a;
    border: 1px solid #333;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.dropdown.show {
    opacity: 1;
    visibility: visible;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown a:hover {
    background: #ffffff;
    color: #000000;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid #333;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalFade 0.3s;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #ffffff;
}

.close:hover {
    color: #888888;
}

#modal-body {
    padding: 2rem;
}

/* Подвал */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #222;
    margin-top: 4rem;
    color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav a {
        margin: 0 1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
}
/* ========== НОВАЯ СЕКЦИЯ ОБО МНЕ (стиль deelter) ========== */
.about-wrapper {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

/* Фото */
.about-photo {
    position: relative;
}

.photo-frame {
    position: relative;
    border: 2px solid #333;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.photo-frame:hover {
    border-color: #fff;
    transform: translateY(-5px);
}

#profilePhoto {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

#profilePhoto:hover {
    filter: grayscale(0%);
}

/* Контент */
.about-content {
    padding: 0.5rem 0;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-icon {
    font-size: 2.5rem;
    background: #1a1a1a;
    padding: 0.8rem;
    border-radius: 50%;
    border: 1px solid #333;
}

.about-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.about-description {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Сетка достижений (как на deelter) */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    transition: all 0.3s;
}

.achievement-item:hover {
    border-color: #fff;
    transform: translateX(5px);
}

.achievement-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.achievement-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.achievement-desc {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

/* Статистика */
.stats-row {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #222;
}

.stat-card {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #fff;
    transform: translateY(-3px);
}

.stat-card .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 1px;
}

/* Адаптивность для about */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .about-header h3 {
        font-size: 1.4rem;
    }
    
    .about-icon {
        font-size: 1.8rem;
        padding: 0.5rem;
    }
}

/* ========== ГЛОБАЛЬНЫЕ ЗАКРУГЛЕНИЯ ========== */

/* Основные блоки */
.photo-frame,
.achievement-item,
.stat-card,
.skill-card,
.project-card,
.tab-btn,
.filter-btn,
.btn,
.dropdown,
.modal-content,
.hero-about-wrapper,
.about-wrapper {
    border-radius: 16px;
}

/* Разные степени закругления */
.photo-frame {
    border-radius: 20px;
}

.achievement-item {
    border-radius: 14px;
}

.stat-card {
    border-radius: 12px;
}

.skill-card {
    border-radius: 12px;
}

.project-card {
    border-radius: 16px;
}

.project-img {
    border-radius: 16px 16px 0 0;
}

/* Кнопки */
.btn, .tab-btn, .filter-btn {
    border-radius: 30px; /* Сильнее закруглены как таблетки */
}

/* Выпадающее меню */
.dropdown {
    border-radius: 12px;
}

/* Модальное окно */
.modal-content {
    border-radius: 24px;
}

/* Форма */
input, textarea {
    border-radius: 10px;
}

/* Контейнеры */
.container {
    border-radius: 0; /* Оставляем без закругления */
}

/* Дополнительные элементы */
.skills-grid,
.projects-grid,
.achievements-grid {
    border-radius: 0;
}

.stats-row {
    border-radius: 0;
}

/* Ховер эффекты с закруглениями */
.achievement-item:hover,
.stat-card:hover,
.skill-card:hover,
.project-card:hover {
    border-radius: 16px;
}


/* Убираем старые громоздкие блоки achievements-grid и stats-row */
.achievements-grid,
.stats-row {
    display: none; /* Прячем старые жирные блоки */
}

/* ========== НАВЫКИ И ИНСТРУМЕНТЫ - 3 КОЛОНКИ ========== */
.skills {
    margin: 4rem 0;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid #333;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    color: #ffffff;
    border-radius: 30px;
}

.tab-btn.active {
    background: #ffffff;
    color: #000000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ГЛАВНАЯ СЕТКА - 3 КОЛОНКИ */
.skills-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
}

.skill-card {
    background: #0a0a0a !important;
    border: 1px solid #222 !important;
    border-radius: 12px !important;
    padding: 0.8rem 1rem !important;
    text-align: center !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
}

.skill-card:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-3px) !important;
    border-color: #fff !important;
}
/* ========== СЕКЦИЯ О СЕБЕ ========== */
.about-section {
    margin: 4rem 0;
    padding: 2rem;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 20px;
}

.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

/* Фото */
.about-photo {
    position: relative;
}

.about-photo .photo-frame {
    position: relative;
    border: 2px solid #333;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.about-photo .photo-frame:hover {
    border-color: #fff;
    transform: translateY(-5px);
}

.about-photo #profilePhoto {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.about-photo #profilePhoto:hover {
    filter: grayscale(0%);
}

/* Контент */
.about-content {
    padding: 0.5rem 0;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-icon {
    font-size: 2.5rem;
    background: #1a1a1a;
    padding: 0.8rem;
    border-radius: 50%;
    border: 1px solid #333;
}

.about-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.about-description {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Достижения */
.about-achievements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    transition: all 0.3s;
}

.about-achievement-item:hover {
    border-color: #fff;
    transform: translateX(5px);
}

.about-achievement-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.about-achievement-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    color: #ffffff;
}

.about-achievement-desc {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

/* Статистика */
.about-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #222;
}

.about-stat-card {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    transition: all 0.3s;
}

.about-stat-card:hover {
    border-color: #fff;
    transform: translateY(-3px);
}

.about-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.about-stat-label {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 1px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-achievements {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .about-header h3 {
        font-size: 1.4rem;
    }
    
    .about-icon {
        font-size: 1.8rem;
        padding: 0.5rem;
    }
    
    .about-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 1rem;
    }
    
    .about-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ========== */

/* Анимация для карточек */
.skill-card, .project-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

/* Улучшенные кнопки фильтров */
.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.filter-btn:hover {
    transform: translateY(-2px);
}

/* Улучшенные карточки проектов */
.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Кнопка закрытия модалки */
.modal-close-btn:hover {
    background: #333 !important;
    color: #fff !important;
    transform: scale(1.05);
}

/* Анимация для дропдауна */
.dropdown {
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}

/* Стили для иконок в навыках */
.skill-card i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .skill-card {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    .project-img {
        height: 150px;
        font-size: 2.5rem;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
    }
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Улучшенный hover для кнопок */
.btn, .tab-btn, .filter-btn {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.btn:active, .tab-btn:active, .filter-btn:active {
    transform: scale(0.95);
}

/* ========== СТИЛИ ДЛЯ КОМПАКТНЫХ НАВЫКОВ (с обводкой) ========== */
.skills-compact-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    margin: 1.5rem 0 2rem 0 !important;
}

.skill-compact-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.8rem 1rem !important;
    background: #0a0a0a !important;
    border: 2px solid #333 !important;  /* Явная обводка */
    border-radius: 14px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.skill-compact-item:hover {
    border-color: #fff !important;
    background: #111 !important;
    transform: translateX(5px) !important;
}

.skill-compact-item i {
    font-size: 1.5rem !important;
    color: #FF337D !important;
    min-width: 32px !important;
}

.skill-compact-item span {
    color: #ddd !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

/* ========== СТИЛИ ДЛЯ КАРТОЧЕК НАВЫКОВ С ИКОНКАМИ ========== */
.skill-card {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: #0a0a0a !important;
    border: 2px solid #333 !important;  /* Явная обводка */
    border-radius: 14px !important;
    padding: 1rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}

.skill-card i {
    font-size: 1.5rem !important;
    color: #FF337D !important;
}

.skill-card:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-3px) !important;
    border-color: #fff !important;
}

.skill-card:hover i {
    color: #000000 !important;
}

/* ========== СЕТКА НАВЫКОВ 3 КОЛОНКИ ========== */
.skills-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
}

/* ========== АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .skills-compact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .skill-compact-item {
        padding: 0.6rem 0.8rem !important;
    }
    
    .skill-compact-item i {
        font-size: 1.2rem !important;
    }
    
    .skill-compact-item span {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .skills-compact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr !important;
    }
}



/* ========== УЛУЧШЕННЫЕ КНОПКИ ========== */
.filter-btn, .tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 30px !important;
}

.filter-btn:hover, .tab-btn:hover {
    transform: translateY(-2px);
}

/* ========== ПРОЕКТЫ ========== */
.projects {
    margin: 4rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #0a0a0a !important;
    border: 2px solid #333 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.project-card:hover {
    transform: translateY(-5px) !important;
    border-color: #fff !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
}

.project-img {
    width: 100%;
    height: 180px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.project-info {
    padding: 1.2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #fff;
}

.project-info p {
    color: #888888;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.project-tag {
    display: inline-block;
    background: #1a1a1a;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: #ffffff;
    border-radius: 20px;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-close-btn:hover {
    background: #333 !important;
    color: #fff !important;
    transform: scale(1.05);
}

/* ========== ДРОПДАУН ========== */
.dropdown {
    border: 2px solid #333 !important;
    border-radius: 14px !important;
}

/* ========== СТИЛИ ДЛЯ КОМПАКТНЫХ НАВЫКОВ (с обводкой) ========== */
.skills-compact-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    margin: 1.5rem 0 2rem 0 !important;
}

.skill-compact-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.8rem 1rem !important;
    background: #0a0a0a !important;
    border: 2px solid #333 !important;
    border-radius: 14px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.skill-compact-item:hover {
    border-color: #fff !important;
    background: #111 !important;
    transform: translateX(5px) !important;
}

.skill-compact-item i {
    font-size: 1.5rem !important;
    color: #ffffff !important;  /* БЕЛЫЙ цвет */
    min-width: 32px !important;
}

.skill-compact-item span {
    color: #ddd !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

/* ========== СТИЛИ ДЛЯ КАРТОЧЕК НАВЫКОВ ========== */
.skill-card {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: #0a0a0a !important;
    border: 2px solid #333 !important;
    border-radius: 14px !important;
    padding: 1rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}

.skill-card i {
    font-size: 1.5rem !important;
    color: #ffffff !important;  /* БЕЛЫЙ цвет */
}

.skill-card:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-3px) !important;
    border-color: #fff !important;
}

.skill-card:hover i {
    color: #000000 !important;
}

/* ========== СЕТКА НАВЫКОВ 3 КОЛОНКИ ========== */
.skills-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
}

/* ========== АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .skills-compact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .skill-compact-item {
        padding: 0.6rem 0.8rem !important;
    }
    
    .skill-compact-item i {
        font-size: 1.2rem !important;
    }
    
    .skill-compact-item span {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .skills-compact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr !important;
    }
}



/* ========== УЛУЧШЕННЫЕ КНОПКИ ========== */
.filter-btn, .tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 30px !important;
}

.filter-btn:hover, .tab-btn:hover {
    transform: translateY(-2px);
}

/* ========== ИКОНКИ В КАРТОЧКАХ ========== */
.skill-card i,
.skill-compact-item i {
    color: #ffffff !important;
    font-size: 1.3rem !important;
}

.skill-card:hover i {
    color: #000000 !important;
}

.skill-compact-item:hover i {
    color: #ffffff !important;
}

/* ========== КНОПКА КАК НА DEELTER ========== */
.contact-wrapper {
    position: relative;
    display: inline-block;
}

.btn-large {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-large i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

/* Анимация как на deelter */
.btn-large::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #333333;
    z-index: -1;
    transition: width 0.4s ease-out;
    border-radius: 40px;
}

.btn-large:hover::before {
    width: 100%;
}

.btn-large:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-large:hover i {
    transform: scale(1.1);
}

.btn-large:active {
    transform: translateY(0);
}

/* Выпадающее меню */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 16px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.dropdown a i {
    font-size: 1.2rem;
    color: #ffffff;
    transition: all 0.2s;
}

.dropdown a:hover {
    background: #ffffff;
    color: #000000;
}

.dropdown a:hover i {
    color: #000000;
}

.dropdown a:first-child {
    border-radius: 16px 16px 0 0;
}

.dropdown a:last-child {
    border-radius: 0 0 16px 16px;
}

/* ========== ПОДВАЛ КАК НА DEELTER ========== */
.site-footer {
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 30px;
}

.footer-link i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.footer-link:hover {
    color: #ffffff;
    background: #1a1a1a;
}

.footer-link:hover i {
    transform: translateY(-2px);
}

.footer-separator {
    color: #333;
    font-size: 0.8rem;
}

.footer-copyright p {
    color: #555;
    font-size: 0.8rem;
    margin: 0;
}

/* Адаптивность подвала */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-link {
        padding: 8px 16px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ========== КВАДРАТНЫЕ ФОТО ДЛЯ ПРОЕКТОВ ========== */
.project-img {
    width: 100%;
    aspect-ratio: 1 / 1;  /* Квадрат 1:1 */
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Обрезает лишнее и центрирует */
    transition: transform 0.3s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);  /* Увеличение при наведении как на deelter */
}

/* Если нет фото — показываем эмодзи */
.project-img:has(img[src=""]) {
    font-size: 4rem;
}

