/* ================================================
   WORLD CLOCK SECTION V2
   Clean rebuild — no cursor conflicts
================================================ */

/* ── SECTION ──────────────────────────────────── */
.wc-section {
  position: relative;
  padding: 10rem 0;
  background: #111111;
  color: #ffffff;
  font-family: "Montserrat", system-ui, sans-serif;
  overflow: hidden;

  /* scroll-reveal: hidden by default */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;

  /* CURSOR FIX: explicitly set cursor on section and ALL children.
     This overrides body.airplane-active { cursor:none } cleanly.
     No z-index tricks, no isolation — just cursor property. */
  cursor: auto;
}

.wc-section *,
.wc-section *::before,
.wc-section *::after {
  cursor: auto;
}

.wc-section.wc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CONTAINER ────────────────────────────────── */
.wc-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ── HEADING ──────────────────────────────────── */
.wc-heading {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.wc-heading.wc-heading-show {
  opacity: 1;
  transform: translateY(0);
}

.wc-heading-bg {
  display: block;
  font-size: 8rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -2px;
  color: rgb(39, 39, 39);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  margin-bottom: -3.5rem;
  font-family: "BeyondInfinity", "Beyond Infinity", cursive;
}

.wc-heading-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.wc-heading-underline {
  width: 180px;
  height: 18px;
  margin: 1.5rem auto 22px;
  position: relative;
}

.wc-heading-underline::after {
  content: '';
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: 0;
  height: 100%;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1418 125'><path d='M1412.29 72.17c-11.04-5.78-20.07-14.33-85.46-25.24-22.37-3.63-44.69-7.56-67.07-11.04-167.11-22.06-181.65-21.24-304.94-30.56C888.78 1.39 822.57 1.1 756.44 0c-46.63-.11-93.27 1.56-139.89 2.5C365.5 13.55 452.86 7.68 277.94 23.15 202.57 33.32 127.38 45.01 52.07 55.69c-11.23 2.41-22.63 4.17-33.71 7.22C6.1 66.33 5.64 66.19 3.89 67.79c-7.99 5.78-2.98 20.14 8.72 17.5 33.99-9.47 32.28-8.57 178.06-29.66 4.26 4.48 7.29 3.38 18.42 3.11 13.19-.32 26.38-.53 39.56-1.12 53.51-3.81 106.88-9.62 160.36-13.95 18.41-1.3 36.8-3.12 55.21-4.7 23.21-1.16 46.43-2.29 69.65-3.4 120.28-2.16 85.46-3.13 234.65-1.52 23.42.99 1.57-.18 125.72 6.9 96.61 8.88 200.92 27.94 295.42 46.12 40.87 7.91 116.67 23.2 156.31 36.78 3.81 1.05 8.28-.27 10.51-3.58 3.17-3.72 2.66-9.7-.78-13.13-3.25-3.12-8.14-3.44-12.18-5.08-17.89-5.85-44.19-12.09-63.67-16.56l26.16 3.28c23.02 3.13 46.28 3.92 69.34 6.75 10.8.96 25.43 1.81 34.34-4.39 2.26-1.54 4.86-2.75 6.21-5.27 2.76-4.59 1.13-11.06-3.59-13.68ZM925.4 23.77c37.64 1.4 153.99 10.85 196.64 14.94 45.95 5.51 91.89 11.03 137.76 17.19 24.25 4.77 74.13 11.21 101.72 18.14-11.87-1.15-23.77-1.97-35.65-3.06-133.46-15.9-266.8-33.02-400.47-47.21Z' fill='%23f36e36'></path></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.wc-heading-sub {
  max-width: 700px;
  margin: 1.5rem auto 0;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ── GRID ─────────────────────────────────────── */
.wc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3rem 2rem;
  align-items: start;
}

/* ── CLOCK ITEM ───────────────────────────────── */
.wc-item {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wc-item.wc-item-show {
  opacity: 1;
  transform: translateY(0);
}

/* ── CLOCK FACE ───────────────────────────────── */
.wc-clock {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  position: relative;
  transition: transform 0.3s ease;
}

.wc-item:hover .wc-clock {
  transform: scale(1.05);
}

.wc-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(243, 110, 54, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  /* isolation:isolate scopes z-index of hands/flag to this clock only.
     It does NOT affect position:fixed on parent — safe to use here. */
  isolation: isolate;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.wc-item:hover .wc-face {
  border-color: #f36e36;
}

/* ── FLAG ─────────────────────────────────────── */
.wc-flag {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.wc-flag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.87);
  z-index: 2;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.wc-item:hover .wc-flag::before {
  background: rgba(0, 0, 0, 0.48);
}

.wc-flag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
  user-select: none;
}

/* ── MARKERS ──────────────────────────────────── */
.wc-mark {
  position: absolute;
  width: 2px;
  height: 10px;
  background: #f36e36;
  z-index: 3;
}

.wc-m12 { top: 10px;    left: 50%; transform: translateX(-50%); }
.wc-m3  { right: 10px;  top: 50%;  transform: translateY(-50%) rotate(90deg); }
.wc-m6  { bottom: 10px; left: 50%; transform: translateX(-50%); }
.wc-m9  { left: 10px;   top: 50%;  transform: translateY(-50%) rotate(90deg); }

/* ── HANDS ────────────────────────────────────── */
.wc-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 2px;
  z-index: 4;
  /* No transition — JS sets transform directly every rAF tick */
}

.wc-hour {
  width: 4px;
  height: 40px;
  background: #ffffff;
  margin-left: -2px;
}

.wc-minute {
  width: 3px;
  height: 55px;
  background: #f36e36;
  margin-left: -1.5px;
}

.wc-second {
  width: 2px;
  height: 65px;
  background: #f36e36;
  margin-left: -1px;
}

/* ── CENTER DOT ───────────────────────────────── */
.wc-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #f36e36;
  border: 2px solid #ffffff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* ── LABELS ───────────────────────────────────── */
.wc-country {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
  white-space: normal;
  word-break: break-word;
}

.wc-digital {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f36e36;
  margin: 0 0 0.3rem;
  font-family: "Roboto Mono", "SF Mono", monospace;
  letter-spacing: 1px;
}

.wc-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (min-width: 1025px) and (max-width: 1199px) {
  .wc-grid  { gap: 2.5rem 1.5rem; }
  .wc-clock { width: 145px; height: 145px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .wc-section       { padding: 7rem 0; }
  .wc-grid          { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.8rem; }
  .wc-clock         { width: 130px; height: 130px; }
  .wc-heading-bg    { font-size: 5rem; margin-bottom: -2.5rem; }
  .wc-heading-title { font-size: 2.5rem; }
  .wc-country       { font-size: 1rem; }
  .wc-digital       { font-size: 1.15rem; }
}

@media (min-width: 481px) and (max-width: 767px) {
  .wc-section       { padding: 5rem 0; }
  .wc-container     { padding: 0 1.5rem; }
  .wc-heading       { margin-bottom: 3.5rem; }
  .wc-grid          { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.2rem; }
  .wc-clock         { width: 105px; height: 105px; margin-bottom: 0.7rem; }
  .wc-heading-bg    { font-size: 3.5rem; margin-bottom: -1.8rem; }
  .wc-heading-title { font-size: 2rem; }
  .wc-heading-sub   { font-size: 0.9rem; }
  .wc-country       { font-size: 0.85rem; margin-bottom: 0.35rem; }
  .wc-digital       { font-size: 1rem; margin-bottom: 0.25rem; }
  .wc-date          { font-size: 0.7rem; }
  .wc-hour          { width: 3px;   height: 30px; margin-left: -1.5px; }
  .wc-minute        { width: 2px;   height: 42px; margin-left: -1px; }
  .wc-second        { width: 1px;   height: 48px; margin-left: -0.5px; }
  .wc-dot           { width: 8px;   height: 8px;  border-width: 1px; }
  .wc-mark          { width: 1px;   height: 7px; }
}

@media (max-width: 480px) {
  .wc-section       { padding: 4rem 0 3rem; }
  .wc-container     { padding: 0 1rem; }
  .wc-heading       { margin-bottom: 2.5rem; }
  .wc-grid          { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 0.8rem; }
  .wc-clock         { width: 85px;  height: 85px; margin-bottom: 0.5rem; }
  .wc-face          { border-width: 1px; }
  .wc-heading-bg    { font-size: 2.5rem; margin-bottom: -1.2rem; }
  .wc-heading-title { font-size: 1.6rem; }
  .wc-heading-sub   { font-size: 0.85rem; }
  .wc-country       { font-size: 0.75rem; margin-bottom: 0.3rem; }
  .wc-digital       { font-size: 0.85rem; margin-bottom: 0.2rem; letter-spacing: 0.5px; }
  .wc-date          { font-size: 0.65rem; }
  .wc-hour          { width: 2px;   height: 24px; margin-left: -1px; }
  .wc-minute        { width: 1.5px; height: 32px; margin-left: -0.75px; }
  .wc-second        { width: 1px;   height: 38px; margin-left: -0.5px; }
  .wc-dot           { width: 6px;   height: 6px;  border-width: 1px; }
  .wc-mark          { width: 1px;   height: 5px; }
  .wc-m12           { top: 6px; }
  .wc-m3            { right: 6px; }
  .wc-m6            { bottom: 6px; }
  .wc-m9            { left: 6px; }
}

@media (max-width: 400px) {
  .wc-section       { padding: 3.5rem 0 2.5rem; }
  .wc-grid          { gap: 1.3rem 0.6rem; }
  .wc-clock         { width: 78px; height: 78px; margin-bottom: 0.4rem; }
  .wc-heading-bg    { font-size: 2.2rem; margin-bottom: -1rem; }
  .wc-heading-title { font-size: 1.4rem; }
  .wc-country       { font-size: 0.7rem; }
  .wc-digital       { font-size: 0.8rem; }
  .wc-date          { font-size: 0.6rem; }
}

@media (max-width: 360px) {
  .wc-section       { padding: 3rem 0 2rem; }
  .wc-container     { padding: 0 0.8rem; }
  .wc-heading       { margin-bottom: 2rem; }
  .wc-grid          { gap: 1.2rem 0.5rem; }
  .wc-clock         { width: 72px; height: 72px; margin-bottom: 0.35rem; }
  .wc-heading-bg    { font-size: 2rem; margin-bottom: -0.9rem; }
  .wc-heading-title { font-size: 1.3rem; }
  .wc-heading-sub   { font-size: 0.8rem; }
  .wc-country       { font-size: 0.68rem; margin-bottom: 0.25rem; }
  .wc-digital       { font-size: 0.75rem; letter-spacing: 0.3px; }
  .wc-date          { font-size: 0.58rem; }
  .wc-hour          { width: 2px; height: 20px; margin-left: -1px; }
  .wc-minute        { width: 1px; height: 28px; margin-left: -0.5px; }
  .wc-second        { width: 1px; height: 32px; margin-left: -0.5px; }
  .wc-dot           { width: 5px; height: 5px; border-width: 1px; }
  .wc-mark          { width: 1px; height: 4px; }
  .wc-m12           { top: 5px; }
  .wc-m3            { right: 5px; }
  .wc-m6            { bottom: 5px; }
  .wc-m9            { left: 5px; }
}

/* Disable hover scale on touch */
@media (max-width: 767px) {
  .wc-item:hover .wc-clock { transform: none; }
  .wc-item:hover .wc-face  { border-color: rgba(243, 110, 54, 0.3); }
  .wc-item:hover .wc-flag::before { background: rgba(0, 0, 0, 0.87); }
}

@media (prefers-reduced-motion: reduce) {
  .wc-section,
  .wc-heading,
  .wc-item { transition: none !important; animation: none !important; }
}