/* =============== RESET & BASE =============== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #4dbcd6 0%, #2d9cba 40%, #1a7a8a 100%);
  color: #ffffff;
  position: relative;
}

/* =============== SCENE (BACKGROUND) =============== */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* --- City Silhouette --- */
.buildings {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  height: 350px;
  z-index: 1;
}

.building {
  position: absolute;
  bottom: 0;
  background: #1a5a6a;
  border-radius: 4px 4px 0 0;
  opacity: 0.5;
}

.building::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 12px,
    rgba(77, 188, 214, 0.3) 12px,
    rgba(77, 188, 214, 0.3) 14px
  );
  opacity: 0.6;
}

.b1 { left: 2%;  width: 60px; height: 180px; }
.b2 { left: 8%;  width: 45px; height: 250px; opacity: 0.35; }
.b3 { left: 18%; width: 70px; height: 200px; }
.b4 { left: 35%; width: 50px; height: 280px; opacity: 0.3; }
.b5 { right: 20%; width: 55px; height: 220px; }
.b6 { right: 10%; width: 65px; height: 190px; opacity: 0.4; }
.b7 { right: 2%;  width: 40px; height: 260px; opacity: 0.35; }

/* --- Ground --- */
.ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, #8B6914 0%, #6B4F10 100%);
  z-index: 5;
}

.ground::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #f7c948 0px,
    #f7c948 20px,
    #2c2c2c 20px,
    #2c2c2c 40px
  );
}

/* =============== CRANE =============== */
.crane {
  position: absolute;
  bottom: 80px;
  right: 15%;
  z-index: 3;
}

.crane-tower {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 320px;
  background: repeating-linear-gradient(
    0deg,
    #5a5a5a 0px,
    #5a5a5a 8px,
    #777 8px,
    #777 10px
  );
}

.crane-tower::before,
.crane-tower::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 100%;
  background: inherit;
  top: 0;
}

.crane-tower::before {
  left: -10px;
  transform: skewX(-2deg);
}

.crane-tower::after {
  right: -10px;
  transform: skewX(2deg);
}

.crane-cabin {
  position: absolute;
  bottom: 290px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 25px;
  background: #f7c948;
  border-radius: 3px;
  z-index: 4;
}

.crane-cabin::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  background: #87CEEB;
  border-radius: 2px;
}

.crane-arm {
  position: absolute;
  bottom: 310px;
  left: 50%;
  transform-origin: 0% 100%;
  animation: craneSwing 8s ease-in-out infinite;
  z-index: 4;
}

.crane-arm-bar {
  position: absolute;
  bottom: 0;
  left: -20px;
  width: 200px;
  height: 8px;
  background: linear-gradient(90deg, #777, #5a5a5a);
  border-radius: 2px;
}

.crane-arm-bar::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 8px,
    #888 8px,
    #888 10px
  );
}

.crane-cable {
  position: absolute;
  bottom: -60px;
  left: 140px;
  width: 2px;
  height: 60px;
  background: #555;
  animation: cableSwing 8s ease-in-out infinite;
}

.crane-hook {
  position: absolute;
  bottom: -72px;
  left: 135px;
  width: 12px;
  height: 12px;
  border: 3px solid #f7c948;
  border-top: none;
  border-radius: 0 0 6px 6px;
  animation: cableSwing 8s ease-in-out infinite;
}

.crane-counter {
  position: absolute;
  bottom: 310px;
  left: 50%;
  transform: translateX(calc(-100% - 10px));
  width: 30px;
  height: 20px;
  background: #666;
  border-radius: 2px;
}

.crane-base {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  background: #555;
  border-radius: 2px;
}

/* Second crane (smaller) */
.crane-small {
  right: auto;
  left: 10%;
  transform: scale(0.6);
  transform-origin: bottom center;
  opacity: 0.7;
}

.crane-small .crane-arm {
  animation-delay: -3s;
  animation-duration: 10s;
}

/* =============== CRANE ANIMATIONS =============== */
@keyframes craneSwing {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

@keyframes cableSwing {
  0%, 100% { transform: translateX(-2px); }
  50%      { transform: translateX(2px); }
}

/* =============== GEARS =============== */
.gear {
  position: absolute;
  z-index: 2;
  color: rgba(247, 201, 72, 0.25);
}

.gear svg {
  width: 100%;
  height: 100%;
}

.gear-1 {
  bottom: 50px;
  left: 5%;
  width: 80px;
  height: 80px;
  animation: spinGear 12s linear infinite;
}

.gear-2 {
  bottom: 90px;
  left: calc(5% + 55px);
  width: 55px;
  height: 55px;
  animation: spinGear 8.5s linear infinite reverse;
}

@keyframes spinGear {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =============== WORKERS =============== */
.worker {
  position: absolute;
  bottom: 80px;
  z-index: 6;
  animation: workerBounce 1.2s ease-in-out infinite;
}

.worker-helmet {
  width: 20px;
  height: 12px;
  background: #f7c948;
  border-radius: 10px 10px 2px 2px;
  margin: 0 auto;
  position: relative;
}

.worker-helmet::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -3px;
  right: -3px;
  height: 4px;
  background: #e6b800;
  border-radius: 2px;
}

.worker-body {
  width: 16px;
  height: 18px;
  background: #ff6633;
  border-radius: 3px;
  margin: 2px auto 0;
  position: relative;
}

.worker-body::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  background: #cc4400;
  border-radius: 2px;
}

