/* Стили для хештегов и шаринга */
.hashtags-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

.social-share {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.share-button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.share-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Footer Styles */
.site-footer {
    background: rgba(15, 23, 42, 0.8);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 600px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .footer-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* Основные стили */
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;500;600;700&family=Source+Code+Pro:wght@400;500;700&display=swap');

/* Основные переменные (тёмная тема) */
:root {
    --primary: #3a86ff;
    --primary-dark: #2667cc;
    --accent: #ff006e;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --card-bg: #1e293b;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'SF Pro Display', -apple-system, Arial, sans-serif;
    text-align: center;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Вендорные префиксы для анимаций */
@-webkit-keyframes fadeIn {
    from { opacity: 0; -webkit-transform: translateY(20px); }
    to { opacity: 1; -webkit-transform: translateY(0); }
}

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

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

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

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

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

/* Вспомогательные классы */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Хедер */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 1.5rem 0;
    padding-top: 1rem;
}

/* Форма поиска */
.search-form {
    display: flex;
    margin: 1rem 0;
    max-width: 400px;
    margin: 1rem auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px 0 0 20px;
    background: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.search-form button {
    padding: 0 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Навигация */
.nav-toggle {
    display: none;  
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-toggle .hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    position: relative;
    transition: var(--transition);
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    left: 0;
    transition: var(--transition);
}

.nav-toggle .hamburger::before {
    top: -8px;
}

.nav-toggle .hamburger::after {
    bottom: -8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-menu {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 2rem;
}

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

.nav-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100%;
        background: var(--dark);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        padding: 5rem 1.5rem 2rem;
        margin: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        right: 0;
    }
    
    .nav-menu.active {
        right: -300px;
    }
}

/* Skills Section */
.skills-section {
    margin: 3rem 0;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-category-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

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

.skill-item {
    padding: 0.7rem 0;
    color: var(--light);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.skill-item::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.5rem;
    font-size: 1.2em;
    line-height: 1;
}

.skill-desc {
    display: block;
    color: var(--gray);
    font-size: 0.9em;
    margin-top: 0.2rem;
    margin-left: 0.5rem;
}

/* Заголовки секций */
.section-title {
    font-size: 2rem;
    color: var(--light);
    margin: 2rem 0 1.5rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-dark);
}

.nav__menu {
    display: flex;
    gap: 2rem;
}

.nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

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

.nav__link:hover::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
    background: #000000;
    padding: 0.45rem;
    border-radius: 8px;
    transition: var(--transition);
    position: fixed;
    top: 1.35rem;
    right: 1.5rem;
    z-index: 1001;
}

.nav__toggle:hover {
    background: #1a1a1a;
}

.nav__bar {
    width: 22.5px;
    height: 1.8px;
    background: #ffffff;
    transition: var(--transition);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active .nav__bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
        background: #ffffff;
    }

    .nav__toggle.active .nav__bar:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active .nav__bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: #ffffff;
    }
}

/* Основной контент */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 2rem;
    position: relative;
    z-index: 1;
    margin-top: 180px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(to right, transparent, var(--bg-color));
    pointer-events: none;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    padding: 0;
    margin: 0;
    list-style: none;
}

.marquee-container.second {
    margin: 40px 0;
}

.marquee.second {
    animation: marquee 15s linear infinite;
    animation-direction: reverse;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.main-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1rem 0;
}

/* Skills Section */
.skills {
    padding: 4rem 0;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-category__title {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

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

.skill {
    padding: 0.7rem 0;
    color: var(--light);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    text-align: left;
}

.skill::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.5rem;
    font-size: 1.2em;
    line-height: 1;
}

.large-text {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 3rem 0 1rem;
    line-height: 1.2;
}

h1 {
    font-family: 'Halvar Breitschrift', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out forwards;
    letter-spacing: -0.5px;
}

.profile-photo {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.5);
}

.profile-photo img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.profile-photo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to right, transparent, rgba(58, 134, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.profile-photo:hover::after {
    opacity: 1;
}

/* Кнопки */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

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

/* Секции */
.section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Карточки проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: calc(0.1s * var(--i));
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 25px;
    text-align: left;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--light);
}

.project-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* О себе */
.about-me {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    text-align: left;
    line-height: 1.8;
}

.about-me p {
    margin-bottom: 20px;
}

.emoji {
    font-size: 1.2em;
    margin-right: 8px;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9em;
    color: #7dd3fc;
}

.highlight {
    color: var(--primary);
    font-weight: 500;
}

.contact-links {
    margin-top: 30px;
    font-size: 1.1em;
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hashtags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    color: var(--gray);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .profile-photo {
        width: 360px;
        height: 360px;
        margin: 2rem auto;
    }
    
    .profile-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .profile-photo {
        width: 320px;
        height: 320px;
    }
}

/* Футер */
.footer {
    margin-top: 60px;
    padding: 20px 0;
    font-size: 0.9em;
    color: var(--gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-note {
    margin-top: 10px;
    font-size: 0.9em;
    color: #a1a1a6;
}

/* Кнопки */
.buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.button-link {
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    opacity: 0;
    -webkit-animation: fadeInUp 0.5s ease-in-out forwards;
    -moz-animation: fadeInUp 0.5s ease-in-out forwards;
    animation: fadeInUp 0.5s ease-in-out forwards;
    -webkit-animation-delay: calc(0.1s * var(--i));
    -moz-animation-delay: calc(0.1s * var(--i));
    animation-delay: calc(0.1s * var(--i));
    position: relative;
    overflow: hidden;
}

.button-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1CEB87, #1CEB87);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.button-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(28, 235, 135, 0.2);
    border-color: #1CEB87;
}

.button-link:hover i {
    transform: scale(1.1);
    color: #1CEB87;
}

/* Медиа-запросы для адаптивности */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    /* Специфичные стили для WebKit браузеров */
    .button-link {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

@supports (-moz-appearance:none) {
    /* Специфичные стили для Firefox */
    .button-link {
        -moz-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

@supports (-ms-ime-align:auto) {
    /* Специфичные стили для Edge */
    .button-link {
        -ms-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Адаптивность для кнопок */
@media (max-width: 1024px) {
    .buttons {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .button-link {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .button-link {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .button-link i {
        font-size: 1.1rem;
    }
}

/* Стили для уведомлений об ошибках */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ef4444;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Анимация печатающегося текста */
.typing {
    display: inline-block;
    position: relative;
    color: #1CEB87;
    font-weight: 600;
    animation: typing 12s linear infinite;
}

@keyframes typing {
    0%, 100% { clip-path: inset(0 100% 0 0); }
    5%, 30% { clip-path: inset(0 0 0 0); }
    35%, 65% { clip-path: inset(0 100% 0 0); }
    70%, 95% { clip-path: inset(0 0 0 0); }
}

.typing::after {
    content: '|';
    position: absolute;
    right: -3px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Стили для разных слов */
.typing[data-text="HTML"]::before {
    content: "HTML";
}

.typing[data-text="CSS"]::before {
    content: "CSS";
}

.typing[data-text="JavaScript"]::before {
    content: "JavaScript";
}

.typing[data-text="Frontend-разработке"]::before {
    content: "Frontend-разработке";
}

.nav__logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.nav__logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .nav__logo {
        position: fixed;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
    }
}

