/* 
  Gavyn - Minimalist Editorial Personal Portfolio CSS
  Theme: Adaptive Light/Dark Mode (Pitch Black & Gold VS Warm Cream & Bronze-Gold)
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  /* Default: Dark Theme (Pitch Black & Premium Gold) */
  --bg-main: #050505;
  --bg-secondary: #0a0a0c;
  --text-primary: #F5F5F7;
  --text-secondary: #A1A1A6;
  --text-muted: #6E6E73;
  --gold-primary: #D4AF37;
  --gold-secondary: #AA7C11;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --gold-glow-dim: rgba(212, 175, 55, 0.15);
  --gold-glow-soft: rgba(212, 175, 55, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(212, 175, 55, 0.15);
  --glass-border-hover: rgba(212, 175, 55, 0.45);
  --header-bg: rgba(5, 5, 5, 0.4);
  --scrollbar-bg: #050505;
  --overlay-start: rgba(5, 5, 5, 0.55);
  --overlay-mid: rgba(5, 5, 5, 0.45);
  --overlay-end: rgba(5, 5, 5, 0.85);

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 12px;
}

body.light-theme {
  /* Light Theme (Warm Cream & Muted Bronze-Gold) */
  --bg-main: #F9F6F0; /* Elegant Warm Paper Cream */
  --bg-secondary: #F0EDE6; /* Slightly darker cream */
  --text-primary: #1C1917; /* High-contrast Charcoal */
  --text-secondary: #57534E; /* Slate-stone secondary */
  --text-muted: #8C8A84; /* Muted stone */
  --gold-primary: #9A7B3E; /* Muted Bronze Gold */
  --gold-secondary: #765D2F; /* Darker Gold Bronze */
  --gold-glow: rgba(154, 123, 62, 0.25);
  --gold-glow-dim: rgba(154, 123, 62, 0.12);
  --gold-glow-soft: rgba(154, 123, 62, 0.03);
  --glass-bg: rgba(28, 25, 23, 0.02); /* Extremely subtle paper overlay */
  --glass-border: rgba(154, 123, 62, 0.2);
  --glass-border-hover: rgba(154, 123, 62, 0.5);
  --header-bg: rgba(249, 246, 240, 0.85);
  --scrollbar-bg: #F9F6F0;
  --overlay-start: rgba(249, 246, 240, 0.45);
  --overlay-mid: rgba(249, 246, 240, 0.3);
  --overlay-end: rgba(249, 246, 240, 0.75);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', 'Inter', 'Anuphan', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typography Font Pairings */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', 'Anuphan', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p, span, li, a, button {
  font-family: 'Plus Jakarta Sans', 'Inter', 'Anuphan', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-secondary);
  border-radius: 10px;
  border: 2px solid var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Decorative Background Glows (Hide in Light Theme to avoid clash) */
.glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

body.light-theme .glow-container {
  opacity: 0.15; /* Extremely faded glows in light theme */
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow-soft) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.8;
}

.glow-1 { top: 10%; right: -10%; width: 600px; height: 600px; }
.glow-2 { top: 40%; left: -20%; width: 800px; height: 800px; }
.glow-3 { bottom: 10%; right: -10%; width: 700px; height: 700px; }

/* Editorial Glassmorphism Card Utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(154, 123, 62, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 0;
}

/* Dynamic cursor-tracking gold spotlight */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 175, 55, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 0 15px var(--gold-glow-soft);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover::after {
  opacity: 1;
}

.glass-card > * {
  position: relative;
  z-index: 2;
}


/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Header Styles */
section {
  padding: 8rem 0;
  position: relative;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  text-align: center;
  display: block;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-align: center;
  position: relative;
}

