/* Импорт шрифтов */
/* Оптимизированная загрузка шрифтов с preload и fallback */

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Дополнительные элементы проектов */
.project-details {
    margin: 1.5rem 0;
}

.project-note {
    background: rgba(72, 219, 251, 0.1);
    border-left: 4px solid #48dbfb;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(72, 219, 251, 0.2);
}

.project-note i {
    color: #48dbfb;
    margin-right: 0.5rem;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    /* transition: all 0.3s ease; */
}

.feature-highlight:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
    transform: translateX(10px);
}

.feature-highlight i {
    font-size: 1.5rem;
    color: #ff6b6b;
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5));
}

.feature-highlight span {
    color: white;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
    font-size: 0.95rem;
}

.ai-tag {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(72, 219, 251, 0.2));
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.ai-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.3), transparent);
    /* transition: left 0.5s ease; */
}

.ai-tag:hover::before {
    left: 100%;
}

.ai-tag:hover {
    color: white;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.4), rgba(72, 219, 251, 0.4));
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Основные стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    background: #0a0a0a;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
            linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: -2;
    /* animation: gradientShift 8s ease-in-out infinite; */
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.container {
    position: relative;
    min-height: 100vh;
}

/* Фоновые элементы */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.05), rgba(120, 219, 255, 0.1));
    backdrop-filter: blur(40px);
    /* animation: float 8s ease-in-out infinite; */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
            0 8px 32px rgba(31, 38, 135, 0.37),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 5%;
    left: -10%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(254, 202, 87, 0.1));
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: -10%;
    animation-delay: 3s;
    background: linear-gradient(45deg, rgba(72, 219, 251, 0.1), rgba(118, 75, 162, 0.1));
}

.shape-3 {
    width: 250px;
    height: 250px;
    top: 25%;
    right: 15%;
    animation-delay: 6s;
    background: linear-gradient(45deg, rgba(255, 119, 198, 0.1), rgba(120, 119, 198, 0.1));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-30px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translateY(15px) rotate(240deg) scale(0.9);
    }
}

/* Глобальный эффект стекла */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
            0 8px 32px rgba(31, 38, 135, 0.37),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* transition: all 0.3s ease; */
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    /* animation: shine 3s infinite; */
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
    position: relative;
}

.nav-brand::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff6b6b);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    /* transition: opacity 0.3s ease; */
    background-size: 300% 300%;
    /* animation: gradientRotate 3s linear infinite; */
}

.nav-brand:hover::before {
    opacity: 0.7;
}

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

.nav-brand i {
    font-size: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    /* animation: gradientRotate 3s linear infinite; */
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5));
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    /* transition: all 0.3s ease; */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
    letter-spacing: 1px;
}

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

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

.contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
            0 30px 60px rgba(255, 107, 107, 0.6),
            0 0 40px rgba(255, 255, 255, 0.2);
    filter: brightness(1.2);
}

/* Подвал */
.footer {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    /* transition: all 0.4s ease; */
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    opacity: 0;
    /* transition: opacity 0.3s ease; */
    z-index: -1;
}

.social-links a:hover::before {
    opacity: 0.2;
}

.social-links a:hover {
    color: white;
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        /* transition: right 0.4s ease; */
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        margin: 0.5rem 0;
        width: 80%;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }

    .burger {
        display: flex;
    }

    .burger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-8px, 6px);
    }

    .burger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .burger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -6px);
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.1rem;
        max-width: none;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-image {
        height: 400px;
        order: 1;
        margin-top: 2rem;
    }

    .floating-card {
        min-width: 100px;
        padding: 1.2rem;
    }

    .floating-card i {
        font-size: 1.8rem;
    }

    .floating-card span {
        font-size: 0.8rem;
    }

    .section-content {
        padding: 0 1rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        flex-direction: column;
        gap: 1rem;
    }

    .section-title::before,
    .section-title::after {
        max-width: 50px;
    }

    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card,
    .service-card {
        padding: 2rem 1.5rem;
    }

    .tech-stack {
        gap: 0.5rem;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .ai-features {
        gap: 0.8rem;
    }

    .feature-highlight {
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }

    .feature-highlight i {
        font-size: 1.2rem;
    }

    .feature-highlight span {
        font-size: 0.85rem;
    }

    .contact-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

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

    .nav-brand {
        font-size: 1.4rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .greeting {
        font-size: 1.1rem;
    }

    .projects,
    .services,
    .contact {
        padding: 4rem 0;
    }

    .floating-card {
        min-width: 80px;
        padding: 1rem;
    }

    .card-1 {
        top: 10%;
        left: 10%;
    }

    .card-2 {
        top: 10%;
        right: 10%;
    }

    .card-3 {
        bottom: 10%;
        left: 10%;
    }

    .card-4 {
        bottom: 10%;
        right: 10%;
    }
}

/* Дополнительные анимации */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 107, 0.6);
    }
}

.btn-primary:hover {
    /* animation: glow 2s infinite; */
}

/* Эффект печатания для заголовков */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #feca57; }
}

/* Плавное появление элементов */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    /* transition: all 0.8s ease; */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Эффект параллакса для фоновых элементов */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #feca57, #48dbfb);
}

