/* ========================================================= */
/* ======================== GLASS HEADER ==================== */
/* ========================================================= */

.glass-header {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

/* Mobile menu */
.glass-mobile {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(18px) saturate(180%);
}

/* NAV LINKS */
.nav-link {
  position: relative;
  color: #ffffff;
  transition: 0.3s ease;
}

.nav-link .icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
  transition: 0.3s ease;
}

.nav-link:hover .icon {
  opacity: 1;
  transform: translateY(-1px);
}

/* ACTIVE BRAND COLOR (globální, jen jeden!) */
.active-nav {
  position: relative;
  color: var(--brand) !important;
  text-shadow: 0 0 10px var(--brand);
}

.active-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  margin: auto;
  width: 60%;
  height: 2px;
  background: var(--brand);
  border-radius: 3px;
  box-shadow: 0 0 12px var(--brand);
  animation: underline 0.3s ease;
}

@keyframes underline {
  from { width: 0; opacity: 0; }
  to { width: 60%; opacity: 1; }
}

/* SCROLL SHRINK */
.glass-header.nav-small {
  padding: 6px 0 !important;
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(20px) saturate(180%);
}

.glass-header.nav-small img {
  height: 30px !important;
  opacity: 0.9;
}

.glass-header.nav-small .nav-link {
  font-size: 15px;
}

.glass-header.nav-small .icon {
  width: 15px;
  height: 15px;
}

/* MOTION BLUR při scrollu */
.glass-header.scrolling {
  filter: blur(1.2px) brightness(1.15);
  transition: filter 0.15s ease;
}

/* ========================================================= */
/* ===================== PROJECT ITEM ======================= */
/* ========================================================= */

.project-item {
  position: relative;
  overflow: hidden;
}

/* Červený outline */
.project-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid #ff1a1a;
  border-radius: 14px;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.35s ease, transform 0.45s ease;
  pointer-events: none;
  z-index: 5;
}

/* Touch icon */
.project-item .hover-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 65px;
  height: 65px;
  background: rgba(255, 26, 26, 0.85);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 10;
  mask: url('assets/touch.svg') center / 60% no-repeat;
  -webkit-mask: url('assets/touch.svg') center / 60% no-repeat;
}

.project-item:hover::after,
.project-item:hover .hover-icon {
  opacity: 1;
  transform: scale(1) translate(-50%, -50%);
}

/* Mobilní tap */
@media (hover: none) {
  .project-item:active::after {
    opacity: 1;
    transform: scale(1);
  }
  .project-item:active .hover-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ========================================================= */
/* ===================== PARALLAX VIDEO ===================== */
/* ========================================================= */

.parallax-video {
  transform: translate3d(0,0,0);
  will-change: transform;
  transition: transform 0.05s linear;
}

@media (max-width: 768px) {
  .parallax-video {
    transition: transform 0.08s linear;
  }
}
