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

:root {
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.netlify-badge,
a[href*="netlify.com"] {
    display: none !important;
}

/* ===== VIDEO ===== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* ===== SPLASH ===== */
.music-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.8s var(--ease-out);
}

.music-splash.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    animation: splashPulse 2s var(--ease-out) infinite;
}

@keyframes splashPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

.splash-logo {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: logoRotate 8s linear infinite;
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes logoRotate {
    to {
        transform: rotate(360deg);
    }
}

.logo-inner {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-text {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: none;
}

.splash-hint {
    font-size: 14px;
    opacity: 0.5;
    text-shadow: none;
}

/* ===== LAYOUT ===== */
.page {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(48px, 8vw, 72px);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow:
        0 0 40px rgba(0, 0, 0, 0.9),
        0 4px 30px rgba(0, 0, 0, 0.8),
        0 0 2px rgba(0, 0, 0, 1);
}

h2 {
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 500;
    opacity: 0.6;
    text-shadow:
        0 0 30px rgba(0, 0, 0, 0.9),
        0 2px 20px rgba(0, 0, 0, 0.8);
}

h3 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

p {
    font-size: 15px;
    line-height: 1.6;
    text-shadow:
        0 0 20px rgba(0, 0, 0, 0.9),
        0 1px 10px rgba(0, 0, 0, 0.8);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0;
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 800ms var(--ease-out) forwards;
    animation-delay: 200ms;
}

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

.subtitle {
    font-size: 20px;
    margin-bottom: 24px;
    opacity: 0.9;
    font-weight: 500;
}

.bio {
    font-size: 17px;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 48px;
    opacity: 0.8;
}

.stats {
    display: flex;
    gap: 48px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow:
        0 0 30px rgba(0, 0, 0, 0.9),
        0 2px 20px rgba(0, 0, 0, 0.8);
}

.stat-label {
    font-size: 13px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 20px rgba(0, 0, 0, 0.9),
        0 1px 10px rgba(0, 0, 0, 0.8);
}

/* ===== WORK ===== */
.projects {
    display: grid;
    gap: 32px;
}

.project-card {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(30px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 300ms var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 800ms var(--ease-out) forwards;
}

.project-card:nth-child(1) { animation-delay: 100ms; }
.project-card:nth-child(2) { animation-delay: 200ms; }
.project-card:nth-child(3) { animation-delay: 300ms; }
.project-card:nth-child(4) { animation-delay: 400ms; }

@media (hover: hover) and (pointer: fine) {
    .project-card:hover {
        background: rgba(0, 0, 0, 0.85);
        border-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-4px);
    }

    .project-card:hover .project-image img {
        transform: scale(1.05);
    }
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms var(--ease-out);
}

.project-content {
    padding: 32px;
}

.project-content h3 {
    margin-bottom: 12px;
}

.project-content p {
    opacity: 0.85;
    margin-bottom: 16px;
    line-height: 1.7;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
    text-shadow: none;
}

/* ===== CONTACT ===== */
.contact {
    text-align: center;
    padding-bottom: 120px;
}

.contact-intro {
    font-size: 17px;
    margin-bottom: 32px;
    opacity: 0.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    border-radius: 16px;
    transition: transform 300ms var(--ease-out);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-shadow:
        0 0 20px rgba(0, 0, 0, 0.9),
        0 1px 10px rgba(0, 0, 0, 0.8);
}

.telegram-btn:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .telegram-btn:hover {
        background: rgba(255, 255, 255, 0.22);
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    }
}

.telegram-btn svg {
    width: 24px;
    height: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page {
        padding: 0 24px;
    }

    section {
        padding: 80px 0;
    }

    .hero {
        padding: 100px 0 80px;
    }

    .stats {
        gap: 32px;
        flex-wrap: wrap;
    }

    .projects {
        gap: 24px;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 24px;
    }

    .telegram-btn {
        padding: 18px 36px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .project-card {
        animation: fadeInReduced 300ms ease forwards;
    }

    @keyframes fadeInReduced {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .telegram-btn,
    .project-card,
    .project-image img {
        transition: opacity 200ms ease;
    }

    html {
        scroll-behavior: auto;
    }
}