/* Улучшенная типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.7;
}

/* Дополнительные утилиты */
.text-gradient {
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    border-radius: 8px;
    opacity: 0;
    /* transition: opacity 0.3s ease; */
    z-index: -1;
}

.nav-links a:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.nav-links a:hover::before {
    opacity: 0.2;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    /* transition: all 0.3s ease; */
}

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

.burger span {
    width: 30px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    /* transition: all 0.3s ease; */
    border-radius: 2px;
}

/* Главная секция */
.hero {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.greeting {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
}

.greeting::before {
    content: '>';
    color: #feca57;
    font-weight: bold;
    /* animation: blink 2s infinite; */
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.wave {
    font-size: 2rem;
    /* transition: transform 0.3s ease; */
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

.gradient-text {
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientRotate 4s ease-in-out infinite;
    position: relative;
    text-shadow: 0 0 50px rgba(255, 107, 107, 0.5);
}

.gradient-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
    position: relative;
}

.hero-subtitle::before {
    content: '// ';
    color: #48dbfb;
    opacity: 0.7;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    /* transition: all 0.4s ease; */
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    box-shadow:
            0 15px 35px rgba(255, 107, 107, 0.4),
            0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
            0 25px 50px rgba(255, 107, 107, 0.6),
            0 10px 30px rgba(0, 0, 0, 0.2);
    filter: brightness(1.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

/* Изображение героя */
.hero-image {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    text-align: center;
    min-width: 140px;
    /* transition: all 0.4s ease; */
    /* animation: cardFloat 6s ease-in-out infinite; */
    box-shadow:
            0 15px 35px rgba(31, 38, 135, 0.37),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
    font-weight: 600;
}

.floating-card:hover {
    transform: scale(1.15) translateY(-15px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow:
            0 25px 50px rgba(31, 38, 135, 0.5),
            0 0 30px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-1 {
    top: 8%;
    left: 5%;
    animation-delay: 0s;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(254, 202, 87, 0.1));
}

.card-2 {
    top: 15%;
    right: 0%;
    animation-delay: 1.5s;
    background: linear-gradient(135deg, rgba(72, 219, 251, 0.1), rgba(118, 75, 162, 0.1));
}

.card-3 {
    bottom: 35%;
    left: -5%;
    animation-delay: 3s;
    background: linear-gradient(135deg, rgba(255, 119, 198, 0.1), rgba(120, 119, 198, 0.1));
}

.card-4 {
    bottom: 8%;
    right: 15%;
    animation-delay: 4.5s;
    background: linear-gradient(135deg, rgba(120, 219, 255, 0.1), rgba(255, 107, 107, 0.1));
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    25% {
        transform: translateY(-20px) rotateY(5deg);
    }
    50% {
        transform: translateY(-35px) rotateY(0deg);
    }
    75% {
        transform: translateY(-20px) rotateY(-5deg);
    }
}

.floating-card i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    /* animation: gradientRotate 3s linear infinite; */
    filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.5));
}

/* Общие стили секций */
.section-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    max-width: 100px;
}

.section-title i {
    font-size: 3rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    /* animation: gradientRotate 3s linear infinite; */
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.5));
}

/* Секция проектов */
.projects {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 30% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 70% 80%, rgba(72, 219, 251, 0.1) 0%, transparent 50%);
    z-index: -1;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 3rem;
    /* transition: all 0.5s ease; */
    position: relative;
    overflow: hidden;
    box-shadow:
            0 20px 40px rgba(31, 38, 135, 0.37),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
            0 30px 60px rgba(31, 38, 135, 0.5),
            0 0 40px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
    line-height: 1.3;
}

.project-link {
    color: #feca57;
    font-size: 1.5rem;
    text-decoration: none;
    /* transition: all 0.3s ease; */
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(254, 202, 87, 0.1);
    backdrop-filter: blur(10px);
}

.project-link:hover {
    transform: scale(1.3) rotate(15deg);
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.15), rgba(254, 202, 87, 0.15));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    /* transition: all 0.3s ease; */
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
}

.tech-tag:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.3), rgba(254, 202, 87, 0.3));
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Секция услуг */
.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    /* transition: all 0.5s ease; */
    position: relative;
    overflow: hidden;
    box-shadow:
            0 20px 40px rgba(31, 38, 135, 0.37),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.05), rgba(254, 202, 87, 0.05));
    opacity: 0;
    /* transition: opacity 0.3s ease; */
}

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

.service-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
            0 30px 60px rgba(31, 38, 135, 0.5),
            0 0 40px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    border-radius: 50%;
    font-size: 2.5rem;
    color: white;
    position: relative;
    box-shadow:
            0 20px 40px rgba(255, 107, 107, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff6b6b);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    /* transition: opacity 0.3s ease; */
    background-size: 300% 300%;
    /* animation: gradientRotate 3s linear infinite; */
}

.service-card:hover .service-icon::before {
    opacity: 0.7;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Секция контактов */
.contact {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 50% 50%, rgba(72, 219, 251, 0.1) 0%, transparent 70%);
    z-index: -1;
}

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

.contact-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    /* transition: all 0.5s ease; */
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Consolas', monospace;
    text-transform: uppercase;
}