/* ==========================================================================
   FDCA Gujarat - Application Management System
   Modern Government-inspired UI | PHP + MySQL Web App
   ========================================================================== */

:root {
  --primary: #003087;          /* Deep official blue */
  --primary-dark: #00205b;
  --primary-light: #004d99;
  --accent: #FF9933;           /* Saffron - Indian govt identity */
  --accent-dark: #e68a00;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --dark: #212529;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,48,135,0.12);
  --radius: 12px;
  --transition: all 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans Gujarati', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Government-style info bar */
.top-bar {
  background: var(--primary);
  color: white;
  font-size: 0.9rem;
  padding: 8px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar span {
  margin: 0 18px;
  font-weight: 400;
}

/* Header / Navbar */
.header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
  backdrop-filter: blur(8px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  vertical-align: middle;
}

.nav a {
  margin-left: 32px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--primary);
}

.btn-login {
  background: var(--accent);
  color: white !important;
  padding: 10px 26px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-login:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,153,51,0.3);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  background: linear-gradient(
    rgba(0, 48, 135, 0.78),
    rgba(0, 48, 135, 0.88)
  ), url('../img/hero-bg.jpg') center/cover no-repeat fixed;
  color: white;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,153,51,0.08), transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.hero p {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
  opacity: 0.95;
}

.subtitle {
  font-size: 1.25rem;
  opacity: 0.85;
  margin-bottom: 2.8rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 16px 38px;
  border: none;
  border-radius: var(--radius);
  font-size: 1.18rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(255,153,51,0.28);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(255,153,51,0.38);
  background: var(--accent-dark);
}

.btn-outline {
  border: 2px solid white;
  color: white;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-size: 1.18rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* Services / Features Section */
.section-padding {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--accent);
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card-icon {
  font-size: 3.8rem;
  margin-bottom: 24px;
  color: var(--accent);
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 600;
}

.card p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 40px 0 30px;
  font-size: 0.95rem;
}

.footer p {
  margin-bottom: 12px;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    min-height: 70vh;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav {
    margin-top: 12px;
  }
  
  .nav a {
    margin: 0 16px;
    font-size: 1rem;
  }
  
  .hero {
    min-height: 60vh;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-outline {
    margin-left: 0;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1.15rem;
  }
  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
  }
}