/* CSS Variables */
:root {
  /* Color Palette */
  --primary: #eadaaa;
  --dark-bg: #000000;
  --white: #ffffff;
  --neon-cyan: #00e5ff;
  --neon-pink: #ff00ff;
  --neon-gradient: linear-gradient(
    135deg,
    var(--neon-cyan) 0%,
    var(--neon-pink) 100%
  );

  /* music‑player */
  --player-bg-color: rgba(0, 0, 0, 0.35);
  --player-icon-color: #fff;

  --icon-offset-from-center: -18rem; /* How far icon is above viewport center */
  --title-offset-from-center: -14rem; /* How far title is above viewport center */
  --hexagon-bg-max-width: 512px; /* Visual size of the hexagon graphic */
  --hexagon-content-max-width: 360px; /* Max width of the text/buttons area inside hexagon */
  --scrollbar-size: 8px;

  /* Typography Scale */
  --font-xxxl: clamp(6rem, 12vw, 7rem); /* Main title */
  --font-xxl: clamp(4rem, 8vw, 5rem); /* Script headings */
  --font-xl: clamp(2.8rem, 6vw, 3.5rem); /* Section titles */
  --font-lg: clamp(2.2rem, 5vw, 2.8rem);
  --font-md: clamp(1.25rem, 4vw, 2rem); /* Sub-headings */
  --font-base-md: clamp(0.95rem, 3.2vw, 1.5rem);
  --font-base: clamp(0.8rem, 3vw, 1.4rem);
  --font-sm: clamp(0.5rem, 2.5vw, 1.2rem);
  --font-xs: clamp(0.6rem, 2vw, 0.8rem); /* Labels */

  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-loose: 1.8;

  /* Spacing */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  --space-xxl: 3rem; /* 48px */
  --space-xxxl: 4rem; /* 64px */

  /* Animation Timing */
  --transition-slow: 1.5s;
  --transition-medium: 0.8s;
  --transition-fast: 0.4s;
  --animate-duration: 1s;
  --animate-delay: 0.5s;
  --animate-repeat: 1;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--dark-bg);
}

/* Custom Scrollbar for Webkit Browsers */
::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary);
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--dark-bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: var(--line-height-normal);
  font-weight: var(--weight-light);
  font-size: var(--font-base);
  position: relative;
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  overflow: hidden;
}

.preloader-content {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.heart-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 102;
}

.preloader-custom-icon {
  width: 80px;
  height: 80px;
  animation: heartbeat 1.5s infinite;
}

.pulse-dots {
  position: absolute;
  width: 160px;
  height: 160px;
  animation: dotRotate 12s linear infinite;
}

.dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.5;
}

.dot:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.dot:nth-child(2) {
  top: 14%;
  right: 14%;
}
.dot:nth-child(3) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
.dot:nth-child(4) {
  bottom: 14%;
  right: 14%;
}
.dot:nth-child(5) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.dot:nth-child(6) {
  bottom: 14%;
  left: 14%;
}
.dot:nth-child(7) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.dot:nth-child(8) {
  top: 14%;
  left: 14%;
}

.curtain {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background-color: var(--dark-bg);
  transition: transform 1.5s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: 99;
}

.curtain.left {
  left: 0;
  transform: translateX(0);
}
.curtain.right {
  right: 0;
  transform: translateX(0);
}

@keyframes heartbeat {
  0%,
  28%,
  70% {
    transform: scale(1);
  }
  14%,
  42% {
    transform: scale(1.1);
  }
}

@keyframes dotRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Typography */
h1,
h2,
h3,
h4 {
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  font-weight: var(--weight-regular);
}

h1 {
  font-size: var(--font-xxxl);
  letter-spacing: 1px;
}
h2 {
  font-size: var(--font-md);
  letter-spacing: 0.5px;
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-normal);
}
strong,
b {
  font-weight: var(--weight-bold);
}
em,
i {
  font-style: italic;
}

