/* ============================================
   EDUTEK GLOBAL DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Core Brand Colors */
  --black: #050810;
  --white: #ffffff;
  --primary: #1565C0;
  --primary-glow: rgba(21, 101, 192, 0.2);
  --primary-light: #1976D2;
  --accent: #0288D1;
  --accent-glow: rgba(2, 136, 209, 0.15);
  --accent2: #FF6B35;
  --gold: #F59E0B;

  /* Light Theme Surfaces */
  --bg-base: #E8F4FD;
  --bg-white: #ffffff;
  --surface-0: #E8F4FD;
  --surface-1: #D6ECF8;
  --surface-2: #ffffff;
  --surface-3: #F0F8FF;
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-glass: rgba(255,255,255,0.6);

  /* Text — dark on light bg */
  --text-primary: #0D1B2A;
  --text-secondary: #2C4A6E;
  --text-muted: #6B8AA8;

  /* Borders */
  --border: rgba(21, 101, 192, 0.14);
  --border-active: rgba(21, 101, 192, 0.4);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', Arial, sans-serif;

  /* Spacing */
  --nav-height: 72px;
  --section-padding: clamp(80px, 10vw, 140px);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(21, 101, 192, 0.1);
  --shadow-glow: 0 0 40px rgba(21, 101, 192, 0.12);
  --shadow-glow-accent: 0 0 40px rgba(2, 136, 209, 0.08);

  /* Utility */
  --primary-faint: rgba(21, 101, 192, 0.22);
  --bg-white: #ffffff;
  --bg-base: #E8F4FD;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
ul, ol { list-style: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-1); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ============================================
   GLOBAL NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 60px);
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(232, 244, 253, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(21, 101, 192, 0.08);
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-primary);
}

.nav-logo-icon {
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--surface-glass);
}

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

.btn-ghost {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-primary {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  transition: all 0.25s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-primary:hover::after { opacity: 1; }

.btn-secondary {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(21,101,192,0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(21,101,192,0.06);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 12px;
}

/* Additional button variants used across pages */
.btn-outline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1.5px solid rgba(21,101,192,0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(21,101,192,0.07);
  border-color: var(--primary);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 10px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(232, 244, 253, 0.98);
  backdrop-filter: blur(24px);
  padding: 20px clamp(20px, 4vw, 60px) 30px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.mobile-menu a:hover { color: var(--text-primary); background: var(--surface-glass); }

.mobile-menu .mobile-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section {
  padding: var(--section-padding) clamp(20px, 4vw, 60px);
}

.container {
  max-width: 1300px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(21, 101, 192, 0.25);
  border-radius: 100px;
  background: rgba(21, 101, 192, 0.07);
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 70px clamp(20px, 4vw, 60px) 30px;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

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

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

.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-socials a:hover {
  color: var(--text-primary);
  border-color: var(--primary);
  background: var(--primary-glow);
}

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

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

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

/* ============================================
   PAGE HERO (for inner pages)
   ============================================ */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 4vw, 60px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(21,101,192,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero-inner .section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

/* ============================================
   GRID HELPERS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============================================
   BADGE / TAG
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-blue { background: rgba(21,101,192,0.1); color: var(--primary); border: 1px solid rgba(21,101,192,0.25); }
.badge-green { background: rgba(2,136,209,0.1); color: var(--accent); border: 1px solid rgba(2,136,209,0.25); }
.badge-orange { background: rgba(255,107,53,0.1); color: var(--accent2); border: 1px solid rgba(255,107,53,0.2); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 60px var(--primary-glow), 0 0 100px rgba(21,101,192,0.08); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fadeup {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

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

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   GLOW DOTS / DECORATION
   ============================================ */
.glow-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.glow-dot-blue {
  background: rgba(0, 102, 255, 0.18);
}

.glow-dot-cyan {
  background: rgba(0, 229, 195, 0.12);
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  background: #ffffff;
  border: 1px solid rgba(21,101,192,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.2s;
  width: 100%;
}

.form-control::placeholder { color: #9CB5CC; }

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(21,101,192,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

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

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page-enter {
  animation: fadeIn 0.4s ease forwards;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ============================================
   STAT COUNTER ITEM
   ============================================ */
.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

/* Alternate background sections — white on light-blue pages */
.bg-alt {
  background: var(--bg-white);
}

/* Faint primary border on hover */
/* --primary-faint is defined in :root at top of file */