.worker-legs {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.leg {
  width: 5px;
  height: 12px;
  background: #4a6fa5;
  border-radius: 0 0 2px 2px;
}

.leg.left {
  animation: legMove 0.6s ease-in-out infinite alternate;
}

.leg.right {
  animation: legMove 0.6s ease-in-out infinite alternate-reverse;
}

.worker-1 { left: 25%; animation-delay: 0s; }
.worker-2 { left: 45%; animation-delay: -0.3s; }
.worker-3 { left: 65%; animation-delay: -0.6s; }

@keyframes workerBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes legMove {
  from { transform: rotate(-8deg); }
  to   { transform: rotate(8deg); }
}

/* =============== PARTICLES (dust) =============== */
.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particles span:nth-child(1)  { left: 10%; top: 20%; animation-delay: 0s; }
.particles span:nth-child(2)  { left: 30%; top: 40%; animation-delay: -1s; width: 3px; height: 3px; }
.particles span:nth-child(3)  { left: 50%; top: 15%; animation-delay: -2s; }
.particles span:nth-child(4)  { left: 70%; top: 55%; animation-delay: -3s; width: 5px; height: 5px; }
.particles span:nth-child(5)  { left: 85%; top: 30%; animation-delay: -4s; }
.particles span:nth-child(6)  { left: 15%; top: 60%; animation-delay: -0.5s; width: 3px; height: 3px; }
.particles span:nth-child(7)  { left: 45%; top: 70%; animation-delay: -1.5s; }
.particles span:nth-child(8)  { left: 60%; top: 25%; animation-delay: -2.5s; width: 6px; height: 6px; }
.particles span:nth-child(9)  { left: 80%; top: 50%; animation-delay: -3.5s; }
.particles span:nth-child(10) { left: 25%; top: 80%; animation-delay: -4.5s; width: 3px; height: 3px; }

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-30px) translateX(10px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-15px) translateX(-5px);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-40px) translateX(15px);
    opacity: 0.7;
  }
}

/* =============== MAIN CONTAINER =============== */
.container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

/* =============== LOGO =============== */
.logo {
  width: 100px;
  height: auto;
  margin-bottom: 24px;
  border-radius: 12px;
  animation: fadeInDown 1s ease-out;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

/* =============== HEADLINE =============== */
.headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.caution-tape {
  display: inline-block;
  animation: cautionPulse 2s ease-in-out infinite;
}

.subheadline {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* =============== COUNTDOWN =============== */
.countdown {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.countdown-item {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px 12px;
  min-width: 75px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.countdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #f7c948 0px,
    #f7c948 8px,
    #2c2c2c 8px,
    #2c2c2c 16px
  );
}

.countdown-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(247, 201, 72, 0.3);
}

.countdown-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #f7c948;
  line-height: 1;
  transition: transform 0.3s ease;
}

.countdown-value.pulse {
  animation: countPulse 0.4s ease-out;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.7;
  margin-top: 8px;
}

.countdown-separator {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #f7c948;
  opacity: 0.6;
  animation: separatorBlink 1s ease-in-out infinite;
}

/* =============== PROGRESS BAR =============== */
.progress-section {
  width: 100%;
  max-width: 420px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
  margin-bottom: 8px;
}

.progress-wrapper {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f7c948, #ffdd57, #f7c948);
  background-size: 200% 100%;
  border-radius: 10px;
  transition: width 2s ease-out;
  animation: shimmer 2s linear infinite;
}

.progress-percent {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f7c948;
  margin-top: 8px;
}

/* =============== CONTACT =============== */
.contact {
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 1s both;
}

.contact-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #f7c948;
  border-radius: 3px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-link:hover {
  background: rgba(247, 201, 72, 0.2);
  border-color: rgba(247, 201, 72, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(247, 201, 72, 0.25);
  color: #f7c948;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* =============== FOOTER =============== */
.footer {
  animation: fadeInUp 1s ease-out 1.2s both;
  opacity: 0.5;
  font-size: 0.8rem;
}

/* =============== KEYFRAMES =============== */
@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);
  }
}

@keyframes countPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes cautionPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2) rotate(10deg); }
}

@keyframes separatorBlink {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 0.15; }
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =============== RESPONSIVE =============== */
@media (max-width: 640px) {
  .countdown {
    gap: 6px;
  }

  .countdown-item {
    min-width: 60px;
    padding: 12px 8px;
    border-radius: 12px;
  }

  .countdown-separator {
    font-size: 1.4rem;
  }

  .contact-links {
    gap: 10px;
  }

  .contact-link {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .contact-link span {
    display: none;
  }

  .contact-link .contact-icon {
    width: 24px;
    height: 24px;
  }

  .crane {
    right: 5%;
  }

  .crane-small {
    left: 2%;
    transform: scale(0.4);
  }

  .building {
    opacity: 0.25;
  }

  .worker {
    transform: scale(0.8);
  }

  .worker-1 { left: 15%; }
  .worker-3 { left: 75%; }

  .gear-1 {
    width: 50px;
    height: 50px;
    bottom: 50px;
  }

  .gear-2 {
    width: 35px;
    height: 35px;
    bottom: 80px;
    left: calc(5% + 35px);
  }
}

@media (max-width: 380px) {
  .countdown-item {
    min-width: 52px;
    padding: 10px 6px;
  }

  .countdown-value {
    font-size: 1.6rem;
  }

  .logo {
    width: 70px;
  }
}
