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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1626 50%, #13101f 100%);
  color: #e8e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

.navbar {
  background: rgba(15, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-brand span {
  background: linear-gradient(135deg, #e8a8d8 0%, #d99ec9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #ff6b9d;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b9d, #c06c84);
}

.gallery-container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.gallery-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #e8a8d8 0%, #d99ec9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease;
  font-weight: 700;
}

.videos-section {
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.videos-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #d0d0d8;
  font-weight: 600;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.plain-video {
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 15px;
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 1;
  cursor: pointer;
  group: "gallery";
}

.gallery-item:not(.video-item)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.3) 0%, rgba(192, 108, 132, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-item:not(.video-item):hover::before {
  opacity: 1;
}

.gallery-img,
.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-img {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:not(.video-item):hover .gallery-img {
  transform: scale(1.1);
}

.video-item {
  background: #1a1a2e;
}

.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.video-item {
  background: #000;
}

.gallery-video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.9) !important;
}

.gallery-video::-webkit-media-controls-play-button,
.gallery-video::-webkit-media-controls-mute-button,
.gallery-video::-webkit-media-controls-timeline {
  accent-color: #ff6b9d;
}

video {
  -webkit-user-select: none;
  user-select: none;
}

/* Heart animation */
.heart {
  position: fixed;
  color: #e8a8d8;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 999;
  animation: float-up 3s ease-in forwards;
  opacity: 0.85;
}

@keyframes float-up {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(100px) rotate(360deg);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .gallery-container {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .gallery-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-brand {
    font-size: 1.1rem;
  }

  .nav-logo {
    width: 32px;
    height: 32px;
  }

  .nav-brand span {
    display: none;
  }

  .nav-menu {
    gap: 0.75rem;
  }

  .gallery-item {
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    margin: 1rem auto;
    padding: 0 0.75rem;
  }

  .gallery-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .nav-brand {
    font-size: 0.95rem;
    gap: 0.4rem;
  }

  .nav-logo {
    width: 28px;
    height: 28px;
  }

  .gallery-item {
    border-radius: 8px;
    aspect-ratio: 1;
  }

  .gallery-item::before {
    border-radius: 8px;
  }

  .heart {
    font-size: 1.2rem;
  }
}
