:root {
    --white: #fff;
    --dark: #150b0b;
    --blur-amount: 1px;
    --scale-factor: 0.1;
    --font-family: "Montserrat", sans-serif;
    --anim: 0.4s linear;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark);
    color: var(--white);
}

body::after {
  animation: grain 8s steps(10) infinite;
  background-image: url('/assets/img/noise.svg');
  content: "";
  height: 300%;
  width: 300%;
  left: -100%;
  top: -110%;
  opacity: 0.08;
  position: fixed;
  z-index: 101;
  pointer-events: none;
}

@keyframes grain {
  0%, 100% { transform:translate(0, 0) }
  10% { transform:translate(-5%, -10%) }
  20% { transform:translate(-15%, 5%) }
  30% { transform:translate(5%, -25%) }
  40% { transform:translate(-5%, 25%) }
  50% { transform:translate(-15%, 10%) }
  60% { transform:translate(15%, 0%) }
  70% { transform:translate(0%, 15%) }
  80% { transform:translate(5%, 35%) }
  90% { transform:translate(-10%, 10%) }
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

svg {
    fill: currentColor;
}

*::-webkit-scrollbar {
  width: 4px;
}

*::-webkit-scrollbar-track {
  background: #251313;
}

*::-webkit-scrollbar-thumb {
  background-color: #dc3545;
}

a, button {
    color: inherit;
}

.title {
    font-weight: 100;
    font-size: 56px;
}

.swiper-button-disabled {
    display: none;
}

.swiper-button-arrow {
    border: 1px solid;
    color: var(--white);
    width: 64px;
    height: 64px;
    background-color: var(--dark);
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-arrow::after {
    font-size: 24px;
}

.swiper-button-next {
    right: 8%;
}

.swiper-button-prev {
    left: 8%;
}

.picture-image {
    position: relative;
    padding-bottom: 50%;
    display: block;
    width: 100%;
}

.picture-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lazy-video {
    position: relative;
    padding-bottom: 50%;
    display: block;
    width: 100%;
    cursor: pointer;
}

.lazy-video img, .lazy-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.lazy-video__handler {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 90px;
    background-color: transparent;
    border: none;
    padding: 0;
}

.lazy-video__handler img {
    object-fit: contain;
}

.tabs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 24px;
    margin-bottom: 64px;
}

.tabs__nav-item {
    flex: 1 0 auto;
}

.tabs__nav-btn {
    padding: 16px 32px;
    width: 100%;
    min-width: 200px;
    background-color: transparent;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    box-shadow: 0px 0px 40px 3px rgba(255,0,0,0.2);
    transition: background-color var(--anim);
    -webkit-transition: background-color var(--anim);
    -moz-transition: background-color var(--anim);
    -o-transition: background-color var(--anim);
}

.tabs__nav-btn--active {
    background-color: #4c0606;
}

.tabs__panel {
    display: none;
}

.tabs__panel--active {
    display: block;
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color var(--anim);
    -webkit-transition: background-color var(--anim);
    -moz-transition: background-color var(--anim);
    -o-transition: background-color var(--anim);
}

.header--fixed {
    background-color: var(--dark);
}

.header-nav {
    width: 160px;
}

.header-link {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    text-decoration: none;
    font-size: 14px;
    transition: color var(--anim);
    -webkit-transition: color var(--anim);
    -moz-transition: color var(--anim);
    -o-transition: color var(--anim);
}

.header-link--current {
    color: #ff0000;
    text-shadow: 0 0 8px rgba(255, 21, 21, 1);
}

.logo-content {
    position: relative;
    top: 0;
    transition: scale var(--anim), top var(--anim);
    -webkit-transition: scale var(--anim), top var(--anim);
    -moz-transition: scale var(--anim), top var(--anim);
    -o-transition: scale var(--anim), top var(--anim);
}

.logo-name {
    font-weight: 100;
    font-size: 64px;
}

.logo-description {
    font-size: 24px;
    font-weight: 100;
}

.social-item__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.social-item__link img {
    transition: scale 0.4s ease;
    -webkit-transition: scale var(--anim);
    -moz-transition: scale var(--anim);
    -o-transition: scale var(--anim);
}

.social-item__link:hover img {
    scale: 1.4;
}

.project-item {
    position: relative;
    box-shadow: 0px 0px 100px 40px rgba(255, 21, 21, 0.1);
    overflow: hidden;
    transition: scale var(--anim), z-index var(--anim), box-shadow var(--anim);
    -webkit-transition: scale var(--anim), z-index var(--anim), box-shadow var(--anim);
    -moz-transition: scale var(--anim), z-index var(--anim), box-shadow var(--anim);
    -o-transition: scale var(--anim), z-index var(--anim), box-shadow var(--anim);
}

.project-item__picture {
    padding-bottom: 141%;
    transition: scale 5s linear;
    -webkit-transition: scale 5s linear;
    -moz-transition: scale 5s linear;
    -o-transition: scale 5s linear;
}

.project-item__content-top a {
    flex: 0 0 auto;
    width: 18px;
}

.project-item__content {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    font-size: 18px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--anim), background-color var(--anim), visibility var(--anim);
    -webkit-transition: opacity var(--anim), background-color var(--anim), visibility var(--anim);
    -moz-transition: opacity var(--anim), background-color var(--anim), visibility var(--anim);
    -o-transition: opacity var(--anim), background-color var(--anim), visibility var(--anim);
}

