/* ============================================
   QUXOTIC — Premium Modern Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* --- Variables --- */
:root {
  --primary: #1e3a5f;
  --primary-rgb: 30, 58, 95;
  --primary-dark: #142842;
  --primary-light: #2c5282;
  --accent: #b8942e;
  --accent-rgb: 184, 148, 46;
  --accent-dark: #9a7a1e;
  --blue: #2c5282;
  --pink: #8b3a3a;
  --orange: #b8860b;

  --bg-primary: #f8f6f1;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0ece4;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border: rgba(30, 58, 95, 0.1);
  --border-hover: rgba(184, 148, 46, 0.4);

  --text-primary: #1a2332;
  --text-secondary: #3d4f63;
  --text-muted: #5e7186;
  --text-dim: #8899a8;

  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', 'Lora', Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.5s;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Subtle Background Texture --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(var(--primary-rgb), 0.04), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(var(--accent-rgb), 0.03), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  padding: 80px 0;
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.25);
}

.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #34D399 100%);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.4);
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
}

.btn-ghost:hover {
  background: rgba(var(--primary-rgb), 0.06);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.btn-sm { padding: 12px 24px; font-size: 0.875rem; }
.btn-lg { padding: 20px 44px; font-size: 1rem; }

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s var(--ease);
  filter: brightness(0) saturate(100%) invert(15%) sepia(30%) saturate(1200%) hue-rotate(185deg) brightness(95%);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-left: 10px;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.navbar.scrolled .logo-text { color: var(--primary-dark); }

.logo:hover .logo-img {
  opacity: 0.85;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li > a {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--primary-dark);
  background: rgba(var(--primary-rgb), 0.06);
}

.navbar.scrolled .nav-links > li > a {
  color: var(--text-secondary);
}

.navbar.scrolled .nav-links > li > a:hover,
.navbar.scrolled .nav-links > li > a.active {
  color: var(--primary-dark);
  background: rgba(var(--primary-rgb), 0.06);
}

.nav-links .dropdown { position: relative; }

.nav-links .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(var(--primary-rgb), 0.12);
}