.great-vibes {
  font-family: "Great Vibes", cursive;
  font-weight: var(--weight-regular);
  font-style: normal;
  text-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
  font-size: var(--font-xxl);
}

/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  opacity: 0.55;
}

.bg-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease-in-out;
}

@media (max-aspect-ratio: 9/16), (max-width: 600px) {
  .bg-video {
    min-width: 0;
    min-height: 0;
    object-position: center;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.scroll-indicator-progress {
  height: 100%;
  width: 0;
  background-color: var(--primary);
  transition: width 0.1s ease;
}

/* General .section styles - these apply to ALL sections */
.section {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--space-lg);
  box-sizing: border-box;
  text-align: center;
}

/* Scroll Down Arrow */
.scroll-arrow-wrap {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
}

.scroll-down-arrow {
  width: 100%;
  height: 100%;
}

/* Hero Section Specifics */
.section-hero {
  justify-content: center;
  gap: var(--space-xxl);
  min-height: 100dvh;
  overflow: hidden;
}

.stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
  width: min(90vw, 420px);
  margin-top: 12rem;
}

.stack-svg {
  width: 100%;
  height: auto;
  shape-rendering: geometricPrecision;
}
.stack-icon {
  width: 120px;
  height: auto;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .stack {
    width: 300px;
  }
}

/* --- HEXAGON SECTIONS --- */
.section-with-hexagon > .hexagon-background-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: var(--hexagon-bg-max-width);
  height: auto;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}

/* Content Area - Overlay for text/buttons, aligned with the background image */
.section-with-hexagon > .hexagon-content-area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85vw;
  max-width: var(--hexagon-content-max-width);
  padding: var(--space-lg) var(--space-md);
  box-sizing: border-box;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

/* Section Main Icon - Positioned relative to viewport center */
.section-with-hexagon > .section-main-icon {
  position: absolute;
  top: calc(50% + var(--icon-offset-from-center));
  left: 50%;
  transform: translateX(-50%);
  width: clamp(70px, 18vw, 100px);
  height: auto;
  z-index: 3;
}

/* Section Main Title - Positioned relative to viewport center */
.section-with-hexagon > .section-main-title {
  position: absolute;
  top: calc(50% + var(--title-offset-from-center));
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--white);
  line-height: var(--line-height-tight);
  text-align: center;
  width: 80%;
  max-width: 400px;
  z-index: 3;
}

.section-with-hexagon .hexagon-content-area > .info-stack,
.section-with-hexagon .hexagon-content-area > .music-player,
.section-with-hexagon .hexagon-content-area > .countdown-text,
.section-with-hexagon .hexagon-content-area > .countdown-timer {
  position: relative;
  width: 100%;
}

/* --- End of STYLES FOR HEXAGON SECTIONS --- */

/* Countdown Section */

#countdown .countdown-text {
  margin: var(--space-xs) 0 var(--space-md) 0;
  max-width: 90%;
  line-height: var(--line-height-normal);
  font-size: var(--font-md);
  color: var(--white);
}

#countdown .countdown-timer {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: 0;
  margin-top: 2rem;
}

#countdown .countdown-item {
  position: relative;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  padding: var(--space-sm) var(--space-sm);
  border-radius: 8px;
  min-width: 65px;
  color: #000000;
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.35), 0 0 14px rgba(255, 0, 255, 0.25);
  overflow: hidden;
}

#countdown .countdown-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #00e5ff 0%, #ff00ff 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

#countdown .countdown-item span:first-child {
  font-family: "Poppins", "Courier New", monospace;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  display: block;
  line-height: 1;
  font-weight: var(--weight-semibold);
  color: #ffffff;
  margin-bottom: var(--space-xs);
  text-shadow: 0 0 6px rgba(0, 217, 255, 0.9), 0 0 12px rgba(255, 0, 255, 0.75);
}

#countdown .countdown-item .label {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.55rem, 2vw, 0.65rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  color: #ffffff;
  font-weight: var(--weight-medium);
  text-shadow: 0 0 6px rgba(0, 217, 255, 0.9), 0 0 12px rgba(255, 0, 255, 0.75);
}

