/* ============================================
   Justice S.V.N. Bhatti — Flow of Justice
   Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Authority Colors */
  --navy-deep: #0a1628;
  --navy: #0f2137;
  --charcoal: #1a2a3a;
  --charcoal-light: #243447;
  
  /* Flow Colors */
  --teal: #00b4d8;
  --teal-light: #48cae4;
  --teal-dark: #0096c7;
  --blue-flow: #0077b6;
  --blue-deep: #023e8a;
  --cyan-glow: #90e0ef;
  
  /* Tradition & Prestige */
  --ivory: #f8f4e8;
  --ivory-soft: #fdf8ef;
  --gold: #c9a84c;
  --gold-muted: #b8943e;
  --gold-light: #e0c872;
  
  /* Neutrals */
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-05: rgba(255, 255, 255, 0.05);
  
  /* Gradients */
  --gradient-flow: linear-gradient(135deg, var(--teal-dark), var(--blue-flow), var(--teal));
  --gradient-depth: linear-gradient(180deg, var(--navy-deep), var(--navy), var(--charcoal));
  --gradient-gold: linear-gradient(135deg, var(--gold-muted), var(--gold), var(--gold-light));
  --gradient-hero: linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(0, 119, 182, 0.3), rgba(10, 22, 40, 0.9));
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 40px;
  
  /* Glassmorphism */
  --glass-bg: rgba(15, 33, 55, 0.6);
  --glass-border: rgba(0, 180, 216, 0.15);
  --glass-blur: blur(20px);
  
  /* Shadows */
  --shadow-flow: 0 8px 32px rgba(0, 180, 216, 0.15);
  --shadow-deep: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-flow: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-smooth: all 0.4s ease;
  --transition-fast: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--white-90);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--teal-dark), var(--blue-flow));
  border-radius: 4px;
}

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

/* ---------- Container ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---------- Section ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--gradient-flow);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--white-50);
  max-width: 600px;
  line-height: 1.8;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: var(--glass-blur);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-flow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.nav-logo-text span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white-70);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-flow);
  transition: var(--transition-flow);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-light);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: var(--transition-fast);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 2;
}

.hero-flow-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
}

.flow-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.3;
  animation: flowLineMove 8s linear infinite;
}

.flow-line:nth-child(1) { top: 20%; width: 60%; left: -60%; animation-delay: 0s; }
.flow-line:nth-child(2) { top: 40%; width: 80%; left: -80%; animation-delay: 2s; }
.flow-line:nth-child(3) { top: 60%; width: 50%; left: -50%; animation-delay: 4s; }
.flow-line:nth-child(4) { top: 80%; width: 70%; left: -70%; animation-delay: 6s; }
.flow-line:nth-child(5) { top: 30%; width: 40%; left: -40%; animation-delay: 1s; opacity: 0.15; }
.flow-line:nth-child(6) { top: 70%; width: 55%; left: -55%; animation-delay: 3s; opacity: 0.2; }

@keyframes flowLineMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 100%)); }
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
  padding-top: 100px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-label::before {
  content: '';
  width: 50px;
  height: 1px;
  background: var(--gradient-gold);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-title .highlight {
  background: var(--gradient-flow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--white-70);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.7s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.9s both;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition-flow);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-flow);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 180, 216, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-20);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-light);
  background: rgba(0, 180, 216, 0.05);
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-flow);
}

.glass-card:hover {
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: var(--shadow-flow);
  transform: translateY(-4px);
}

/* ---------- Stats Grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-flow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--white-50);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Career Cards ---------- */
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.career-card {
  position: relative;
  overflow: hidden;
}

.career-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-flow);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-flow);
}

.career-card:hover::before {
  transform: scaleX(1);
}

.career-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 180, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--teal);
}

.career-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.career-card-role {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.career-card-desc {
  font-size: 0.95rem;
  color: var(--white-50);
  line-height: 1.7;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--blue-flow), var(--teal-dark), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--navy-deep);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
  z-index: 2;
}

.timeline-content {
  flex: 1;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--white-50);
  line-height: 1.7;
}

/* ---------- Flow Map (Courts) ---------- */
.flow-map {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  position: relative;
}

.flow-map::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--teal), var(--blue-flow), var(--teal), transparent);
  transform: translateX(-50%);
  z-index: 0;
}

.flow-node {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
}

.flow-node-card {
  position: relative;
  overflow: hidden;
}

.flow-node-card .flow-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
}

.flow-node-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.flow-node-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 180, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.flow-node-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

.flow-node-role {
  font-size: 0.85rem;
  color: var(--gold);
}

.flow-node-desc {
  font-size: 0.95rem;
  color: var(--white-50);
  line-height: 1.7;
}

/* ---------- Practice Flow Channels ---------- */
.flow-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.flow-channel {
  position: relative;
  overflow: hidden;
}

.flow-channel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-flow);
  transform: translateX(-100%);
  transition: var(--transition-flow);
}

.flow-channel:hover::after {
  transform: translateX(0);
}

.flow-channel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.flow-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 180, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--teal);
}

.flow-channel-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.flow-channel-desc {
  font-size: 0.95rem;
  color: var(--white-50);
  line-height: 1.7;
  margin-bottom: 16px;
}

.flow-channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-tag {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.15);
  color: var(--teal-light);
}

/* ---------- Cases Explorer ---------- */
.cases-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--white-20);
  background: transparent;
  color: var(--white-70);
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-flow);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.3);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.case-card {
  cursor: pointer;
}

.case-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.case-category {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 180, 216, 0.1);
  color: var(--teal);
}

.case-year {
  font-size: 0.85rem;
  color: var(--white-50);
}