.nav-cta { margin-left: 12px; background: var(--primary); border: 1px solid var(--primary); color: #ffffff !important; border-radius: var(--radius); }
.nav-cta:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.navbar.scrolled .nav-cta { background: var(--primary); border-color: var(--primary); color: #ffffff !important; }
.navbar.scrolled .nav-cta:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.navbar.scrolled .menu-toggle span { background: var(--primary-dark); }

/* Dark navbar variant for pages with dark headers */
.navbar.navbar-dark .logo-text { color: #ffffff; }
.navbar.navbar-dark .logo-img { filter: none; }
.navbar.navbar-dark .nav-links > li > a { color: rgba(255, 255, 255, 0.75); }
.navbar.navbar-dark .nav-links > li > a:hover,
.navbar.navbar-dark .nav-links > li > a.active { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.navbar.navbar-dark .nav-cta { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.25); }
.navbar.navbar-dark .nav-cta:hover { background: rgba(255, 255, 255, 0.25) !important; border-color: rgba(255, 255, 255, 0.35) !important; }
.navbar.navbar-dark .menu-toggle span { background: #ffffff; }
/* When scrolled, dark navbar pages get light bg too */
.navbar.navbar-dark.scrolled .logo-text { color: var(--primary-dark); }
.navbar.navbar-dark.scrolled .logo-img { filter: brightness(0) saturate(100%) invert(15%) sepia(30%) saturate(1200%) hue-rotate(185deg) brightness(95%); }
.navbar.navbar-dark.scrolled .nav-links > li > a { color: var(--text-secondary); }
.navbar.navbar-dark.scrolled .nav-links > li > a:hover,
.navbar.navbar-dark.scrolled .nav-links > li > a.active { color: var(--primary-dark); background: rgba(var(--primary-rgb), 0.06); }
.navbar.navbar-dark.scrolled .nav-cta { background: var(--primary); border-color: var(--primary); }
.navbar.navbar-dark.scrolled .menu-toggle span { background: var(--primary-dark); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding: 140px 80px 0;
}

/* Cinematic full-width background image */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-backdrop-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      transparent 0%,
      transparent 85%,
      rgba(248, 246, 241, 1) 100%);
  z-index: 1;
}

/* Noise texture overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 2;
}

.hero .container { z-index: 3; display: flex; align-items: flex-start; justify-content: center; }

/* Centered hero content */
.hero-centered {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 12px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 { margin-bottom: 0; color: #1D4A83; font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.2; }
.hero .gradient-text { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero h1 br { display: block; }

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 20px auto 32px;
  max-width: 680px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
}

.hero-buttons .btn {
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Stats Section — Standalone */
.stats-section {
  
  padding: 40px 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px 60px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(var(--primary-rgb), 0.15);
}

.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1.2;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}


/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; }

/* ============================================
   TRUSTED BY — Logo Carousel
   ============================================ */
.trusted-section {
  background: #0d5ea3;
  padding: 0;
  overflow: hidden;
}

.trusted-top {
  background: linear-gradient(180deg, #0a4f8c 0%, #0d5ea3 100%);
  padding: 60px 0 50px;
}

.trusted-heading {
  text-align: center;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.logo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
  padding: 50px 0;
  mask-image: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.logo-track img {
  height: 100px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.logo-track img:hover {
  opacity: 1;
}

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

/* ============================================
   SERVICES (BENTO GRID)
   ============================================ */
.services { background: var(--bg-secondary); }

/* Services Grid — Clean Academic Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.bento-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

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

.bento-card.featured {
  grid-column: span 2;
}

/* Card image as top banner */
.bento-card-img {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.bento-card.featured .bento-card-img {
  height: 220px;
}

.bento-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s var(--ease);
  filter: saturate(0.85);
}

.bento-card:hover .bento-card-img img {
  transform: scale(1.05);
  filter: saturate(1);
}

.bento-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(30, 58, 95, 0.15) 100%);
}

/* Card content area */
.bento-card-content {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bento-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s var(--ease);
}

.bento-card-icon svg { width: 22px; height: 22px; }

.bento-card-icon.purple { background: rgba(var(--primary-rgb), 0.15); color: var(--primary-light); }
.bento-card-icon.green { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }
.bento-card-icon.blue { background: rgba(44, 82, 130, 0.15); color: var(--blue); }
.bento-card-icon.pink { background: rgba(139, 58, 58, 0.15); color: var(--pink); }
.bento-card-icon.orange { background: rgba(184, 134, 11, 0.15); color: var(--orange); }

.bento-card:hover .bento-card-icon {
  transform: scale(1.05);
}

.bento-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.bento-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.bento-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.bento-card:hover .service-link { gap: 10px; }

.bento-card.featured h3 { font-size: 1.35rem; }
.bento-card.featured p { font-size: 0.92rem; }

/* Decorative large icon in featured cards */
.bento-card-bg-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 8rem;
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-main {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.about-visual-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  transition: transform 0.6s var(--ease);
}

.about-visual-main:hover img {
  transform: scale(1.03);
}

.about-visual-main::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  pointer-events: none;
  z-index: 2;
}

/* Stats row below about image */
.about-stats-row {
  display: flex;
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-stat {
  flex: 1;
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
}

.about-stat:last-child { border-right: none; }

.about-stat h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.about-stat p {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-content .section-tag { margin-bottom: 20px; }
.about-content h2 { margin-bottom: 20px; }
.about-content > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.8; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.about-feature:hover {
  border-color: var(--border-hover);
  background: rgba(var(--primary-rgb), 0.04);
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.about-feature h4 { font-size: 0.9rem; margin-bottom: 2px; }
.about-feature p { font-size: 0.8rem; color: var(--text-dim); margin: 0; line-height: 1.5; }

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us { background: var(--bg-secondary); }

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

.why-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(var(--primary-rgb), 0.13);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.4s var(--ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(var(--primary-rgb), 0.06);
}

.why-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 20px 48px rgba(var(--primary-rgb), 0.12);
}

.why-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.why-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* ============================================
   TEAM / EXPERTS
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.team-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.4s;
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.12);
}

.team-card:hover::before { opacity: 1; }

.team-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 0 32px rgba(var(--primary-rgb), 0.25);
}

.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card .team-role { color: var(--accent); font-size: 0.8rem; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.03em; }
.team-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* ============================================
   FAQ
   ============================================ */
/* FAQ — Two-column academic layout */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item.active { background: rgba(var(--primary-rgb), 0.06); }

.faq-question {
  padding: 24px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  user-select: none;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--accent); }

.faq-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
}

.faq-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: transform 0.4s var(--ease);
}

.faq-item.active .faq-toggle svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.faq-answer-inner {
  padding: 0 8px 28px 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-left: 4px;
}

.faq-item.active .faq-answer { max-height: 300px; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--bg-secondary);
}

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  box-shadow: 0 16px 60px rgba(var(--primary-rgb), 0.3);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(var(--accent-rgb), 0.12);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta-box > * { position: relative; z-index: 1; }

.cta-box h2 { color: white; margin-bottom: 16px; }
.cta-box p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.8); max-width: 500px; margin: 0 auto 40px; }

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   SUSTAINABILITY
   ============================================ */
.sdg-content {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 56px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}

.sdg-icon {
  font-size: 5rem;
  min-width: 120px;
  text-align: center;
  filter: drop-shadow(0 0 32px rgba(var(--accent-rgb), 0.3));
}

