/* ==========================================================================
   Large Hadron Collider Brewing Company (LHCBC)
   Custom Craft Brewery & Particle Collider One-Page Stylesheet
   Font: Kanit (Google Fonts)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  --font-brand: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Color Palette */
  --bg-dark: #090b10;
  --bg-card: rgba(22, 27, 38, 0.75);
  --bg-card-hover: rgba(30, 37, 52, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(243, 156, 18, 0.4);

  /* LHC & Craft Beer Accents */
  --amber-gold: #f39c12;
  --amber-glow: #ffb703;
  --beer-copper: #d35400;
  --particle-red: #e63946;
  --particle-cyan: #00f5d4;
  --particle-blue: #3a86ff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --untappd-yellow: #ffc000;
  --untappd-dark: #222222;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-blur: blur(12px);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(circle at 50% 0%, rgba(243, 156, 18, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(230, 57, 70, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(0, 245, 212, 0.06) 0%, transparent 50%),
    var(--bg-dark);
  background-attachment: fixed;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

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

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, .brand-name {
  font-family: var(--font-brand);
  letter-spacing: 0.03em;
  font-weight: 700;
}

.highlight {
  color: var(--amber-gold);
  background: linear-gradient(135deg, var(--amber-glow) 0%, var(--beer-copper) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(9, 11, 16, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(243, 156, 18, 0.3));
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.05) rotate(5deg);
}

.nav-title {
  font-family: 'Kanit', var(--font-brand);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--amber-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-untappd-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--untappd-yellow);
  color: var(--untappd-dark);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(255, 192, 0, 0.25);
  transition: var(--transition-fast);
}

.btn-untappd-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 192, 0, 0.4);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-collider-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px dashed rgba(243, 156, 18, 0.15);
  border-radius: 50%;
  pointer-events: none;
  animation: rotateCollider 40s linear infinite;
}

.hero-collider-bg::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--amber-glow);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--amber-glow);
}

.hero-collider-bg::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--particle-cyan);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--particle-cyan);
}

@keyframes rotateCollider {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.3);
  color: var(--amber-glow);
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--amber-glow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--amber-glow);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-logo-large {
  width: 140px;
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 20px rgba(243, 156, 18, 0.35));
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--amber-gold) 0%, var(--beer-copper) 100%);
  color: #ffffff;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(243, 156, 18, 0.35);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(243, 156, 18, 0.5);
}

.btn-untappd-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: var(--untappd-yellow);
  color: var(--untappd-dark);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(255, 192, 0, 0.3);
  transition: var(--transition-normal);
}

.btn-untappd-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 192, 0, 0.5);
}

/* Section Titles */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber-gold);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Glass Cards Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.25rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(243, 156, 18, 0.1);
}

/* Story & Brewers Section */
.story-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(243, 156, 18, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-gold);
}

.location-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.brewer-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.brewer-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.3) 0%, rgba(230, 57, 70, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amber-glow);
  border: 2px solid var(--border-glow);
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.2);
}

.brewer-name {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.brewer-role {
  font-size: 0.9rem;
  color: var(--amber-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.brewer-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Untappd Highlight Section */
.untappd-section {
  background: linear-gradient(180deg, rgba(9,11,16,0) 0%, rgba(255,192,0,0.05) 50%, rgba(9,11,16,0) 100%);
}

.untappd-banner {
  background: radial-gradient(circle at 100% 0%, rgba(255, 192, 0, 0.15) 0%, transparent 70%), var(--bg-card);
  border: 1px solid rgba(255, 192, 0, 0.3);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .untappd-banner {
    flex-direction: column;
    text-align: center;
  }
}

.untappd-info h3 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.untappd-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 550px;
}

.untappd-badge-wrapper {
  flex-shrink: 0;
}

.untappd-big-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  background: var(--untappd-yellow);
  color: var(--untappd-dark);
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(255, 192, 0, 0.35);
  transition: var(--transition-normal);
}

.untappd-big-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 192, 0, 0.55);
}

/* Collision Lineup (Beer Styles / Philosophy) */
.beer-spec-tag {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--particle-cyan);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.beer-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.beer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.beer-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.beer-meta-item span {
  color: var(--amber-gold);
  font-weight: 700;
}

/* Footer */
footer {
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 48px;
  width: auto;
}

.footer-text {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-text span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--amber-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple clean mobile menu or quick buttons */
  }

  section {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