.case-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.case-summary {
  font-size: 0.9rem;
  color: var(--white-50);
  line-height: 1.7;
  margin-bottom: 16px;
}

.case-expand {
  display: none;
  padding-top: 16px;
  border-top: 1px solid var(--white-10);
  margin-top: 8px;
}

.case-expand.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.case-reasoning-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

.case-reasoning {
  font-size: 0.9rem;
  color: var(--white-70);
  line-height: 1.8;
}

.case-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--teal);
  cursor: pointer;
  transition: var(--transition-fast);
}

.case-read-more:hover {
  color: var(--teal-light);
  gap: 10px;
}

/* ---------- Resources / Knowledge Stream ---------- */
.resources-search {
  margin-bottom: 40px;
}

.search-input {
  width: 100%;
  max-width: 500px;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
  backdrop-filter: var(--glass-blur);
}

.search-input::placeholder {
  color: var(--white-50);
}

.search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.15);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.resource-card {
  position: relative;
  overflow: hidden;
}

.resource-type {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 14px;
}

.resource-type.article {
  background: rgba(0, 180, 216, 0.1);
  color: var(--teal);
}

.resource-type.interpretation {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}

.resource-type.insight {
  background: rgba(72, 202, 228, 0.1);
  color: var(--teal-light);
}

.resource-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.resource-excerpt {
  font-size: 0.9rem;
  color: var(--white-50);
  line-height: 1.7;
  margin-bottom: 16px;
}

.resource-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--white-50);
}

/* ---------- Media Timeline ---------- */
.media-timeline {
  position: relative;
  padding-left: 40px;
}

.media-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--blue-flow), transparent);
}

.media-item {
  margin-bottom: 40px;
  position: relative;
}

.media-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.4);
}

.media-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.media-card-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.media-card-image {
  width: 200px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.media-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-flow);
}

.media-card:hover .media-card-image img {
  transform: scale(1.05);
}

.media-card-text h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.media-card-text p {
  font-size: 0.9rem;
  color: var(--white-50);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white-70);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  padding: 14px 20px;
  border-radius: 10px;
  background: rgba(15, 33, 55, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(0, 180, 216, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 180, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--teal);
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 0.9rem;
  color: var(--white-50);
}

.contact-info-text a {
  color: var(--teal);
}

.contact-info-text a:hover {
  color: var(--teal-light);
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--white-10);
  background: rgba(10, 22, 40, 0.8);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--white-50);
  line-height: 1.7;
  max-width: 350px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--white-50);
  margin-bottom: 10px;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white-50);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--white-50);
}

.footer-bottom a {
  color: var(--gold);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* ---------- Gateway ---------- */
.gateway {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.gateway-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gateway-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 500px;
  padding: 20px;
}

.gateway-seal {
  width: 120px;
  height: 120px;
  margin: 0 auto 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(0, 119, 182, 0.15));
  border: 2px solid rgba(0, 180, 216, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  box-shadow: 0 0 40px rgba(0, 180, 216, 0.15);
  transition: var(--transition-flow);
}

.gateway-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.gateway-subtitle {
  font-size: 0.95rem;
  color: var(--white-50);
  margin-bottom: 40px;
  line-height: 1.7;
}

.gateway-input-wrap {
  position: relative;
  margin-bottom: 24px;
}

.gateway-input {
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  background: rgba(15, 33, 55, 0.8);
  border: 2px solid rgba(0, 180, 216, 0.15);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 4px;
  outline: none;
  transition: var(--transition-flow);
}

.gateway-input::placeholder {
  color: var(--white-50);
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.gateway-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.2);
}

.gateway-input.error {
  border-color: #ff4757;
  animation: shake 0.5s ease;
  box-shadow: 0 0 30px rgba(255, 71, 87, 0.2);
}

.gateway-input.success {
  border-color: var(--teal);
  box-shadow: 0 0 40px rgba(0, 180, 216, 0.4);
}

.gateway-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: var(--gradient-flow);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition-flow);
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.gateway-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 180, 216, 0.5);
}

.gateway-message {
  margin-top: 20px;
  font-size: 0.85rem;
  min-height: 20px;
  transition: var(--transition-fast);
}

.gateway-message.error {
  color: #ff4757;
}

.gateway-message.success {
  color: var(--teal);
}

.gateway-hint {
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--white-20);
}

/* ---------- Page Header (Inner Pages) ---------- */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
}

.page-header .flow-line {
  position: absolute;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

/* ---------- About Page Specific ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 80px;
}

.about-portrait {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow-flow);
}

.about-portrait img {
  width: 100%;
  height: auto;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--white-70);
  line-height: 1.9;
}

.about-bio p {
  margin-bottom: 20px;
}

.philosophy-card {
  padding: 50px;
  margin-top: 30px;
  position: relative;
}

.philosophy-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-family: var(--font-heading);
  font-size: 6rem;
  color: rgba(0, 180, 216, 0.1);
  line-height: 1;
}

.philosophy-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white-90);
  line-height: 1.8;
  font-style: italic;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes flowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 180, 216, 0.2); }
  50% { box-shadow: 0 0 40px rgba(0, 180, 216, 0.4); }
}

@keyframes waveMotion {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 30px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 0;
    flex-direction: row;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .about-intro {
    grid-template-columns: 1fr;
  }
  
  .about-portrait {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: var(--glass-blur);
    padding: 80px 30px 30px;
    gap: 20px;
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .career-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .flow-channels {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .media-card-content {
    flex-direction: column;
  }

  .media-card-image {
    width: 100%;
    height: 200px;
  }

  .flow-map::before {
    left: 20px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .gateway-seal {
    width: 90px;
    height: 90px;
    font-size: 1.5rem;
  }
}
