/* ============================
   PRAGYAN EDUSEC — Design System
   Modern Sans-Serif + Glassmorphism
   ============================ */

/* Google Fonts — Inter (full weight range) + Outfit (brand) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ============================
   CSS Variables (Design Tokens)
   ============================ */
:root {
  /* Colors - Light Theme Overhaul */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --bg-glass-hover: rgba(255, 255, 255, 0.8);

  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-purple: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #2563eb, #06b6d4);
  --accent-gradient-2: linear-gradient(135deg, #7c3aed, #2563eb);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-accent: 0 10px 20px rgba(37, 99, 235, 0.15);

  --text-primary: #111827;
  --text-secondary: #1e293b;
  --text-muted: #64748b;
  --text-accent: #2563eb;

  --border-glass: rgba(0, 0, 0, 0.05);
  --border-accent: rgba(37, 99, 235, 0.2);

  /* Typography — Modern Sans-Serif System */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand: 'Outfit', sans-serif;

  /* Accent — Blue highlight */
  --accent-green: #3b82f6;
  --accent-teal: #0ea5e9;
  --accent-gradient-green: linear-gradient(135deg, #3b82f6, #0ea5e9);

  /* Sizing */
  --container-max: 1200px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lucide Icons — accent blue theme */
[data-lucide] {
  color: var(--accent-blue);
  stroke: var(--accent-blue);
}

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

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

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

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

a:hover {
  color: var(--accent-cyan);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.35rem, 3vw, 1.85rem); letter-spacing: -0.02em; }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); letter-spacing: -0.015em; }

/* Global accent text — green/teal gradient highlight on keywords */
.gradient-text {
  background: var(--accent-gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
}

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

section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* ============================
   Animated Background
   ============================ */
.bg-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(59,130,246,0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(6,182,212,0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.6) 0%, transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f1f5f9 100%);
}

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  z-index: 0;
}

.bg-stars::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  border-radius: 50%;
  animation: floatBlob 20s ease-in-out infinite;
}

.bg-stars::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  bottom: -200px;
  left: -150px;
  border-radius: 50%;
  animation: floatBlob 25s ease-in-out infinite;
  animation-delay: -8s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ============================
   Navigation
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  height: 60px;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-glass);
}
.navbar.scrolled .brand-logo {
  height: 44px;
}
.navbar.scrolled .nav-brand {
  padding-left: 54px;
}
.navbar.scrolled .nav-brand .brand-text {
  font-size: 1rem;
}
.navbar.scrolled .nav-brand .brand-text span {
  font-size: 1rem;
}
@media (min-width: 1025px) {
  .navbar.scrolled .nav-links {
    flex-direction: row;
    gap: 20px;
  }
}
.navbar .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 100%;
  width: 100% !important;
  max-width: none !important;
  padding: 0 2rem !important; /* Minimal padding for edge-to-edge feel */
}
.navbar .nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1001;
  position: relative;
}

/* Base brand logo (shared navbar) */
.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-base);
}

.navbar .brand-logo {
  height: 80px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  filter: drop-shadow(0 2px 10px rgba(37, 99, 235, 0.15));
}

.navbar .nav-brand {
  padding-left: 90px; /* offset for the absolute logo */
}

.nav-brand .brand-text {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.2;
  text-transform: uppercase;
  display: none; /* Logo image already contains brand name — hide duplicate text */
}

.nav-brand .brand-text span {
  color: var(--accent-blue);
  display: inline;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  flex-direction: row; /* Back to horizontal */
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.nav-cta {
  background: var(--accent-gradient) !important;
  color: var(--text-primary) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(79, 125, 249, 0.3);
}

.nav-cta:hover {
  box-shadow: 0 6px 25px rgba(79, 125, 249, 0.5) !important;
  transform: translateY(-2px);
}

/* Mobile Menu */
.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 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);
}

/* Mobile-only elements: hidden on desktop */
.mobile-menu-header,
.mobile-menu-close {
  display: none;
}