.section-title span {
  font-style: italic;
  font-family: inherit;
  color: var(--gold-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 85px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(154, 123, 62, 0.05);
  transition: var(--transition-smooth);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.02em;
}

.nav-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-glow-dim);
  transition: width 0.3s ease, height 0.3s ease;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover, nav a.active {
  color: var(--gold-primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--gold-primary);
  transition: var(--transition-smooth);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.05rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.theme-toggle-btn:hover {
  color: var(--gold-primary);
  background: rgba(154, 123, 62, 0.05);
  border-color: rgba(154, 123, 62, 0.1);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
}

/* --- CINEMATIC HERO SECTION --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 85px;
  text-align: center;
}

/* Background Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide-item.active {
  opacity: 1;
}

.slide-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

/* Overlay gradient layers matching light/dark theme variables */
.slideshow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--overlay-start) 0%, var(--overlay-mid) 40%, var(--overlay-end) 100%);
  z-index: 1;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

.hero-title span {
  font-style: italic;
  font-family: inherit;
  color: var(--gold-primary);
}

.hero-desc {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.hero-desc mark {
  background: transparent;
  color: var(--gold-primary);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

/* Button Customizations */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* Text Scramble Button — locked dimensions */
.btn-scramble {
  overflow: hidden;
  white-space: nowrap;
}

.scramble-text {
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.scramble-text.is-scrambling {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--gold-primary);
  color: var(--bg-main);
  box-shadow: 0 4px 15px var(--gold-glow-dim);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--gold-glow);
  background-color: var(--text-primary);
  color: var(--bg-main);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  background: rgba(154, 123, 62, 0.05);
}

/* Slideshow Bottom Navigation Dots */
.slideshow-dots {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

body.light-theme .slide-dot {
  background: rgba(0, 0, 0, 0.15);
}

.slide-dot.active {
  width: 20px;
  border-radius: 10px;
  background: var(--gold-primary);
}

/* --- EXPERIENCE & HORIZONTAL SCROLL SECTION --- */
.carousel-outer {
  position: relative;
  width: 100%;
}

/* Snapping horizontal scroller */
.carousel-viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 2rem;
  padding: 1.5rem 0.5rem;
  scrollbar-width: none; /* Firefox hide scrollbar */
  -ms-overflow-style: none; /* IE hide scrollbar */
}

.carousel-viewport::-webkit-scrollbar {
  display: none; /* Chrome/Safari hide scrollbar */
}

/* Slide Cards */
.carousel-card {
  flex-shrink: 0;
  width: 440px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
}

.carousel-card-narrow {
  width: 320px;
}

.carousel-card.glass-card {
  padding: 2rem;
}

.carousel-date {
  font-size: 0.8rem;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.carousel-title {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.carousel-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.carousel-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Masterpiece Horizontal Card */
.masterpiece-editorial {
  width: 780px; /* Extra-wide for masterpiece */
  scroll-snap-align: center;
}

.masterpiece-editorial-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  height: 100%;
}

.edit-feature-badge {
  background: var(--gold-glow-dim);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 1rem;
}

.edit-currencies {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.edit-flag {
  background: rgba(154, 123, 62, 0.06);
  border: 1px solid var(--glass-border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.edit-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.edit-features-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-features-list li i {
  color: var(--gold-primary);
}

.edit-visual-area {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, var(--gold-glow-soft) 0%, transparent 70%);
  border-radius: var(--border-radius-md);
  border: 1px dashed var(--glass-border);
  overflow: hidden; /* Clips the image beautifully to the rounded corners */
  position: relative;
}

.edit-visual-area i {
  font-size: 6rem;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 15px var(--gold-glow));
  animation: pulse-gold 4s infinite alternate ease-in-out;
}

.project-preview-picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.edit-visual-area:hover .project-preview-img {
  transform: scale(1.05);
}

/* Carousel Control Arrows */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.ctrl-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(154, 123, 62, 0.05);
}

/* --- EDITORIAL ABOUT SECTION --- */
.about-columns {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 4rem;
  align-items: flex-start;
}

.about-left h2 {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.about-left h2 span {
  font-style: italic;
  color: var(--gold-primary);
}

.about-right-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- NEWSPAPER EDUCATION & JOURNEY SECTION --- */
.newspaper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  position: relative;
}

.news-column {
  display: flex;
  flex-direction: column;
}

.news-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.news-col-title {
  font-size: 1.6rem;
  font-weight: 600;
}

.news-col-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Newspaper Articles inside Columns */
.news-article {
  margin-bottom: 3rem;
}

.news-article:last-child {
  margin-bottom: 0;
}

.news-art-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.news-art-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.news-art-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.news-art-school {
  font-size: 0.85rem;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.news-art-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* News China Trip list */
.news-trips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-trip-item {
  border-bottom: 1px dashed var(--glass-border);
  padding-bottom: 1rem;
}

.news-trip-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-trip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.news-trip-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.news-trip-dur {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.news-trip-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- SKILLS SECTION --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: var(--border-radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(212, 175, 55, 0.03);
  transition: var(--transition-smooth);
}

.skill-card:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.15);
}

.skill-icon-wrapper {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon-wrapper {
  color: var(--gold-primary);
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
}

.skill-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.skill-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- CONTACT SECTION (FOOTER) --- */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 3rem 0;
  transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.footer-left h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-left h2 span {
  font-style: italic;
  color: var(--gold-primary);
}

.footer-left p {
  color: var(--text-secondary);
  max-width: 450px;
  margin-bottom: 2rem;
  font-size: 0.92rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  color: var(--bg-main);
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.footer-right-card {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--border-radius-md);
  padding: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-sm);
  background: var(--gold-glow-soft);
  border: 1px solid rgba(154, 123, 62, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1rem;
}

.contact-details h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.1rem;
}

.contact-details p {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.contact-item:hover .contact-details p {
  color: var(--gold-primary);
}

/* ============================================
   Premium Location Tag Capsule — 21st.dev style
   ============================================ */
.location-capsule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 15, 15, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  padding: 8px 18px 8px 14px;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', 'Inter', 'Anuphan', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
  transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.location-capsule:hover {
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(20, 20, 20, 0.85);
  box-shadow:
    0 0 20px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Pulsing live green dot */
.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: locationPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes locationPing {
  75%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Sliding text container */
.location-text-slider {
  position: relative;
  height: 22px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.location-text {
  display: inline-block;
  line-height: 22px;
  white-space: nowrap;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-text.text-primary {
  transform: translateY(0);
  opacity: 1;
}

.location-text.text-secondary {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transform: translateY(100%);
  opacity: 0;
  color: var(--gold-primary);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* Hover & Active triggers */
.location-capsule:hover .location-text.text-primary,
.location-capsule.is-active .location-text.text-primary {
  transform: translateY(-100%);
  opacity: 0;
}

.location-capsule:hover .location-text.text-secondary,
.location-capsule.is-active .location-text.text-secondary {
  transform: translateY(0);
  opacity: 1;
}

/* Arrow indicator on the right */
.location-arrow {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  opacity: 0.6;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-capsule:hover .location-arrow,
.location-capsule.is-active .location-arrow {
  transform: translateX(3px) rotate(-45deg);
  opacity: 1;
  color: var(--gold-primary);
}


.footer-copyright {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-copyright a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-copyright a:hover {
  color: var(--gold-primary);
}




/* --- JAVASCRIPT FALLBACK CLASS FOR SCROLL REVEALS --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet Viewport (max-width: 992px) */
@media screen and (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  #hero {
    padding-top: 100px;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .carousel-card {
    width: 360px;
  }
  
  .masterpiece-editorial {
    width: 580px;
  }
  
  .masterpiece-editorial-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .edit-visual-area {
    height: 200px;
  }
  
  .about-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .newspaper-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Mobile Viewport (max-width: 768px) */
@media screen and (max-width: 768px) {
  section {
    padding: 5rem 0;
  }
  
  header {
    height: 70px;
  }

  .nav-brand-logo {
    width: 38px;
    height: 38px;
  }
  
  /* Mobile Hamburger navigation slide-in menu */
  .mobile-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-main);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    transform: translateX(100%);
    transition: var(--transition-smooth);
  }
  
  nav.open {
    transform: translateX(0);
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  nav a {
    font-size: 1.15rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .carousel-card {
    width: 290px;
  }
  
  .masterpiece-editorial {
    width: 300px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .skill-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem;
  }
  
  .footer-copyright {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Contact Location Mobile Polish */
  .footer-right-card {
    padding: 2.2rem 1.5rem 4rem 1.5rem; /* Expanded bottom padding for extra breathing room */
  }

  .spec-location-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
    padding-bottom: 0.25rem;
  }

  .spec-location-item .contact-icon {
    margin: 0;
  }

  .spec-location-item .contact-details {
    display: block;
    width: auto;
  }

  .spec-location-item .location-capsule {
    padding: 6px 12px 6px 10px;
    gap: 8px;
    font-size: 0.8rem; /* Sized down for mobile row fit */
    margin-top: 0.25rem;
  }

  .spec-location-item .location-text-slider {
    height: 18px; /* Fit the smaller font size */
  }

  .spec-location-item .location-text {
    line-height: 18px;
  }
  
  .spec-location-item .location-text.text-secondary {
    font-size: 0.75rem;
  }
}

/* =============================================
   Live BTC Price Ticker Capsule — Web3 Terminal
   ============================================= */
.nav-btc-item {
  display: flex;
  align-items: center;
}

.btc-ticker-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Compact gap */
  background: rgba(10, 10, 10, 0.45); /* Elegant translucent glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  padding: 6px 12px 6px 8px; /* Compact padding */
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', 'Inter', 'Anuphan', sans-serif;
  font-size: 0.82rem; /* Compact font size */
  font-weight: 600;
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

body.light-theme .btc-ticker-capsule {
  background: rgba(28, 25, 23, 0.04);
  border-color: rgba(154, 123, 62, 0.2);
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btc-ticker-capsule:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 
    0 4px 15px rgba(212, 175, 55, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.light-theme .btc-ticker-capsule:hover {
  border-color: rgba(154, 123, 62, 0.5);
  box-shadow: 0 4px 15px rgba(154, 123, 62, 0.1);
}

.btc-ticker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--gold-glow-soft);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  color: var(--gold-primary);
  font-size: 0.72rem;
}

.btc-ticker-label {
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btc-ticker-price {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.82rem;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Animations for Price Fluctuations */
@keyframes btcFlashGreen {
  0% { 
    color: #22c55e; 
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.7); 
  }
  100% { 
    color: var(--text-primary); 
    text-shadow: none; 
  }
}

@keyframes btcFlashRed {
  0% { 
    color: #ef4444; 
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.7); 
  }
  100% { 
    color: var(--text-primary); 
    text-shadow: none; 
  }
}

.btc-ticker-price.flash-up {
  animation: btcFlashGreen 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btc-ticker-price.flash-down {
  animation: btcFlashRed 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tablet / Mobile responsiveness for Navbar item */
@media screen and (max-width: 992px) {
  nav ul {
    gap: 1.5rem; /* Squeeze navbar items slightly to avoid collision */
  }
}

@media screen and (max-width: 768px) {
  .nav-btc-item {
    margin-top: 1.5rem; /* Separate ticker from other menu items */
    width: auto;
    justify-content: center;
  }

  .btc-ticker-capsule {
    padding: 8px 16px 8px 12px; /* A bit larger and more touch-friendly inside mobile hamburger */
    font-size: 0.88rem;
    gap: 10px;
    background: rgba(10, 10, 10, 0.75);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body.light-theme .btc-ticker-capsule {
    background: rgba(28, 25, 23, 0.06);
    border-color: rgba(154, 123, 62, 0.25);
  }

  .btc-ticker-icon {
    width: 22px;
    height: 22px;
    font-size: 0.82rem;
  }

  .btc-ticker-label {
    font-size: 0.75rem;
  }

  .btc-ticker-price {
    font-size: 0.88rem;
  }
}
