html, body { overflow-y: auto; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #f7f7f7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Brand variables */
:root {
  --brand-grad-start: #ff4d8d;
  --brand-grad-mid: #a855f7;
  --brand-grad-end: #6366f1;
  --brand-underline: linear-gradient(90deg, var(--brand-grad-start) 0%, var(--brand-grad-mid) 50%, var(--brand-grad-end) 100%);
}
.container {
  display: flex;
  width: 80vw;
  height: 70vh;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-radius: 24px;
  overflow: hidden;
  flex-direction: row;
}
.left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  min-width: 300px;
  position: relative;
  padding: 24px 0;
}
#logo-svg {
  display: block;
  margin: auto;
  width: 416px;
  height: 416px;
  max-width: 90vw;
  max-height: 50vh;
  position: relative;
  transition: width 0.3s, height 0.3s;
}
.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: #fff;
  padding: 24px 0;
}
.links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 320px;
}
.link {
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  width: 100%;
  box-sizing: border-box;
}
.link.booking { background: #003580; color: #fff; }
.link.airbnb { background: #FF5A5F; color: #fff; }
.link.agoda { background: #008FE5; color: #fff; }
.link.facebook { background: #1877F3; color: #fff; }
.link.instagram { background: linear-gradient(90deg,#fd5949,#d6249f,#285AEB); color: #fff; }
.link:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
/* SVG animation styles */
.svg-box, .svg-line {
  opacity: 0;
  transition: opacity 0.8s;
}
.svg-line { pointer-events: none; }
.svg-box.visible, .svg-line.visible {
  opacity: 1;
}
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    width: 98vw;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
  }
  .left, .right {
    min-width: 0;
    width: 100%;
    padding: 32px 0;
  }
  #logo-svg {
    width: 80vw;
    height: auto;
    max-height: 40vh;
  }
  .links {
    max-width: 90vw;
  }
  .link {
    font-size: 1rem;
    padding: 12px 0;
  }
}

/* Optimize for short viewport heights on desktop */
@media (max-height: 750px) and (min-width: 901px) {
  .container { height: auto; border-radius: 18px; }
  .left, .right { padding: 16px 0; }
  #logo-svg { max-height: 34vh; width: auto; }
  .right { gap: 20px; }
  .links { gap: 16px; max-width: 300px; }
  .link { padding: 12px 22px; font-size: 1.05rem; }
  .right h1 { font-size: clamp(1.4rem, 1rem + 1vw, 2rem); }
}

@media (max-height: 600px) and (min-width: 901px) {
  #logo-svg { max-height: 28vh; }
  .links { gap: 12px; }
  .link { padding: 10px 18px; font-size: 1rem; }
}

/* Brand gradient for H1 text */
.brand-gradient {
  background: linear-gradient(90deg, var(--brand-grad-start) 0%, var(--brand-grad-mid) 50%, var(--brand-grad-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  text-align: center;
}

/* Fallback when background-clip:text is unsupported */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .brand-gradient { color: #a855f7; -webkit-text-fill-color: initial; }
}

/* H1 spacing + responsive sizing */
.right h1 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.2px;
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.6rem);
  text-align: center;
}
/* Subtle gradient underline accent */
.right h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: var(--brand-underline);
}
@supports (text-wrap: balance) {
  .right h1 { text-wrap: balance; }
}

/* Beautiful button hover animation */
.link {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  will-change: transform, box-shadow;
}
.link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.link:active { transform: translateY(0) scale(0.985); }
.link:focus-visible {
  outline: 3px solid rgba(255,255,255,0.85);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.25), 0 10px 24px rgba(0,0,0,0.18);
}
.link::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -150%;
  width: 60%;
  height: 220%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-150%) rotate(25deg);
  pointer-events: none;
}

/* SVG rect hover: slight scale and lighten toward white */
.svg-box {
  --svg-box-scale: 1.03;
  transition: opacity 0.8s, transform 0.2s ease, filter 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.svg-box:hover {
  transform: scale(var(--svg-box-scale));
  filter: brightness(1.1) drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* Reduced motion: disable heavy animations */
@media (prefers-reduced-motion: reduce) {
  .link, .svg-box { transition: none !important; }
  .link:hover, .link:active { transform: none !important; }
  .link:hover::before { animation: none !important; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body { background: #0f1115; }
  .container { background: #151923; box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
  .left { background: #0f1115; }
  .right { background: #151923; color: #e6e6e6; }
  .link:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.35); }
}
