@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #071224;
  --bg-secondary: #0c1730;
  --surface: rgba(14, 23, 43, 0.72);
  --surface-card: rgba(18, 28, 52, 0.88);

  --text-primary: #f5f7ff;
  --text-secondary: #a8b3cf;
  --text-muted: #7d8aaa;

  --border-soft: rgba(255, 255, 255, 0.08);

  --accent-primary: #7c5cff;
  --accent-secondary: #4da3ff;
  --accent-highlight: #a970ff;

  --shadow-lg: 0 20px 60px rgba(2, 8, 23, 0.45);
  --shadow-md: 0 12px 30px rgba(2, 8, 23, 0.35);
  --shadow-sm: 0 8px 18px rgba(2, 8, 23, 0.28);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --container-width: 1240px;
  --transition: 0.3s ease;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.12), transparent 28%),
    radial-gradient(circle at right center, rgba(77, 163, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #081121 0%, #071224 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ================= BACKGROUND DECOR ================= */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.8;
  pointer-events: none;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(124, 92, 255, 0.16);
  top: 120px;
  left: -80px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: rgba(77, 163, 255, 0.12);
  right: -100px;
  top: 360px;
}

.bg-grid {
  position: fixed;
  width: 160px;
  height: 240px;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(124, 92, 255, 0.6) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.left-grid {
  left: 0;
  top: 340px;
}

.right-grid {
  right: 0;
  bottom: 120px;
}

/* ================= HEADER / NAV ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 20px 24px 0;
}

.navbar {
  max-width: var(--container-width);
  margin: 0 auto;
  min-height: 84px;
  padding: 16px 20px;
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-text span {
  background: linear-gradient(135deg, var(--accent-highlight), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  opacity: 0.88;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 1;
}

.portfolio-btn {
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #8b5cf6, #6d5efc);
  padding: 14px 22px;
  border-radius: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}

.portfolio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(124, 92, 255, 0.36);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
}

/* ================= PAGE SHELL ================= */
.page-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 46px 24px 70px;
}

/* ================= HERO ================= */
.map-hero {
  position: relative;
  padding: 34px 18px 24px;
  text-align: center;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.28);
  color: #d8d4ff;
  font-size: 0.95rem;
  font-weight: 600;
}

.map-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.map-hero h1 span {
  background: linear-gradient(135deg, #a970ff 0%, #7c5cff 50%, #4da3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 850px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.85;
}

/* ================= SECTIONS ================= */
.content-section {
  margin-top: 52px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.section-heading .line {
  width: 120px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* ================= MAP CARD ================= */
.map-card {
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    linear-gradient(180deg, rgba(21, 31, 58, 0.92), rgba(14, 22, 42, 0.98));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 28px rgba(0,0,0,0.24);
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.map-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.map-text {
  min-width: 0;
}

.map-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: white;
  flex-shrink: 0;
  background: linear-gradient(135deg, #8d61ff, #4da3ff);
  box-shadow:
    0 14px 30px rgba(124, 92, 255, 0.24),
    inset 0 2px 6px rgba(255,255,255,0.2);
}

.map-header-left h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  line-height: 1.25;
}

.map-header-left p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.96rem;
}

.map-open-btn {
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #8b5cf6, #6d5efc);
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}

.map-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(124, 92, 255, 0.36);
}

.map-frame-wrapper {
  padding: 18px;
}

.map-frame-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  height: 70vh;
  max-height: 760px;
  border: 0;
  border-radius: 24px;
  background: #0a1222;
}

/* ================= TIPS ================= */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 22px;
}

.tip-card {
  padding: 26px 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    linear-gradient(180deg, rgba(21, 31, 58, 0.92), rgba(14, 22, 42, 0.98));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 28px rgba(0,0,0,0.24);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.28);
}

.tip-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: white;
  margin-bottom: 18px;
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.2),
    0 10px 24px rgba(0,0,0,0.28);
}

.tip-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.tip-card p {
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ================= NOTE CARD ================= */
.note-card {
  text-align: center;
  padding: 34px 28px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    linear-gradient(180deg, rgba(21, 31, 58, 0.92), rgba(14, 22, 42, 0.98));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 28px rgba(0,0,0,0.24);
}

.note-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: white;
  background: linear-gradient(135deg, #7c5cff, #4da3ff);
  box-shadow:
    0 14px 32px rgba(124, 92, 255, 0.28),
    inset 0 2px 6px rgba(255,255,255,0.2);
}

.note-card h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.note-card p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1rem;
}

.back-home-btn {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #8b5cf6, #6d5efc);
  padding: 15px 24px;
  border-radius: 18px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}

.back-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(124, 92, 255, 0.36);
}

/* ================= ACCENTS ================= */
.tip-card.accent-blue .tip-icon {
  background: linear-gradient(135deg, #56a9ff, #3f73ff);
}

.tip-card.accent-green .tip-icon {
  background: linear-gradient(135deg, #7de26d, #3ec96b);
}

.tip-card.accent-coral .tip-icon {
  background: linear-gradient(135deg, #ff7f6f, #ff5f6d);
}

/* ================= FOOTER ================= */
.footer {
  max-width: var(--container-width);
  margin: 10px auto 30px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-secondary);
}

.footer p {
  font-size: 0.95rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .map-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-header-left {
    width: 100%;
  }

  .map-open-btn {
    width: 100%;
  }

  .map-frame-wrapper iframe {
    min-height: 500px;
    height: 60vh;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 14px 0;
  }

  .navbar {
    min-height: auto;
    padding: 16px;
    border-radius: 20px;
    position: relative;
    flex-wrap: wrap;
  }

  .brand-text {
    font-size: 1.7rem;
  }

  .menu-toggle {
    display: block;
  }

  .portfolio-btn {
    display: none;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 16px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li a {
    width: 100%;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
  }

  .page-shell {
    padding: 28px 16px 50px;
  }

  .map-hero {
    padding: 12px 0 10px;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.75;
  }

  .content-section {
    margin-top: 40px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-heading .line {
    width: 52px;
  }

  .map-header {
    padding: 18px;
    gap: 16px;
  }

  .map-header-left {
    align-items: flex-start;
    gap: 14px;
  }

  .map-header-left h3 {
    font-size: 1.15rem;
  }

  .map-header-left p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .map-open-btn {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.95rem;
  }

  .map-frame-wrapper {
    padding: 14px;
  }

  .map-frame-wrapper iframe {
    min-height: 420px;
    height: 52vh;
    border-radius: 20px;
  }

  .tip-card,
  .note-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .note-card h3,
  .tip-card h3 {
    font-size: 1.3rem;
  }

  .tip-card p,
  .note-card p {
    font-size: 0.94rem;
  }

  .back-home-btn {
    width: 100%;
    justify-content: center;
  }

  .footer {
    margin: 8px 14px 24px;
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
  }
}

@media (max-width: 480px) {
  .map-hero h1 {
    font-size: 2.05rem;
  }

  .map-header-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-icon,
  .tip-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 1.5rem;
  }

  .note-icon {
    width: 70px;
    height: 70px;
    font-size: 1.85rem;
  }

  .map-frame-wrapper {
    padding: 12px;
  }

  .map-frame-wrapper iframe {
    min-height: 320px;
    height: 44vh;
    border-radius: 18px;
  }
}