/* ============================================================
   ICPRS International — Design System & Styles
   ============================================================ */

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

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand Colors */
  --primary: #1E88FF;
  --primary-dark: #1134A6;
  --primary-light: #5EB3FF;
  --primary-glow: rgba(30, 136, 255, 0.25);
  --primary-subtle: rgba(30, 136, 255, 0.08);

  /* Navy / Dark Palette */
  --navy: #0B1F8A;
  --navy-light: #0E2694;
  --navy-mid: #1534A8;
  --navy-surface: #1A3DB5;

  /* Accent */
  --accent: #F5A623;
  --accent-dark: #D48C0F;
  --accent-glow: rgba(245, 166, 35, 0.2);

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #FAFBFD;
  --gray-100: #F3F5F9;
  --gray-200: #E4E8EF;
  --gray-300: #4A4A4A;
  --gray-400: #1C1917;
  --gray-500: #000000;
  --gray-600: #000000;
  --gray-700: #000000;
  --gray-800: #000000;

  /* Semantic */
  --success: #10B981;
  --info: #3B82F6;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 10px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.15), 0 8px 16px -4px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 30px rgba(0, 153, 214, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 900px;
  --navbar-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-700);
  background: #F0F2F5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-800);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255,255,255,0.75);
}

.section-gray {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header .label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(41, 171, 226, 0.15);
  color: #29ABE2;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--gray-500);
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.65);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
  background: #FFFFFF;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar-logo img {
  height: 46px;
  width: auto;
  background: var(--white);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #000000;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(0,0,0,0.05);
}

.nav-link .chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
  fill: currentColor;
  flex-shrink: 0;
}

.nav-item:hover .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  pointer-events: none;
  border: 1px solid var(--gray-200);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

.nav-item:hover .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown-link .dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.dropdown-link:hover .dropdown-icon {
  background: var(--primary);
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-6);
  background: var(--primary);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-left: var(--space-4);
  transition: all var(--transition-base);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
  color: var(--white);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #000000;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #231F20;
  overflow: hidden;
  padding: calc(var(--navbar-height) + var(--space-16)) var(--space-6) var(--space-16);
}

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

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-photo.active {
  opacity: 1;
}

.hero-blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 32, 0.35);
  backdrop-filter: blur(10px) brightness(0.42);
  -webkit-backdrop-filter: blur(10px) brightness(0.42);
  mask-image: linear-gradient(to right, transparent 40%, black 70%);
  -webkit-mask-image: linear-gradient(to right, transparent 40%, black 70%);
  z-index: 2;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(30,136,255,0.2) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
  animation: heroGlow 10s ease-in-out 2s infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 136, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 136, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  bottom: 20%;
  left: 15%;
  animation-delay: -4s;
  opacity: 0.15;
}

.hero-orb-3 {
  width: 150px;
  height: 150px;
  background: var(--primary-light);
  top: 60%;
  right: 30%;
  animation-delay: -8s;
  opacity: 0.2;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -30px); }
  50% { transform: translate(-15px, 15px); }
  75% { transform: translate(25px, 10px); }
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: rgba(255, 255, 255, 0.65);
  max-width: 650px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: #29ABE2;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(41, 171, 226, 0.3);
}

.hero-actions .btn-primary:hover {
  background: #1b90c2;
  box-shadow: 0 8px 25px rgba(41, 171, 226, 0.4);
}

.hero-actions .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: #FFFFFF;
  border: 1px solid #DDEEF8;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hero-stat .stat-icon-block {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #29ABE2;
  color: #231F20;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-stat .stat-icon-block svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.hero-stat .stat-info {
  display: flex;
  flex-direction: column;
}

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #231F20;
  line-height: 1.1;
  margin-bottom: 2px;
}

.hero-stat .stat-number .stat-suffix {
  color: #29ABE2;
}