.sdg-text h3 { margin-bottom: 14px; }
.sdg-text p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.8; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  border-top: none;
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer h4,
.footer .logo-text { color: #ffffff; }
.footer .footer-brand > p { color: rgba(255, 255, 255, 0.5); }
.footer .footer-links a { color: rgba(255, 255, 255, 0.5); }
.footer .footer-links a:hover { color: var(--accent); }
.footer .footer-bottom { border-top-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); }
.footer .footer-bottom-links a { color: rgba(255, 255, 255, 0.4); }
.footer .footer-bottom-links a:hover { color: var(--accent); }
.footer .footer-credit { color: rgba(255, 255, 255, 0.3); }
.footer .footer-social a { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); }
.footer .footer-social a:hover { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

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

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand > p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; max-width: 280px; margin-bottom: 24px; }

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: all 0.3s;
}

.footer-links a:hover { color: var(--accent); padding-left: 6px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-dim); font-size: 0.8rem; }
.footer-bottom-links a:hover { color: var(--accent); }

.footer-credit {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
}

/* ============================================
   PAGE HEADER (Internal Pages)
   ============================================ */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.page-header h1 { color: #ffffff; }
.page-header .section-tag { color: #e8d48b; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); }
.page-header p { color: rgba(255, 255, 255, 0.85); }

.page-header .hero-noise { position: absolute; }

.page-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.page-header > *:not(.hero-noise) {
  position: relative;
  z-index: 2;
}

.page-header .section-tag { margin-bottom: 20px; }
.page-header h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.8; }

/* ============================================
   DETAIL SECTIONS (Internal Pages)
   ============================================ */
.detail-section { padding: 100px 0; }
.detail-section:nth-child(even) { background: var(--bg-tertiary); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.detail-grid.reverse { direction: rtl; }
.detail-grid.reverse > * { direction: ltr; }

.detail-content .section-tag { margin-bottom: 16px; }
.detail-content h3 { margin-bottom: 18px; line-height: 1.3; }
.detail-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 12px; }

.detail-visual {
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  transition: transform 0.6s var(--ease);
}

.detail-visual:hover img {
  transform: scale(1.03);
}

.detail-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 2;
}

.detail-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(30, 58, 95, 0.08) 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: var(--radius-xl);
}

/* Fallback for SVG icon visuals */
.detail-visual--icon {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-visual--icon::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: conic-gradient(from 0deg, transparent, rgba(var(--primary-rgb), 0.06), transparent, rgba(var(--accent-rgb), 0.04), transparent);
  animation: rotate 20s linear infinite;
}

.detail-visual-icon {
  position: relative;
  z-index: 1;
  font-size: 5rem;
  filter: drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.3));
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

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

.contact-info-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s;
}

.contact-info-card:hover { border-color: var(--border-hover); }

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 3px; }
.contact-info-card p { font-size: 0.85rem; color: var(--text-dim); margin: 0; }

.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  backdrop-filter: blur(12px);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(30, 58, 95, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-primary); color: var(--text-primary); }
.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays for grid children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.40s; }
.stagger > *:nth-child(7) { transition-delay: 0.48s; }
.stagger > *:nth-child(8) { transition-delay: 0.56s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .stat-item { padding: 24px 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.featured { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-grid.reverse { direction: ltr; }
  .detail-visual { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }

  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 40, 66, 0.98);
    backdrop-filter: blur(24px);
    padding: 20px 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
  }

  .nav-links.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 4px 0 4px 20px;
    min-width: auto;
  }

  .hero { padding: 120px 20px 0; min-height: auto; }
  .hero-centered { padding: 40px 0; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .stats-grid { flex-wrap: wrap; }
  .stat-item { padding: 20px 24px; min-width: 140px; flex: 1; }
  .stat-item:not(:last-child)::after { display: none; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.featured { grid-column: span 1; }
  .about-features { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-box { padding: 48px 28px; }
  .sdg-content { flex-direction: column; text-align: center; padding: 36px 28px; }
  .page-header { padding: 140px 0 60px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .container { padding: 0 16px; }
}

/* ============================================
   FEATURE LIST (checkmark lists)
   ============================================ */
.feature-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--accent);
}

/* ============================================
   PAGE HERO WITH IMAGE
   ============================================ */
.page-header-with-image {
  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
}

.page-header-image {
  width: 100%;
  height: 420px;
  position: relative;
  margin-top: 48px;
}

.page-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 30%, transparent 70%, var(--bg-primary) 100%);
}

/* ============================================
   ABOUT VISUAL ENHANCED
   ============================================ */
.about-visual-main .img-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  background: rgba(30, 58, 95, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}