/* On desktop: nav-links-wrapper behaves like a flex row */
.mobile-nav-links-wrapper {
  display: contents; /* Makes children flow directly inside .nav-links flex */
}

/* ============================
   Hero Section
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

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

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: rgba(37, 99, 235, 0.05); /* Light blue tint */
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-blue); /* Professional blue text */
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.05);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  margin-bottom: 28px;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #111827;
  max-width: 800px;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
}

.hero h1 .gradient-text {
  background: var(--accent-gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #374151;
  font-weight: 400;
  margin-bottom: 44px;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

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

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  gap: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
  filter: brightness(1.05);
}

.btn-secondary {
  background: white;
  color: #0a0f1e;
  border: 2px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  font-weight: 700;
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.btn-icon {
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ============================
   Section Headers
   ============================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-blue);
  opacity: 0.5;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #374151;
  font-weight: 400;
}

/* ============================
   Glass Cards
   ============================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 125, 249, 0.3), transparent);
  opacity: 0;
  transition: var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--glow-blue);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 204, 255, 0.2);
}

.card-icon.purple {
  background: var(--purple-gradient);
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.2);
}

.glass-card h3 {
  margin-bottom: 12px;
}

.glass-card p {
  font-size: 0.95rem;
}

/* ============================
   Stats Section
   ============================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.stat-item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-blue);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  color: #334155;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================
   Offerings / Ecosystem Grid
   ============================ */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.offering-card {
  position: relative;
}

.offering-card .card-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(79, 125, 249, 0.1);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.offering-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.offering-card .learn-more:hover {
  gap: 10px;
}

/* ============================
   Team Section
   ============================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
}

.team-card .avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: var(--accent-gradient);
  padding: 3px;
  position: relative;
}

.team-card .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-primary);
}

.team-card .avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent-blue);
  font-family: var(--font-heading);
  font-weight: 700;
}

.team-card .role {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.team-card h3 {
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.9rem;
}

.team-card .social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.team-card .social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.offering-card .card-icon {
  width: 100%;
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
  margin: -2rem -2rem 1.5rem -2rem; /* Pull up to touch edges */
}

.offering-card .card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.offering-card:hover .card-icon img {
  transform: scale(1.1);
}

.team-card .social-links a:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}

/* ============================
   Blog Cards
   ============================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  overflow: hidden;
  padding: 0;
}

.blog-card .blog-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

.blog-card:hover .blog-image img {
  transform: scale(1.08);
}

.blog-card .blog-image .blog-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  background: rgba(79, 125, 249, 0.9);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card .blog-content {
  padding: 28px;
}

.blog-card .blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card .blog-content h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.blog-card:hover .blog-content h3 {
  color: var(--accent-blue);
}

.blog-card .blog-content p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================
   Contact Section
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

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

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

.contact-info-card .info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 40px;
  backdrop-filter: blur(10px);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 125, 249, 0.15);
}

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

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

/* ============================
   Why Pragyan / Features
   ============================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.feature-item:hover {
  border-color: var(--border-accent);
}

.feature-item .feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.feature-item h4 {
  margin-bottom: 6px;
  color: #0a0f1e;
}

.feature-item p {
  font-size: 0.9rem;
  color: #334155;
  font-weight: 450;
}

/* ============================
   CTA Banner
   ============================ */
.cta-banner {
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-accent);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* Override gradient-text inside banner — must be solid white for readability */
.cta-banner .gradient-text {
  background: none;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
  color: rgba(255, 255, 255, 0.85);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  background: #ffffff;
  color: var(--accent-blue);
  position: relative;
  z-index: 1;
  border: none;
}

.cta-banner .btn:hover {
  background: #f8fafc;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================
   Footer
   ============================ */
.footer {
  background: #0f172a; /* Deep footer for strong anchor */
  padding: 80px 0 40px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}
.footer .brand-logo {
  height: 60px;
  filter: none;
}

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

.footer h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-links a {
  display: block;
  color: #94a3b8;
  padding: 6px 0;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

/* Instagram brand color hover */
.footer-social a[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
}

/* LinkedIn brand color hover */
.footer-social a[aria-label="LinkedIn"]:hover {
  background: #0077b5;
  border-color: transparent;
}


/* ============================
   Page Hero (Inner Pages)
   ============================ */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 125, 249, 0.12), transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.page-hero h1 {
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ============================
   Vision & Mission
   ============================ */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ============================
   Timeline
   ============================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-gradient);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(79, 125, 249, 0.5);
}