.info-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  width: 100%;
}

.info-box {
  width: 100%;
  font-size: var(--font-base);
  margin-bottom: 0.5rem;
}
.info-box:last-child {
  margin-bottom: 0;
}

.info-box-title {
  font-size: var(--font-base-md);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-xs);
}

.info-box p {
  margin-top: 0;
  margin-bottom: var(--space-xs);
}
.info-box p:last-of-type {
  margin-bottom: 0;
}

.btn {
  background: none;
  border: none;
  padding: 0;
  display: inline-block;
  line-height: 0;
  cursor: default;
  margin-top: 0;
}

.btn-svg {
  width: 10rem;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease-out;
}
.btn-svg:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .info-box .info-header-icon {
    width: 80px;
  }
  .btn-svg {
    width: 260px;
  }
}

@media (min-width: 1200px) {
  .btn-svg {
    width: 300px;
  }
}

/* Final Section */
#final {
  justify-content: center;
  padding-top: var(--space-xxxl);
  padding-bottom: var(--space-xxxl);
}

.final-message {
  max-width: 80%;
  font-size: var(--font-md);
}
.final-message h1.great-vibes {
  margin-top: var(--space-lg);
}

/* Animation States */
body .animate__animated {
  animation-play-state: paused;
  opacity: 0;
}

body .animate__animated:not(.paused-animation) {
  animation-play-state: running;
  opacity: 1;
}

/* Animation Duration Utilities */
.animate__animated.animate__slower {
  --animate-duration: 2s;
}
.animate__animated.animate__slow {
  --animate-duration: 1.5s;
}
.animate__animated.animate__fast {
  --animate-duration: 0.8s;
}
.animate__animated.animate__faster {
  --animate-duration: 0.5s;
}

@media (min-width: 768px) {
  .container {
    max-width: 90%;
  }
  .final-message {
    max-width: 70%;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 80%;
  }
  .final-message {
    max-width: 60%;
  }
}

#hero .animate__animated {
  --animate-duration: 0.5s;
  --animate-delay: 0s;
}

/* Music Player Styling */
.music-player {
  position: relative;
  background-color: var(--player-bg-color);
  padding: 1.25rem;
  width: 100%;
  box-shadow: 0 0 8px var(--neon-cyan), 0 0 14px var(--neon-pink);
  font-family: "Montserrat", sans-serif;
  max-width: 280px;
  margin: 0 auto var(--space-md) auto;
  margin-top: 4rem;
  overflow: hidden;
}

.music-player::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--neon-gradient);
  background-size: 250% 250%;
  animation: mpBorderShift 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes mpBorderShift {
  to {
    background-position: 200% 0;
  }
}

.music-player-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px var(--neon-cyan), 0 0 25px var(--neon-pink);
}

.music-player-thumbnail-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: thumbGlow 8s ease-in-out infinite;
}

@keyframes thumbGlow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

.music-player-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.music-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.play-pause-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--neon-pink);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 10px var(--neon-pink);
  transition: transform 0.2s;
}
.play-pause-btn:active {
  transform: scale(0.9);
}
.play-pause-btn svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* Next Section Arrow Styling */
.next-section {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
}
.next-section svg {
  width: 48px;
  height: 48px;
  fill: var(--white);
  stroke: var(--primary);
  stroke-width: 1.5;
  transition: transform 0.2s ease-out;
}
.next-section:hover svg {
  transform: translateY(5px);
}

