/* =============================================
   GPH2026 — Main Design System
   Dark Sci-Fi / Hackathon Theme
   ============================================= */

/* ============ Google Fonts ============ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Press+Start+2P&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============ CSS Custom Properties ============ */
:root {
  /* Colors — Dark Cyber Theme */
  --bg-primary:     #0a0e1a;
  --bg-secondary:   #111827;
  --bg-tertiary:    #1a1f36;
  --bg-card:        rgba(17, 24, 39, 0.8);
  --bg-glass:       rgba(17, 24, 39, 0.6);

  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-heading:   #f1f5f9;

  /* Neon Accents */
  --neon-cyan:      #00f0ff;
  --neon-purple:    #a855f7;
  --neon-green:     #22d3ee;
  --neon-pink:      #ec4899;
  --neon-blue:      #3b82f6;
  --neon-orange:    #f97316;
  --neon-yellow:    #eab308;

  /* Gradients */
  --gradient-primary:  linear-gradient(135deg, #00f0ff 0%, #a855f7 100%);
  --gradient-hero:     linear-gradient(135deg, #0a0e1a 0%, #1a1040 50%, #0a1628 100%);
  --gradient-card:     linear-gradient(145deg, rgba(17,24,39,0.9) 0%, rgba(26,31,54,0.9) 100%);
  --gradient-button:   linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #a855f7 100%);
  --gradient-glow:     linear-gradient(135deg, rgba(0,240,255,0.1) 0%, rgba(168,85,247,0.1) 100%);

  /* Borders */
  --border-color:    rgba(148, 163, 184, 0.1);
  --border-glow:     rgba(0, 240, 255, 0.3);

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:     0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow:   0 0 20px rgba(0, 240, 255, 0.15);
  --shadow-neon:   0 0 30px rgba(0, 240, 255, 0.2), 0 0 60px rgba(168, 85, 247, 0.1);

  /* Typography */
  --font-body:     'Inter', 'Noto Sans Thai', sans-serif;
  --font-heading:  'Press Start 2P', monospace;
  --font-mono:     'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radius */
  --radius-sm:  0.375rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow:   500ms ease;

  /* Z-index */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-navbar:    300;
  --z-modal:     400;
  --z-tooltip:   500;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--neon-purple);
}

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

/* ============ Typography ============ */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.font-pixel {
  font-family: var(--font-heading);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-neon {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
}

.text-neon-purple {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* ============ Container ============ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 720px;
}

.container-md {
  max-width: 960px;
}

/* ============ Section ============ */
.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  font-size: 1.1rem;
}

/* ============ Grid ============ */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ Flex Utilities ============ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ============ Text Utilities ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* ============ Spacing Utilities ============ */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.pt-lg { padding-top: var(--space-lg); }
.pb-lg { padding-bottom: var(--space-lg); }

/* ============ Page Content Area ============ */
.page-content {
  min-height: calc(100vh - 200px);
  padding-top: 80px; /* navbar height */
}

/* ============ Scrollbar Styling ============ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* ============ Selection ============ */
::selection {
  background: rgba(0, 240, 255, 0.3);
  color: var(--text-heading);
}

/* ============ Responsive Typography ============ */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  .section-title { font-size: 0.75rem; }
  .section { padding: var(--space-2xl) 0; }
}
