/* ================================================
   S.R. जनसेवा केन्द्र - Custom Styles
   Government Common Service Center Website
   Premium Hindi-First Government Portal Design
   ================================================ */

/* CSS Custom Properties - Government Portal Color Palette */
:root {
  /* Government Portal Colors - NIC/DigiLocker Inspired */
  --primary-blue: #1a365d;
  /* Deep Navy - Official */
  --secondary-green: #166534;
  /* Government Green */
  --accent-saffron: #c2410c;
  /* Subtle Saffron */
  --bg-light: #f8fafc;
  /* Clean Light Background */
  --bg-cream: #fffbeb;
  /* Warm Cream Accent */
  --text-dark: #1e293b;
  /* Dark Readable Text */
  --muted-gray: #64748b;
  /* Muted Gray */
  --card-white: #FFFFFF;
  --whatsapp-green: #25D366;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
.hindi-text {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* ================================================
   ANIMATION KEYFRAMES
   ================================================ */

/* Hero entrance animation - fade + slide up */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Subtle pulse for important elements */
@keyframes subtlePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

/* Float animation for badges */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Gradient shift for hero background */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ================================================
   HERO SECTION STYLES
   ================================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2563EB 50%, var(--primary-blue) 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

/* Decorative pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 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.05'%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");
  pointer-events: none;
}

.hero-content {
  animation: fadeSlideUp 1s ease-out;
}

.hero-title {
  animation: fadeSlideUp 1s ease-out 0.2s backwards;
}

.hero-tagline {
  animation: fadeSlideUp 1s ease-out 0.4s backwards;
}

.hero-buttons {
  animation: fadeSlideUp 1s ease-out 0.6s backwards;
}

/* Government Badge */
.govt-badge {
  background: linear-gradient(135deg, var(--accent-saffron) 0%, #EA580C 100%);
  animation: float 3s ease-in-out infinite;
}

/* ================================================
   BUTTON STYLES WITH ANIMATIONS
   ================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

/* Ripple effect on click */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.5s;
}

.btn:active::after {
  transform: scale(2);
}

/* Call Button - Green */
.btn-call {
  background: linear-gradient(135deg, var(--secondary-green) 0%, #15803D 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
}

.btn-call:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.5);
}

/* WhatsApp Button */
.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp-green) 0%, #128C7E 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Directions Button - Blue */
.btn-directions {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1D4ED8 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.btn-directions:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.5);
}

/* Secondary/Outline Button */
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* ================================================
   SERVICE CARDS
   ================================================ */

.service-card {
  background: var(--card-white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient accent on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-saffron));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #3B82F6 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1rem;
}

/* Icon categories with different colors */
.service-icon.green {
  background: linear-gradient(135deg, var(--secondary-green) 0%, #22C55E 100%);
}

.service-icon.saffron {
  background: linear-gradient(135deg, var(--accent-saffron) 0%, #FB923C 100%);
}

/* ================================================
   TRUST/FEATURE BADGES
   ================================================ */

.trust-badge {
  background: var(--card-white);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.trust-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--accent-saffron) 0%, #F59E0B 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 1rem;
}

/* ================================================
   SECTION STYLES
   ================================================ */

.section {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 2rem;
  }
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  text-align: center;
  color: var(--muted-gray);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Accent underline for titles */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-saffron));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ================================================
   CONTACT SECTION
   ================================================ */

.map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.contact-card {
  background: var(--card-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-saffron);
}

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

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

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

/* Saffron accent elements */
.accent-bar {
  width: 4px;
  background: linear-gradient(180deg, var(--accent-saffron), var(--secondary-green), var(--primary-blue));
  border-radius: 4px;
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */

@media (max-width: 640px) {
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
  }

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

  .service-card {
    padding: 1.25rem;
  }
}

/* ================================================
   SCROLL ANIMATIONS (AOS Override)
   ================================================ */

[data-aos] {
  pointer-events: auto !important;
}

/* Custom AOS animations */
[data-aos="fade-up-custom"] {
  opacity: 0;
  transform: translateY(30px);
  transition-property: transform, opacity;
}

[data-aos="fade-up-custom"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

.btn:focus,
.service-card:focus {
  outline: 3px solid var(--accent-saffron);
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}