.project-item:hover {
    box-shadow: 0px 0px 100px 40px rgba(255, 21, 21, 0.2);
    z-index: 10;
}

.project-item:hover .project-item__content {
    opacity: 1;
    visibility: visible;
    background-color: rgb(0, 0, 0, 0.8);
    /* backdrop-filter: blur(1px); */
}

.project-item:hover .project-item__picture {
    /*opacity: 0.5;*/
    scale: 1.05;
}

.project-item__name {
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
}

.project-item__content-top {
    align-items: center;
    margin-bottom: 32px;
}

.project-item__character {
    font-size: 16px;
    font-weight: 300;
    display: flex;
    gap: 8px;
}

.project-item__list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-item__character::before {
    content: '';
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    display: block;
    background-color: red;
    box-shadow: 0 0 16px 0 red;
    position: relative;
    top: 8px;
}

.playlist-item {
    display: flex;
    gap: 16px;
    text-align: start;
    padding: 16px 24px;
    border: none;
    background-color: black;
    color: var(--white);
    font-size: 14px;
    transition: background-color var(--anim);
    -webkit-transition: background-color var(--anim);
    -moz-transition: background-color var(--anim);
    -o-transition: background-color var(--anim);
}

.playlist-item--selected {
	background-color: rgb(255,255,255,0.1);
}

.playlist-item__time {
    color: #ff0000;
}

.playlist-item__name {
    font-weight: 500;
    width: 200px;
    flex: 1 0 auto;
}

.playlist-items {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 450px;
    overflow-y: auto;
}

.playlist-selected {
    width: 100%;
    height: 100%;
}

.playlist-description {
    font-size: 18px;
    font-weight: 100;
    line-height: 165%;
}

.about-content {
    font-size: 24px;
    line-height: 165%;
    font-weight: 100;
}

.footer-email {
    font-size: 12px;
    transition: color var(--anim);
    -webkit-transition: color var(--anim);
    -moz-transition: color var(--anim);
    -o-transition: color var(--anim);
}

.footer-email:hover {
    color: #dc3545;
}

#main, #projects, #music, #soundDesign, #about {
    scroll-margin-block-start: 190px; 
}

@media (min-width: 1500px) {
    .video-slider__container {
        max-width: 1450px;
    }
}

@media (min-width: 992px) {
    .header {
        min-height: 135px;
    }
    
    .header .socials {
        opacity: 1;
        visibility: visible;
        width: 160px;
        transition: opacity var(--anim), visibility var(--anim);
        -webkit-transition: opacity var(--anim), visibility var(--anim);
        -moz-transition: opacity var(--anim), visibility var(--anim);
        -o-transition: opacity var(--anim), visibility var(--anim);
    }

    .header--fixed .logo-content {
        scale: 0.5;
        top: -24px;
    } 
    
    .header--fixed .socials {
        opacity: 0;
        visibility: hidden;
    }
    
    .header .logo-socials {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        left: 0;
        bottom: 16%;
    }
    
    .header--fixed .logo-socials {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 1399px) {
    .logo-name {
        font-size: 56px;
    }
}

@media (max-width: 1199px) {
    .logo-name {
        font-size: 40px;
    }
    
    .logo-description {
        font-size: 18px;
    }
    
    .about-content {
        font-size: 18px;
    }
}

@media (max-width: 991px) {
    .lazy-video__handler {
        width: 90px;
        height: 60px;
    }
    
    .logo-name {
        font-size: 32px;
    }
    
    .logo-description {
        font-size: 14px;
    }
    
    .header-nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        align-items: center;
        justify-content: center;
    }
    
    .social-item__link {
        width: 24px;
        height: 24px;
    }
    
    .playlist-items {
        max-height: 250px;
    }
}

@media (max-width: 767px) {
    .header-nav {
        gap: 8px;
    }
    
    .header-link {
        padding: 0;
        font-size: 12px;
    }
    
    .tabs__nav-item {
        flex: 1 0 auto;
        width: 140px;
    }
    
    .tabs__nav-btn {
        padding: 16px;
        min-width: auto;
        width: 100%;
        font-size: 14px;
    }
    
    .title {
        font-size: 36px;
    }
    
    .project-item__name {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .swiper-button-arrow {
        width: 32px;
        height: 32px;
    }
    
    .swiper-button-arrow::after {
        font-size: 12px;
    }
    
    .swiper-button-prev {
        left: 4%;
    }
    
    .swiper-button-next {
        right: 4%;
    }
    
    .lazy-video__handler {
        width: 60px;
        height: 40px;
    }
    
    .lazy-video img, .lazy-video video {
        border-radius: 8px;
    }
    
    .logo-name {
        font-size: 18px;
    }
    
    .tabs__nav {
        gap: 8px;
        margin-bottom: 48px;
        flex-wrap: wrap;
    }
    
    .tabs__nav-btn {
        padding: 8px;
        font-size: 12px;
    }
    
    .playlist-selected {
        min-height: 240px;
    }
    
    .playlist-item {
        gap: 12px;
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .about-content {
        font-size: 14px;
    }
    
    .project-item__name {
        font-size: 14px;
    }
    
    .project-item__content {
        padding: 12px;
    }
    
    .project-item__character {
        font-size: 12px;
        font-weight: 300;
        display: flex;
        gap: 4px;
    }
    
    .project-item__content-top a {
        flex: 0 0 auto;
        width: 12px;
    }
    
    .project-item__content-top {
        margin-bottom: 12px;
    }
    
    .project-item__list {
        gap: 4px;
    }
}