/* ==========================================================================
   MEDIALAB ASIA - BASE STYLES & DESIGN TOKENS
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #070a12;
  --bg-secondary: #0c101c;
  --bg-tertiary: #121828;
  --bg-card: rgba(18, 24, 40, 0.65);
  --bg-card-hover: rgba(26, 34, 56, 0.75);
  --bg-glass: rgba(12, 16, 28, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(0, 102, 255, 0.4);

  --accent-primary: #0066ff;
  --accent-primary-hover: #1a75ff;
  --accent-cyan: #00d2ff;
  --accent-glow: rgba(0, 102, 255, 0.25);
  
  --accent-success: #10b981;
  --accent-success-glow: rgba(16, 185, 129, 0.25);
  --accent-warning: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-dark: #070a12;

  /* Montserrat System: Montserrat Black (900) for Headings, Montserrat (400-600) for Body */
  --font-display: 'Montserrat', sans-serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Spacing & Layout: 80% screen width layout */
  --container-max: 80vw;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.25);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Glows */
.bg-glow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
  animation: pulse-glow 14s infinite alternate ease-in-out;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.4) 0%, rgba(0, 102, 255, 0) 70%);
  top: -150px;
  left: 20%;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.25) 0%, rgba(0, 210, 255, 0) 70%);
  bottom: 10%;
  right: -100px;
}

.glow-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 70%);
  top: 45%;
  left: -150px;
}

@keyframes pulse-glow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  50% { transform: scale(1.15) translate(30px, -20px); opacity: 0.55; }
  100% { transform: scale(0.95) translate(-20px, 30px); opacity: 0.4; }
}

/* Container - 80% of screen width */
.container {
  width: 80%;
  max-width: 80vw;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .container {
    width: 90%;
    max-width: 90vw;
  }
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-main);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

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

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

/* Section Wrapper */
.section, section[id] {
  padding: 100px 0;
  position: relative;
  z-index: 1;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 102, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title span.highlight {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 60%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-success); }
.font-mono { font-family: var(--font-mono); }
