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

html,
body {
    background-color: #0A0F1A;
    font-family: 'Inter', sans-serif;
    color: #E6F1FF;
    line-height: 1.5;
    overflow-x: hidden;
}

:root {
    --bg-dark: #0A0F1A;
    --bg-card: #0F1728;
    --accent-cyan: #7892e7;
    --accent-glow: rgba(40, 129, 211, 0.25);
    --accent-purple: #8B5CF6;
    --text-light: #F0F9FF;
    --text-dim: #9CA3AF;
    --border-dim: #1E2A3A;
    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.bg-animate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 20% 30%, #0A1122, #020617);
}

.moving-gradient {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 50%, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
    animation: breathe 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.grid-lines {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(45, 212, 191, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: shiftGrid 20s linear infinite;
    pointer-events: none;
}

@keyframes shiftGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s;
    opacity: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
}

header {
    padding: 20px 0;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 26, 0.7);
    border-bottom: 1px solid rgba(45, 212, 191, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF, #7892e7, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.1);
    }
}

.logo p {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    background: transparent;
    border: 1.5px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(45, 151, 212, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline:hover {
    background: rgba(45, 212, 191, 0.1);
    transform: translateY(-2px);
}

.page-header {
    padding: 60px 0 40px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF, var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    text-align: center;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-bottom: 80px;
}

.project-detail-card {
    background: linear-gradient(135deg, rgba(15, 23, 40, 0.7), rgba(10, 15, 26, 0.9));
    border-radius: 40px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(45, 212, 191, 0.2);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    overflow: hidden;
}

.project-detail-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 30px 40px -20px rgba(45, 159, 212, 0.3);
}

.project-content {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding: 40px;
}

.project-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--accent-cyan);
    transition: transform 0.3s;
}

.project-detail-card:hover .project-icon {
    transform: scale(1.05) rotate(5deg);
}

.project-info {
    flex: 1;
}

.project-info h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.project-short-desc {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 16px;
}

.project-full-desc {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 24px;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tech-badge {
    background: rgba(45, 212, 191, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tech-badge:hover {
    background: var(--accent-cyan);
    color: #0A0F1A;
    transform: translateY(-2px);
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-cyan), #1a759f);
    color: #0A0F1A;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.project-link-btn:hover {
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(45, 117, 212, 0.4);
}

.back-home {
    margin: 40px 0;
    text-align: center;
}

footer {
    border-top: 1px solid var(--border-dim);
    padding: 32px 0;
    text-align: center;
    color: var(--text-dim);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/*Адаптив*/

@media (max-width: 768px) {
    .project-content {
        padding: 28px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-short-desc {
        border-left: none;
        border-top: 3px solid var(--accent-cyan);
        padding-top: 12px;
        padding-left: 0;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}