/* Global reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans KR",
    "Apple SD Gothic Neo", sans-serif;
  color: #ffffff;
  background-color: #000000;
  overflow: auto; /* Allow full-page scroll */
  position: relative;
}

/* Fixed background image (covers entire viewport on all devices) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  /* TODO: replace url() with your actual background JPG path */
  background-image: url("./assets/background-hiphop-awards-2026.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* iOS Safari fix: transform helps with rendering */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* iOS Safari fix: remove background-attachment: fixed as it's not supported properly */
@supports (-webkit-touch-callout: none) {
  body::before {
    background-attachment: scroll;
  }
}

/* Subtle black overlay to ensure text readability */
.background-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      circle at top,
      rgba(0, 0, 0, 0.0),rgba(0, 0, 0, 0.0),
      rgba(0, 0, 0, 0.35)
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

/* Page layout */
.page {
  position: relative;
  display: block;
}

/* Hero Section: Full viewport height with centered logo */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
}

.logo-image {
  max-width: 450px;
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  /* Fallback shadow for browsers that support it well */
  filter: drop-shadow(0px 6px 10px rgba(0, 0, 0, 0.3));
  -webkit-filter: drop-shadow(0px 6px 10px rgba(0, 0, 0, 0.3));
}

/* Safari-compatible shadow using pseudo-element - creates shadow layer */
.logo-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 8px));
  width: 100%;
  max-width: 450px;
  height: 100%;
  max-height: 450px;
  background-image: url('./assets/logo-korean-hiphop-awards-2026.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(15px);
  -webkit-filter: blur(15px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
  /* Hide on browsers that handle drop-shadow well */
  display: none;
}

/* Show pseudo-element shadow only on Safari/iOS */
@supports (-webkit-touch-callout: none) {
  .logo-container::after {
    display: block;
  }
  .logo-image {
    filter: none;
    -webkit-filter: none;
  }
}

/* External link button: Golden button between logo and triangle */
.external-link-button {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #d4af37 0%, #f4e5b1 50%, #d4af37 100%);
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4),
              0 2px 8px rgba(212, 175, 55, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.external-link-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.external-link-button:hover::before {
  left: 100%;
}

.external-link-button:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6),
              0 4px 12px rgba(212, 175, 55, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, #e6c854 0%, #f8ebc7 50%, #e6c854 100%);
}

.external-link-button:active {
  transform: translateX(-50%) translateY(0px);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4),
              0 1px 5px rgba(212, 175, 55, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.external-link-button span {
  position: relative;
  z-index: 1;
}

.external-link-button svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.external-link-button:hover svg {
  transform: translate(2px, -2px);
}

/* Scroll button: Triangle at bottom center */
.scroll-button {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.scroll-button:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateX(-50%) translateY(4px);
}

.scroll-button:active {
  transform: translateX(-50%) translateY(6px);
}

.scroll-button svg {
  width: 32px;
  height: 32px;
}

/* Intro Section: Below hero section */
.intro-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 48px;
}

.intro-scroll {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 48px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.intro-scroll::-webkit-scrollbar {
  width: 6px;
}

.intro-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.intro-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.tagline {
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.title {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 24px;
}

.intro-body {
  font-size: 1.4rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  word-break: keep-all;
}

.intro-body p + p {
  margin-top: 16px;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .hero-section {
    padding: 32px 24px;
  }

  .logo-image {
    max-width: 280px;
  }

  .external-link-button {
    bottom: 100px;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .scroll-button {
    bottom: 32px;
  }

  .intro-section {
    padding: 60px 32px;
  }

  .intro-scroll {
    max-width: 700px;
    padding: 32px 36px;
  }

  .title {
    font-size: 2rem;
  }
}

/* Mobile layout */
@media (max-width: 768px) {
  .hero-section {
    padding: 24px 20px;
    min-height: 100vh;
  }

  .logo-image {
    max-width: 70vw;
  }

  .external-link-button {
    bottom: 110px;
    padding: 11px 20px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .external-link-button svg {
    width: 14px;
    height: 14px;
  }

  .scroll-button {
    bottom: 36px;
  }

  .scroll-button svg {
    width: 28px;
    height: 28px;
  }

  .intro-section {
    padding: 40px 20px;
    min-height: auto;
  }

  .intro-scroll {
    padding: 24px 20px;
    background: rgba(0, 0, 0, 0.6);
  }

  .tagline {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .title {
    font-size: 1.7rem;
  }

  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  .intro-body {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}