/* Responsive Adjustments for Hexagon Content and Countdown */
@media (max-width: 480px) {
  .hexagon-background-image {
    max-width: 98vw;
    opacity: 0.75;
  }

  .hexagon-content-area {
    padding: var(--space-lg) var(--space-sm);
  }

  #countdown .countdown-item {
    min-width: 55px;
    padding: var(--space-xs) var(--space-sm);
  }

  #countdown .countdown-item span:first-child {
    font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  }

  #countdown .countdown-item .label {
    font-size: clamp(0.5rem, 1.8vw, 0.6rem);
  }

  .next-section svg {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 320px) {
  .hexagon-content-area {
    padding: var(--space-md) var(--space-xs);
  }
  .music-player {
    padding: 10px;
  }
  .music-player-controls {
    gap: 8px;
  }
  .music-player-btn svg {
    width: 20px;
    height: 20px;
  }

  #countdown .countdown-item {
    min-width: 50px;
  }
}

/* Responsive Adjustments for Icon/Title Offsets & Sizes */
@media (max-height: 700px) {
  :root {
    --icon-offset-from-center: -18rem;
    --title-offset-from-center: -12rem;
  }
  .section-main-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
  }
  .hexagon-content-area {
    padding: var(--space-md) var(--space-sm);
  }
}

@media (max-height: 600px) {
  :root {
    --icon-offset-from-center: -12rem;
    --title-offset-from-center: -7rem;
    --hexagon-bg-max-width: 380px;
    --hexagon-content-max-width: 320px;
  }
  .section-main-icon {
    width: clamp(60px, 15vw, 80px);
  }
  .section-main-title {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
  }
}

@media (max-width: 480px) {
  :root {
    --icon-offset-from-center: -18rem;
    --title-offset-from-center: -14rem;
  }

  .hexagon-content-area {
    width: 90vw;
  }

  .section-with-hexagon > .section-main-title {
    font-size: var(--font-md);
    line-height: 1.3;
  }
  .final-message {
    font-size: clamp(0.8rem, 3vw, 25rem);
    line-height: 1.4;
  }

  .scroll-arrow-wrap {
    width: 20px;
    height: 20px;
  }

  #countdown .countdown-text {
    position: absolute;
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-top: 22rem;
  }

  #countdown .music-player {
    max-width: 120px;
    height: 180px;
    margin-bottom: 12rem;
    margin-top: 10rem;
  }

  #countdown .countdown-timer {
    position: absolute;
    margin-top: 28rem;
  }

  .music-player-thumbnail-container {
    width: 100%;
    max-height: 100px;
    aspect-ratio: 1;
  }

  /* Hero Section Image Adjustments for smaller screens */
  .stack {
    margin-top: 4rem;
    width: min(85vw, 300px);
  }

  .stack-icon {
    width: 80px;
    margin-top: 0.5rem;
  }
}

/* --- DESKTOP SPECIFIC STYLES (1200px and up) --- */
@media (min-width: 1200px) {
  :root {
    --icon-offset-from-center: -30rem;
    --title-offset-from-center: -24rem;
    --hexagon-bg-max-width: 600px;
    --hexagon-content-max-width: 480px;
  }

  .scroll-arrow-wrap {
    display: none;
  }

  .next-section {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-image: url("assets/images/scroll_down_arrow.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .next-section svg {
    display: none;
  }

  .section-hero .stack {
    width: min(70vw, 480px);
    margin-top: 10rem;
  }

  .section-hero .stack-icon {
    width: 110px;
  }

  .section-with-hexagon > .hexagon-background-image {
    max-width: 600px;
    opacity: 0.9;
  }

  .section-with-hexagon > .hexagon-content-area {
    max-width: 430px;
    margin-top: 0.5rem;
  }

  .section-with-hexagon > .section-main-icon {
    width: clamp(80px, 7vw, 110px);
  }

  .section-with-hexagon > .section-main-title {
    font-size: var(--font-lg);
    max-width: 480px;
  }

  #countdown .music-player {
    max-width: 250px;
    margin-top: 10rem;
  }

  #countdown .countdown-text {
    font-size: var(--font-base);
    margin-bottom: var(--space-lg);
  }

  #countdown .countdown-timer {
    gap: var(--space-md);
    margin-top: 4rem;
  }

  #countdown .countdown-item {
    min-width: 75px;
    padding: var(--space-sm) var(--space-md);
  }

  #countdown .countdown-item span:first-child {
    font-size: clamp(1.8rem, 2.5vw, 2rem);
  }

  #countdown .countdown-item .label {
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  }

  .info-stack {
    gap: var(--space-md);
  }

  .info-box-title {
    font-size: var(--font-md);
  }

  .info-box p {
    font-size: var(--font-base);
  }

  .final-message {
    max-width: 600px;
    font-size: var(--font-base);
  }

  .final-message h1.great-vibes {
    font-size: clamp(5rem, 10vw, 6.5rem);
  }
}

