html {
  scroll-behavior: smooth;
}

body {
  background: #070d17;
  color: #f8fafc;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gold-ring {
  position: absolute;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 9999px;
  background: radial-gradient(
    circle,
    rgba(201, 169, 110, 0.18) 0%,
    rgba(201, 169, 110, 0.04) 35%,
    rgba(201, 169, 110, 0) 70%
  );
  filter: blur(12px);
  pointer-events: none;
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  z-index: 2;
}

.project-overlay {
  background: linear-gradient(
    to top,
    rgba(7, 13, 23, 0.92),
    rgba(7, 13, 23, 0.1)
  );
}

.nav-scrolled {
  background: rgba(7, 13, 23, 0.78);
  backdrop-filter: blur(14px);
}

.text-balance {
  text-wrap: balance;
}

.tab-content {
  transition: all 0.4s ease;
}

.video-card video {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.video-card:hover video {
  transform: scale(1.05);
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #33c3f2;
  border-color: #33c3f2;
}

.tab-btn.active {
  background: #33c3f2;
  color: #070d17;
  border-color: #33c3f2;
}

#mediaModal.show {
  display: flex;
}

#galleryThumbs img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.75;
  transition: 0.3s ease;
}

#galleryThumbs img.active,
#galleryThumbs img:hover {
  border-color: #33c3f2;
  opacity: 1;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  color: white;
  font-weight: 600;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Initial moody state */
  filter: brightness(0.7) contrast(1.1) saturate(0.8);
  /* The "Breathing" Animation */
  animation: lightPulse 15s ease-in-out infinite;
}

@keyframes lightPulse {
  0%,
  100% {
    filter: brightness(0.7) contrast(1.1) saturate(0.8);
  }

  50% {
    filter: brightness(1.3) contrast(1.4) saturate(1.2);
  }
}

/* Container for the lines */
.hamburger-icon {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Individual lines */
.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Animation to "X" */
.mobile-toggle-btn.active .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle-btn.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-toggle-btn.active .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* slide show */
.bg-hero-overlay {
  z-index: 1;
}
.bg-hero-overlay {
  z-index: 1;
}
.hero-slideshow {
  overflow: hidden;
  z-index: 0;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition:
    opacity 1.2s ease-in-out,
    transform 6s ease-in-out;
  will-change: opacity, transform;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

.hero-slide-bg.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-bg.is-active img {
  transform: scale(1);
}

.hero-dots {
  pointer-events: auto;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background: rgba(51, 195, 242, 0.55);
  border-color: rgba(51, 195, 242, 0.75);
}

.hero-dot.is-active {
  width: 26px;
  background: #33c3f2;
  border-color: #33c3f2;
  box-shadow: 0 0 18px rgba(51, 195, 242, 0.35);
}

@media (max-width: 1024px) {
  .hero-dots {
    right: 16px;
    bottom: 16px;
    gap: 10px;
    padding: 10px 12px;
  }
}

@media (max-width: 640px) {
  .hero-dots {
    right: 12px;
    bottom: 12px;
  }

  .hero-dot {
    width: 9px;
    height: 9px;
  }

  .hero-dot.is-active {
    width: 22px;
  }
}
