/* ==========================================================================
   CLOUD COMPUTERS - Design System & Base Styles
   Theme: Ethereal White Architectural Studio / Volumetric Cloud Gallery
   ========================================================================== */

:root {
  /* Core Color Palette - High-Key Studio Gallery */
  --bg-primary: #fbfbfd;
  --bg-secondary: #f4f4f6;
  --bg-studio-room: #efeff2;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.78);
  --bg-glass-elevated: rgba(255, 255, 255, 0.94);

  /* Ethereal Cloud & Sky Accents */
  --accent-cyan: #0284c7;
  --accent-blue: #0369a1;
  --accent-electric: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --accent-glow-subtle: rgba(14, 165, 233, 0.08);
  --accent-glow-intense: rgba(14, 165, 233, 0.45);
  --accent-emerald: #16a34a;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --grad-accent: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
  --grad-text: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  --grad-glow: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(245, 245, 247, 0) 70%);

  /* Typography Colors */
  --text-white: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-cyan: #0284c7;

  /* Borders & Dividers */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.1);
  --border-bright: rgba(14, 165, 233, 0.45);
  --border-card: rgba(0, 0, 0, 0.07);

  /* Architectural Soft Studio Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 30px -8px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 10px 30px rgba(14, 165, 233, 0.15);
  --shadow-glow-lg: 0 16px 40px rgba(14, 165, 233, 0.25);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

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

  /* Sizing & Layout */
  --container-max: 1240px;
  --navbar-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

/* ==========================================================================
   Resets & Base Layout
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  font-size: 16px;
  background-color: var(--bg-primary);
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Canvas Background for Ambient Studio Motes */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Subtle Architectural Studio Background Tint */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 90%);
}

/* Content Container wrapper above background */
.site-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

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

.section-title .text-blue {
  color: var(--accent-blue);
  text-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
}

/* Links & Buttons base */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Glassmorphism Surface Base */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
}

/* Selection */
::selection {
  background: rgba(14, 165, 233, 0.2);
  color: #0f172a;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f4;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Real-Time Scroll Progress Indicator */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #06b6d4 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.6);
  will-change: transform;
}
