:root {
    --black: #000000;
    --red: #FF2D2D;
    --gray: #1A1A1A;
    --light-gray: #F2F2F2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    position: center;
    font-family: "arial", sans-serif;
    background-color: var(--black);
    color: white;
    overflow-x: hidden;
}

/* Apple-inspired typography */
h1, h2, h3, h4 {
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 8vw, 8rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 3rem;
}

h3 {
    margin-bottom: 3rem;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    font-weight: 350;
}

.fullscreen-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    opacity: 25%;
}
  
#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
  
  /* Затемнение фона */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Navigation - Apple style */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-img a {
    padding: 10% 10% 15%;
    display: flex;
    gap: 6rem;
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    position: relative;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 450;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Hero section with art-house animation */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-title span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.hero-subtitle {
    max-width: 50%;
    opacity: 0;
    transform: translateY(20px);
}

/* Apple-style animated gradient background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--black), var(--gray));
    z-index: 1;
    opacity: 0;
}

/* Works grid - art house style */
.works {
    padding: 4rem 10%;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-auto-rows: minmax(300px, auto);
    gap: 2rem;
    grid-auto-flow: dense;
}

.video-player {
    position: relative;
    background: #000;
    overflow: hidden;
}

.video-player,
.work-item {
    transition: transform 0.3s ease;
}

.work-item:hover,
.video-player:hover {
    transform: translateY(-5px);
}

.main-video,
.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Для вертикальных элементов (3:1) */
.work-item.vertical {
    grid-row: span 2;
}

/* Для квадратных элементов */
.work-item.square {
    aspect-ratio: 1;
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    pointer-events: none;
}

.work-category {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.work-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Music videos section */
.music-videos {
    padding: 0 10% 10%;
    margin: 20px 0;
}

.video-player {
    width: 100%;
    max-width: 900px;
    aspect-ratio: auto;
    margin: 0 auto 50px;
    background: #000;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* About section */
.about {
    padding: 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Contact section */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    padding: 10%;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-links {
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 5px;
}

.contact-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    text-align: center;
    margin: 0px 0;
}

.contact-links a:after {
    content: '';
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 1;
    bottom: 0px;
    left: 0;
    background-color: var(--red);
    transition: width 0.3s;
}

.contact-links a:hover:after {
    width: 100%;
}

/* Footer */
.footer {
    padding: 3rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}
.footer a {
    color: white;
    text-decoration: none;
}

/* Art-house animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Loader animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.loader-logo {
    font-size: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.loader-bar {
    width: 200px;
    height: 2px;
    background-color: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--red);
    transition: width 0.3s;
}

/* Mobile First Adjustments */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .fullscreen-video {
        position: absolute;
        height: auto;
        min-height: 100vh;
        opacity: 25%;
    }
    
    #bg-video {
        object-position: 35% center;
        height: 100vh;
    }
    
    .fullscreen-video::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('../assets/bg-video.mp4') no-repeat center center/cover;
        z-index: -1;
    }
      
    .nav-container {
        padding: 0.5rem;
        mix-blend-mode: normal;
    }

    .nav {
        justify-content: center; /* Центрируем оба ряда */
        row-gap: 15px; /* Расстояние между рядами */
    }
    
    .logo-img a {
        width: 100%; /* Занимает всю ширину первого ряда */
        align-items: center; /* Центрируем лого */
        font-size: 1.8rem;
        order: 1; /* Первый в порядке отображения */
        padding: 0px;
    }
    
    .nav-links {
        width: 100%; /* Занимает всю ширину второго ряда */
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 20px; /* Промежутки между ссылками */
        order: 2; /* Второй в порядке отображения */
    }
    
    .nav-links a {
        color: white;
        font-size: 8px;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 3000;
        position: relative;
        opacity: 1;
        transition: opacity 0.2s;
    }
    
    .nav-links a:hover {
        opacity: 1;
    }

    .hero {
        height: 90vh;
        padding: 0 5%;
        justify-content: center;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 1.2rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .work-item {
        aspect-ratio: 1/1.2;
    }

    .music-videos,
    .works,
    .about,
    .contact {
        padding: 20% 5%;
    }

    .video-player::before {
        background-image: var(--poster-url);
    }

    .video-player[data-poster]::before {
        --poster-url: url(attr(data-poster));
    }

    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 2rem 5%;
    }

    .video-overlay {
        background: var(--black);
    }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        padding: 0 5%;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black);
        padding: 1rem;
        text-align: center;
    }
}

/* Touch Optimizations */
.work-item {
    touch-action: manipulation;
}

/* Prevent Layout Shift */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Viewport Height Fix */
@supports (height: 100dvh) {
    .hero {
        height: 100dvh;
    }
}