.hero-stat .stat-label {
  font-size: var(--text-xs);
  color: #000000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* ============================================================
   PAGE HERO (Interior pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--navbar-height) + var(--space-20)) 0 var(--space-20);
  background: #231F20;
  overflow: hidden;
  text-align: center;
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/IC.jpeg') 12% 15%/cover no-repeat;
  z-index: 1;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 32, 0.35);
  backdrop-filter: blur(10px) brightness(0.42);
  -webkit-backdrop-filter: blur(10px) brightness(0.42);
  mask-image: linear-gradient(to right, transparent 40%, black 70%);
  -webkit-mask-image: linear-gradient(to right, transparent 40%, black 70%);
  z-index: 2;
}

.page-hero .container {
  position: relative;
  z-index: 3;
}

.page-hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 153, 214, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 153, 214, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
  pointer-events: none;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 2;
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.page-hero .breadcrumb a:hover {
  color: var(--primary-light);
}

.page-hero .breadcrumb .separator {
  font-size: var(--text-xs);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 800;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 2;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-lg);
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-outline-dark:hover {
  background: var(--gray-100);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
  color: var(--white);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

.btn svg,
.btn .btn-icon {
  width: 18px;
  height: 18px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-300);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-glass {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-glass:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(30, 136, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-5);
  transition: all var(--transition-base);
  color: var(--primary);
}

.card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}

.card-glass .card-icon {
  background: rgba(30, 136, 255, 0.15);
}

.card-glass:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}

.card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 0;
}

.card-glass h3,
.card-glass h4 {
  color: var(--white);
}

.card-glass p {
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ============================================================
   SERVICES / FEATURES SECTION
   ============================================================ */
.service-card {
  padding: var(--space-10);
}

.card-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  transition: all var(--transition-base);
  box-shadow: 0 4px 10px rgba(17, 52, 166, 0.2);
  flex-shrink: 0;
}

.card:hover .card-number,
.resource-card:hover .card-number,
.partner-category:hover .card-number {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  margin-top: var(--space-5);
  transition: gap var(--transition-fast);
}

.service-card:hover .card-link {
  gap: var(--space-3);
}

/* ============================================================
   THEMATIC AREAS GRID
   ============================================================ */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.theme-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-300);
  transition: all var(--transition-base);
}

.theme-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.theme-item .theme-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.theme-item:hover .theme-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.theme-item span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
}

/* ============================================================
   PARTNERS / CLIENTS
   ============================================================ */
/* Partners Autoplay Marquee Slider */
.partners-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.partners-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.partners-nav-btn:hover {
  border-color: #29ABE2;
  color: #29ABE2;
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.partners-nav-btn.prev {
  left: -24px;
}

.partners-nav-btn.next {
  right: -24px;
}

@media (max-width: 768px) {
  .partners-nav-btn.prev {
    left: -10px;
  }
  .partners-nav-btn.next {
    right: -10px;
  }
}

.partners-slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: var(--space-4) 0;
}

/* Gradient overlays for fade out at edges */
.partners-slider-container::before,
.partners-slider-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}
.partners-slider-container::before {
  left: 0;
  background: linear-gradient(90deg, #FFFFFF 0%, transparent 100%);
}
.partners-slider-container::after {
  right: 0;
  background: linear-gradient(-90deg, #FFFFFF 0%, transparent 100%);
}

.partners-track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-category {
  width: 340px;
  flex-shrink: 0;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.partner-category:hover {
  border-color: #29ABE2;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.partner-category h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: #231F20;
}

.partner-category p {
  font-size: var(--text-sm);
  color: #000000;
  margin: 0;
}

.partner-category .card-number {
  background: #29ABE2;
  color: var(--white);
  box-shadow: 0 4px 10px rgba(41, 171, 226, 0.2);
}

.partner-category:hover .card-number {
  background: #1b90c2;
  transform: scale(1.1);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - (var(--space-6) / 2)));
  }
}

