/* ── Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #f4f7ff;
  --bg2:          #eaefff;
  --accent:       #5b4ef5;
  --accent2:      #0ea5e9;
  --text:         #1a1f36;
  --text-muted:   #64748b;
  --glass-bg:     rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.95);
  --shadow:       0 8px 32px rgba(91,78,245,.10);
  --radius:       20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Glass card ────────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Navbar ────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(91,78,245,.10);
  border-bottom: 1px solid rgba(91,78,245,.08);
}
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.nav-logo img { height: 36px; border-radius: 8px; }
.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: .75; }
#navbar.scrolled .nav-links a { color: var(--text-muted); }
#navbar.scrolled .nav-links a:hover { color: var(--accent); }

/* Language selector */
#lang-selector {
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  color: #fff;
  padding: .3rem .7rem;
  font-size: .85rem;
  cursor: pointer;
  outline: none;
  transition: background .3s, color .3s, border-color .3s;
}
#lang-selector option { background: #fff; color: var(--text); }
#navbar.scrolled #lang-selector {
  background: var(--bg2);
  border-color: rgba(91,78,245,.2);
  color: var(--text);
}

/* Mobile menu toggle */
#menu-toggle {
  display: none; background: none; border: none;
  color: #fff; cursor: pointer;
  transition: color .3s;
}
#navbar.scrolled #menu-toggle { color: var(--text); }

/* ── Hero ──────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    /* gentle dark vignette only at top & bottom edges */
    linear-gradient(to bottom,
      rgba(10,15,30,.30) 0%,
      rgba(10,15,30,.05) 45%,
      rgba(10,15,30,.05) 60%,
      rgba(10,15,30,.40) 100%),
    /* travel hero photo — bright & vivid */
    url('https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?w=1920&auto=format&fit=crop&q=85')
      center / cover no-repeat;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 720px; padding: 2rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: .35rem 1.1rem;
  font-size: .8rem;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(10,15,30,.3);
}
.hero-title .gradient {
  background: linear-gradient(90deg, #ffe066, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(10,15,30,.3);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff;
  color: var(--accent);
  border: none;
  border-radius: 50px;
  padding: .9rem 2.4rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,0.7); font-size: .75rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ── Sections ──────────────────────────────────────────────────────── */
section { padding: 6rem 2rem; }
.section-label {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem; font-weight: 600;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; margin-bottom: 1rem;
  color: var(--text);
}
.section-subtitle { color: var(--text-muted); max-width: 560px; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-subtitle { margin: 0 auto; }

/* ── Features ──────────────────────────────────────────────────────── */
#features { background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}
.feature-card {
  padding: 2.2rem 2rem;
  background: var(--bg);
  border: 1px solid rgba(91,78,245,.10);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(91,78,245,.07);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(91,78,245,.14);
}
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(91,78,245,.12), rgba(14,165,233,.10));
  border: 1px solid rgba(91,78,245,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.2rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: .93rem; line-height: 1.65; }

/* ── Destinations ──────────────────────────────────────────────────── */
#destinations { background: var(--bg); }
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}
.dest-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.10);
  transition: box-shadow .3s;
}
.dest-card:hover { box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.dest-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.dest-card:hover img { transform: scale(1.06); }
.dest-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,.75) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
}
.dest-tag {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: #ffe066; margin-bottom: .3rem; font-weight: 600;
}
.dest-name { font-size: 1.4rem; font-weight: 700; color: #fff; }
.dest-desc { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: .3rem; }

/* ── Support ───────────────────────────────────────────────────────── */
#support { background: #fff; }
.support-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.support-card {
  padding: 2.2rem 1.8rem;
  background: var(--bg);
  border: 1px solid rgba(91,78,245,.10);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(91,78,245,.07);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  transition: transform .25s, box-shadow .25s;
}
.support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(91,78,245,.14);
}
.support-card-icon {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(91,78,245,.12), rgba(14,165,233,.10));
  border: 1px solid rgba(91,78,245,.15);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.support-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.support-card p { color: var(--text-muted); font-size: .87rem; line-height: 1.55; }
.support-btn {
  margin-top: .4rem;
  display: inline-flex; align-items: center; gap: .4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .65rem 1.6rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(91,78,245,.28);
}
.support-btn:hover { opacity: .88; transform: translateY(-2px); }

/* WebRTC widget button override */
#webrtc-container { width: 100%; }
click-to-call-widget::part(button) {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  padding: .65rem 1.6rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  font-family: inherit;
  font-weight: 600;
  width: auto;
  box-shadow: 0 4px 16px rgba(91,78,245,.28);
}
click-to-call-widget::part(button)::after {
  content: "📞 Web Call";
  color: #ffffff;
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg2);
  color: var(--text-muted);
  font-size: .85rem;
  border-top: 1px solid rgba(91,78,245,.08);
}

/* ── Animations ────────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 1.2rem; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(91,78,245,.08);
    box-shadow: 0 8px 24px rgba(91,78,245,.10);
  }
  .nav-links.open a { color: var(--text-muted) !important; }
  .nav-links.open a:hover { color: var(--accent) !important; }
  #menu-toggle { display: block; }
  section { padding: 4rem 1.2rem; }
  .destinations-grid { grid-template-columns: 1fr; }
}