/* --- MEDIUM SCREEN / TABLET STYLES (768px to 1199px) --- */
@media (min-width: 768px) and (max-width: 1199px) {
  :root {
    --icon-offset-from-center: -26rem;
    --title-offset-from-center: -20rem;
    --hexagon-bg-max-width: 550px;
    --hexagon-content-max-width: 410px;
  }

  .scroll-arrow-wrap {
    display: none !important;
  }

  .next-section {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-image: url("assets/images/scroll_down_arrow.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
  }

  .next-section svg {
    display: none;
  }

  .section-hero .stack {
    width: min(80vw, 420px);
    margin-top: 9rem;
  }

  .section-hero .stack-icon {
    width: 95px;
  }

  .section-with-hexagon > .section-main-icon {
    width: clamp(75px, 11vw, 100px);
  }

  .section-with-hexagon > .section-main-title {
    font-size: clamp(2.3rem, 5vw, 2.8rem);
    max-width: 85%;
  }

  #countdown .music-player {
    max-width: 180px;
    margin-top: 10rem;
  }

  #countdown .countdown-text {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    margin-bottom: var(--space-md);
  }

  #countdown .countdown-timer {
    gap: var(--space-sm);
    margin-top: 4rem;
  }

  #countdown .countdown-item {
    min-width: 65px;
    padding: var(--space-sm) var(--space-sm);
  }

  #countdown .countdown-item span:first-child {
    font-size: clamp(1.5rem, 3.8vw, 1.8rem);
  }

  #countdown .countdown-item .label {
    font-size: clamp(0.55rem, 1.9vw, 0.65rem);
  }

  .final-message {
    font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  }
  .final-message h1.great-vibes {
    font-size: clamp(4rem, 8vw, 5rem);
  }
}

/* --- LARGE MOBILE / SMALL TABLET PORTRAIT (481px to 767px) --- */
@media (min-width: 481px) and (max-width: 767px) {
  :root {
    --icon-offset-from-center: -23rem;
    --title-offset-from-center: -17.5rem;
    --hexagon-bg-max-width: min(88vw, 480px);
    --hexagon-content-max-width: min(75vw, 350px);
  }

  #countdown .countdown-timer {
    margin-top: 6rem;
  }

  .section-with-hexagon > .hexagon-content-area {
    padding: var(--space-md) var(--space-sm);
  }

  .section-with-hexagon > .section-main-icon {
    width: clamp(70px, 16vw, 90px);
  }

  .section-with-hexagon > .section-main-title {
    font-size: clamp(1.8rem, 4.8vw, 2.2rem);
    max-width: 80%;
  }

  .section-hero .stack {
    width: min(88vw, 360px);
    margin-top: 5rem;
  }

  .section-hero .stack-icon {
    width: 85px;
  }

  #countdown .music-player {
    max-width: 160px;
    margin-top: 8rem;
  }

  #countdown .countdown-text {
    font-size: clamp(1rem, 3.2vw, 1.3rem);
  }

  #countdown .countdown-timer {
    gap: var(--space-xs);
  }
  #countdown .countdown-item {
    min-width: 58px;
    padding: var(--space-xs);
  }
  #countdown .countdown-item span:first-child {
    font-size: clamp(1.3rem, 3.6vw, 1.6rem);
  }
  #countdown .countdown-item .label {
    font-size: clamp(0.5rem, 1.9vw, 0.6rem);
  }
}