/* ============================================================
   WHY ICPRS / PILLARS
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.pillar-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-300);
  transition: all var(--transition-base);
}

.pillar-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pillar-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--primary);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.pillar-card:hover .pillar-number {
  background: var(--primary);
  color: var(--white);
}

.pillar-card h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.pillar-card p {
  font-size: var(--text-sm);
  margin: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  padding: var(--space-20) 0;
  background: linear-gradient(to right, rgba(244, 249, 253, 0.96) 0%, rgba(244, 249, 253, 0.88) 50%, rgba(244, 249, 253, 0.96) 100%), url('../assets/cta-bg.png') center/cover no-repeat;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid #DDEEF8;
  border-bottom: 1px solid #DDEEF8;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.cta-section h2 {
  color: #000000;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 2;
}

.cta-section p {
  color: #000000;
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  position: relative;
  z-index: 2;
}

.cta-section .btn {
  position: relative;
  z-index: 2;
}

.cta-section .btn-accent {
  background: #29ABE2;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(41, 171, 226, 0.3);
  border-color: #29ABE2;
}

.cta-section .btn-accent:hover {
  background: #1b90c2;
  border-color: #1b90c2;
  box-shadow: 0 8px 25px rgba(41, 171, 226, 0.4);
  transform: translateY(-2px);
  color: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #231F20;
  color: #FFFFFF;
  padding: var(--space-20) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-6);
  max-width: 320px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: var(--space-5);
  background: var(--white);
  padding: 4px 8px;
  border-radius: var(--radius-md);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

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

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: var(--space-6);
}

.footer-column a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-1) 0;
  transition: all var(--transition-fast);
}

.footer-column a:hover {
  color: #29ABE2;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.footer-contact-item .icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
  color: #29ABE2;
}

/* ============================================================
   CONTENT SECTIONS (Interior pages)
   ============================================================ */
.content-section {
  padding: var(--space-16) 0;
}

.content-block {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.content-block h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.content-block h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.content-block p {
  font-size: var(--text-base);
  line-height: 1.8;
}

.content-block ul {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.content-block ul li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.7;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.value-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 2px solid var(--gray-300);
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.value-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
}

/* Leadership */
.org-chart {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.org-card {
  text-align: center;
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 2px solid var(--gray-300);
  transition: all var(--transition-base);
}

.org-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.org-card .org-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-subtle) 0%, rgba(0,153,214,0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-5);
  color: var(--primary);
}

.org-card h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.org-card .org-role {
  font-size: var(--text-sm);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.org-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
}

/* Department cards */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* ============================================================
   EXPERTISE PAGE
   ============================================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.expertise-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 2px solid var(--gray-300);
  transition: all var(--transition-base);
}

.expertise-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.expertise-card .expertise-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.expertise-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.expertise-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
  line-height: 1.7;
}

/* ============================================================
   APPROACH PAGE
   ============================================================ */
.approach-timeline {
  position: relative;
  padding-left: var(--space-16);
}

.approach-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
}

.approach-item {
  position: relative;
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-300);
  transition: all var(--transition-base);
}

.approach-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.approach-item::before {
  content: attr(data-number);
  position: absolute;
  left: calc(-1 * var(--space-16) - 1px);
  top: var(--space-8);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  z-index: 2;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--primary-subtle);
}

.approach-item h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--gray-800);
}

.approach-item p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
  line-height: 1.8;
}

/* ============================================================
   CASE STUDIES / NEWS
   ============================================================ */
.case-study-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--gray-300);
}

.case-study-table thead th {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.case-study-table tbody td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}

.case-study-table tbody tr:last-child td {
  border-bottom: none;
}

.case-study-table tbody tr:hover {
  background: var(--primary-subtle);
}

.case-study-table tbody tr td:first-child {
  font-weight: 600;
  color: var(--gray-700);
}

