/* ============================================
   Terra Lanna TRAVEL — MAIN CSS
   Global variables, resets, typography
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700&family=Barlow:wght@300;400;500&display=swap');

/* --- CSS VARIABLES --- */
:root {
  /* Brand Colors */
  --color-black:    #080810;
  --color-bg:       #0d0d18;
  --color-surface:  #13131f;
  --color-card:     #1a1a2e;
  --color-border:   #2a2a45;

  --color-blue:     #0057ff;
  --color-blue-glow:#0080ff;
  --color-blue-dim: #003db3;
  --color-red:      #ff1e1e;
  --color-red-dim:  #cc0000;
  --color-gold:     #ffd700;
  --color-gold-dim: #cc9e00;
  --color-white:    #f0f0ff;
  --color-muted:    #8888aa;

  /* Typography */
  --font-display:  'Bebas Neue', sans-serif;
  --font-heading:  'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;

  /* Layout */
  --header-height: 64px;
  --max-width:     1280px;
  --radius:        8px;
  --radius-lg:     16px;

  /* Transitions */
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* --- UTILITY CLASSES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--color-white);
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-muted);
  margin-top: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--red   { background: var(--color-red);  color: #fff; }
.badge--blue  { background: var(--color-blue); color: #fff; }
.badge--gold  { background: var(--color-gold); color: #000; }
.badge--empty { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-red);
  color: #fff;
  border: 2px solid var(--color-red);
}
.btn--primary:hover {
  background: transparent;
  color: var(--color-red);
  box-shadow: 0 0 20px rgba(255,30,30,0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--color-blue-glow);
  border: 2px solid var(--color-blue-glow);
}
.btn--secondary:hover {
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(0,128,255,0.4);
}

.btn--gold {
  background: var(--color-gold);
  color: #000;
  border: 2px solid var(--color-gold);
  font-size: 1.1rem;
  padding: 14px 36px;
}
.btn--gold:hover {
  background: transparent;
  color: var(--color-gold);
  box-shadow: 0 0 30px rgba(255,215,0,0.5);
}

/* --- TAG CHIPS --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 10px;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

/* --- NOISE TEXTURE OVERLAY --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* --- PAGE TRANSITION --- */
.page {
  display: none;
  animation: fadeIn 0.4s ease;
}
.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-blue-dim); }

/* --- RESPONSIVE UTILITIES --- */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
}