.timeline-item .timeline-date {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ============================
   Map Container
   ============================ */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  margin-top: 48px;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  filter: brightness(0.7) contrast(1.2) saturate(0);
}

/* ============================
   Scroll Reveal Animations
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

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

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

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   Responsive Design
   ============================ */

/* --- Tablet: 1024px and below --- */
@media (max-width: 1024px) {
  .navbar .container {
    display: flex;
    justify-content: space-between;
  }

  /* Scale brand down slightly for tablet */
  .navbar .nav-brand {
    margin: 0;
    justify-self: flex-start;
    scale: 0.85;
    transform-origin: left center;
  }

  /* === MOBILE MENU — PROFESSIONAL WHITE THEME === */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    z-index: 1100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
  }

  .nav-links.active {
    display: flex;
    animation: menuFadeIn 0.25s ease;
  }

  @keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* --- Mobile Menu Header: Logo + Close Button --- */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    background: #ffffff;
  }

  .mobile-menu-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
  }

  .mobile-menu-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #374151;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
  }

  .mobile-menu-close:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563eb;
  }

  /* --- Mobile Menu: Nav Links Container --- */
  .mobile-menu-header {
    display: flex; /* Override the desktop display:none */
  }

  .mobile-nav-links-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 16px 20px;
    gap: 4px;
    flex: 1;
  }

  /* Remove the old ::before spacer */
  .nav-links::before {
    display: none;
  }

  /* --- Mobile Menu: Link Styles --- */
  .nav-links a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.0rem;
    font-weight: 500;
    letter-spacing: 0;
    color: #1e293b;
    padding: 14px 20px;
    width: 100%;
    text-align: left;
    text-decoration: none;
    border-radius: 10px;
    margin: 0;
    background: transparent;
    transition: all 0.18s ease;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }

  .nav-links a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
  }

  /* Active page link */
  .nav-links a.active {
    color: #2563eb;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
  }

  .nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    border-radius: 0 3px 3px 0;
  }

  /* Divider before CTA */
  .nav-links a.nav-cta {
    margin-top: 12px;
    background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.22);
    text-align: center !important;
    justify-content: center !important;
  }

  .nav-links a.nav-cta::after {
    display: none !important;
  }

  .nav-links a.nav-cta:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.32) !important;
    transform: translateY(-1px);
  }

  /* --- Hamburger visible on tablet/mobile --- */
  .nav-toggle {
    display: flex;
  }

  .nav-toggle span {
    background: #1e293b;
  }

  .nav-toggle.active span {
    background: #1e293b;
  }

  /* Hide toggle when menu is open (close button handles it) */
  .nav-toggle.active {
    display: none;
  }

  .hero-visual {
    display: none;
  }

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

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

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

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

/* --- Mobile: 768px and below --- */
@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  /* Navbar adjustments for small phones */
  .navbar .nav-brand {
    scale: 0.75;
    transform-origin: left center;
  }

  .navbar .brand-logo {
    height: 64px;
  }

  /* Mobile menu inherits white theme from 1024px breakpoint */
  .nav-links a {
    font-size: 1rem;
    padding: 16px 24px;
    margin: 2px 20px;
  }

  .offerings-grid,
  .team-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

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

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

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

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

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

  .cta-banner {
    padding: 48px 24px;
  }
}

/* --- Small phones: 480px and below --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .navbar .nav-brand {
    scale: 0.7;
    transform-origin: left center;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 15px 20px;
    margin: 2px 16px;
  }
}

/* ============================
   Loading Spinner
   ============================ */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
  vertical-align: middle;
}

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