/* News cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.news-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--gray-300);
  background: var(--white);
  transition: all var(--transition-base);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.news-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(10,22,40,0.3));
}

.news-card-body {
  padding: var(--space-6);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.news-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.news-date {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

.news-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.news-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
}

/* ============================================================
   LIBRARY
   ============================================================ */
.library-filters {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: var(--space-2) var(--space-5);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.resource-card {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-300);
  transition: all var(--transition-base);
  margin-bottom: var(--space-4);
}

.resource-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}


.resource-type-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--primary);
}

.resource-card h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.resource-card .resource-meta {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-bottom: var(--space-2);
}

.resource-card p {
  font-size: var(--text-sm);
  margin: 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  margin-bottom: var(--space-4);
}

.contact-info-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info-card h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.contact-info-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  border: 2px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--gray-700);
  background: var(--gray-50);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

/* ============================================================
   CAREERS
   ============================================================ */
.career-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-300);
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}

.career-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.career-info h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.career-tags {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.career-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: 500;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger-children .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger-children .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger-children .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger-children .reveal:nth-child(6) { transition-delay: 500ms; }
.stagger-children .reveal:nth-child(7) { transition-delay: 600ms; }
.stagger-children .reveal:nth-child(8) { transition-delay: 700ms; }
.stagger-children .reveal:nth-child(9) { transition-delay: 800ms; }
.stagger-children .reveal:nth-child(10) { transition-delay: 900ms; }
.stagger-children .reveal:nth-child(11) { transition-delay: 1000ms; }
.stagger-children .reveal:nth-child(12) { transition-delay: 1100ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4, .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

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

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

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
  }

  .hero-blur-overlay {
    left: 0;
    backdrop-filter: blur(15px) brightness(0.25);
    -webkit-backdrop-filter: blur(15px) brightness(0.25);
    background: rgba(35, 31, 32, 0.6);
    mask-image: none;
    -webkit-mask-image: none;
  }

  .page-hero::after {
    left: 0;
    backdrop-filter: blur(15px) brightness(0.25);
    -webkit-backdrop-filter: blur(15px) brightness(0.25);
    background: rgba(35, 31, 32, 0.6);
    mask-image: none;
    -webkit-mask-image: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--navbar-height) + var(--space-8)) var(--space-6) var(--space-8);
    gap: var(--space-1);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }

  .nav-item {
    width: 100%;
  }

  .dropdown {
    position: static;
    transform: none;
    min-width: unset;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-2);
    margin-top: var(--space-1);
    box-shadow: none;
    display: none;
  }

  .dropdown::before {
    display: none;
  }

  .nav-item.open .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dropdown-link {
    color: rgba(255,255,255,0.7);
    padding: var(--space-3) var(--space-4);
  }

  .dropdown-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--primary-light);
  }

  .dropdown-link .dropdown-icon {
    background: rgba(0, 153, 214, 0.2);
    color: var(--primary-light);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-4);
    width: 100%;
    justify-content: center;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .grid-2,
  .grid-3,
  .news-grid,
  .org-chart,
  .dept-grid,
  .contact-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .hero-stat {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: var(--space-3) var(--space-4);
  }

  .hero-stat .stat-number {
    font-size: var(--text-xl);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .case-study-table {
    display: block;
    overflow-x: auto;
  }

  .approach-timeline {
    padding-left: var(--space-12);
  }

  .approach-item::before {
    left: calc(-1 * var(--space-12) - 1px);
    width: 34px;
    height: 34px;
    font-size: var(--text-xs);
  }

  .career-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

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

  .resource-card {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .card {
    padding: var(--space-6);
  }

  .service-card {
    padding: var(--space-6);
  }
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.gap-4 { gap: var(--space-4); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Divider */
.divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
  margin: var(--space-4) 0;
}

.divider-center {
  margin: var(--space-4) auto;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 999;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Tab system for case studies */
.tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.tab-btn {
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LOADING ANIMATION
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 153, 214, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
