@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Modern Color Palette */
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --primary-light: #EFF6FF;
  --secondary: #0F172A;

  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;

  --text-main: #0F172A;
  --text-muted: #64748B;

  --border: #E2E8F0;
  --border-light: #F1F5F9;

  /* Status Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* National Colors */
  --saffron: #FF9933;
  --india-white: #FFFFFF;
  --india-green: #138808;
  --chakra: #000080;

  /* Modern Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(37, 99, 235, 0.12);
  --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.2);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top Identity Strip ── */
.gov-strip {
  background: var(--secondary);
  color: #CBD5E1;
  padding: 8px 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.gov-strip-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.strip-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Pure CSS Flag */
.india-flag-mini {
  display: flex;
  flex-direction: column;
  height: 12px;
  width: 18px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.india-flag-mini span:nth-child(1) {
  background: var(--saffron);
  flex: 1;
}

.india-flag-mini span:nth-child(2) {
  background: var(--india-white);
  flex: 1;
  position: relative;
}

.india-flag-mini span:nth-child(3) {
  background: var(--india-green);
  flex: 1;
}

/* ── Modern Glassmorphism Navbar ── */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  group: hover;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.logo:hover .logo-icon {
  transform: scale(1.05) rotate(-5deg);
  box-shadow: var(--shadow-glow);
}

.logo-text {
  color: var(--secondary);
  line-height: 1.2;
}

.logo-text b {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

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

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 99px;
  /* Pill shape for modern look */
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: var(--primary);
  color: white !important;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

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

.btn-outline {
  border-color: var(--border);
  color: var(--secondary);
  background: var(--bg-surface);
}

.btn-outline:hover {
  border-color: var(--secondary);
  background: var(--bg-main);
}

/* ── Hero Section (Animated Mesh Gradient Concept) ── */
.hero {
  position: relative;
  padding: 100px 0 120px;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Abstract background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  animation: fadeUp 0.8s ease-out forwards;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* ── Services Section ── */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-surface);
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

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

.service-card h4 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
  flex-grow: 1;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-link svg {
  transition: var(--transition);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ── Footer ── */
.footer {
  background: var(--secondary);
  color: #F8FAFC;
  padding: 80px 0 30px;
  border-top: 4px solid var(--primary);
}

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

.footer-brand .logo-text {
  color: white;
}

.footer-brand .logo-text span {
  color: #94A3B8;
}

.footer-desc {
  margin-top: 20px;
  color: #94A3B8;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer h5 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 24px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer ul a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748B;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Add hamburger menu logic for real site */
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 60px 0;
  }

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

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