/* CSS Variables */
:root {
  --primary: #0f4c75;
  --secondary: #d9d9d9;
  --accent: #f9a826;
  --background: #ffffff;
  --foreground: #2b2d42;
  --card: #f0f4f8;
  --card-foreground: #2b2d42;
  --muted: #f0f4f8;
  --muted-foreground: #2b2d42;
  --border: #d9d9d9;
  --ring: rgba(15, 76, 117, 0.5);
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.font-marathi {
  font-family: "Noto Sans Devanagari", sans-serif;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 76, 117, 0.3);
}

.btn-primary:hover {
  background: #0a3d5c;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 76, 117, 0.4);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.emergency-bar {
  background: var(--primary);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.emergency-content {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.emergency-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.emergency-icon {
  width: 1rem;
  height: 1rem;
}

.navbar {
  padding: 1rem 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
}

.logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.brand-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: var(--foreground);
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--foreground);
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  background: var(--muted);
}

.language-icon {
  width: 1rem;
  height: 1rem;
}

.whatsapp-btn {
  background: #16a34a;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-decorations {
  position: absolute;
  inset: 0;
}

.decoration {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 3s ease-in-out infinite;
}

.decoration-1 {
  top: 2rem;
  left: 2rem;
  width: 2rem;
  height: 2rem;
}

.decoration-2 {
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  animation-delay: 1s;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  padding: 2rem 0;
}

.hero-logo {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.logo-glow {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  filter: blur(20px);
  animation: pulse 2s ease-in-out infinite;
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-logo-icon {
  width: 2rem;
  height: 2rem;
  color: white;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-description {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 400px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* About Section */
.about {
  padding: 3rem 0;
  background: linear-gradient(to bottom, var(--card), var(--background));
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* SP Message Section */
.sp-message {
  padding: 3rem 0;
  background: linear-gradient(to bottom, var(--background), var(--card));
}

.sp-card {
  background: linear-gradient(135deg, var(--card), rgba(240, 244, 248, 0.8));
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0;
}

.sp-image {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 76, 117, 0.05), rgba(217, 217, 217, 0.05));
}

.sp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.sp-info {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  padding: 1rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.sp-title {
  font-size: 0.875rem;
  opacity: 0.9;
}

.sp-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.quote-marks {
  position: absolute;
}

.quote-start {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 3rem;
  color: rgba(15, 76, 117, 0.2);
  font-family: serif;
  line-height: 1;
}

.quote-end {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 3rem;
  color: rgba(15, 76, 117, 0.2);
  font-family: serif;
  line-height: 1;
  transform: rotate(180deg);
}

.sp-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(15, 76, 117, 0.3);
}

.sp-icon .icon {
  width: 1rem;
  height: 1rem;
  color: white;
}

.sp-heading {
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-message-content {
  background: linear-gradient(135deg, rgba(15, 76, 117, 0.05), rgba(217, 217, 217, 0.05));
  border-radius: 0.5rem;
  padding: 1.5rem;
  border-left: 4px solid rgba(15, 76, 117, 0.3);
  position: relative;
  z-index: 10;
}

.sp-message-content p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.sp-message-content p:last-child {
  margin-bottom: 0;
}

.sp-signature {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(217, 217, 217, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.signature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(15, 76, 117, 0.1);
  border-radius: 50%;
}

.signature-icon .icon {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--primary);
}

.signature-text {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Services Section */
.services {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: linear-gradient(135deg, var(--card), rgba(240, 244, 248, 0.5));
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

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

.service-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: white;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: var(--primary);
}

.service-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Color Classes */
.bg-red {
  background-color: #ef4444;
}
.bg-blue {
  background-color: #3b82f6;
}
.bg-pink {
  background-color: #ec4899;
}
.bg-purple {
  background-color: #8b5cf6;
}
.bg-orange {
  background-color: #f97316;
}
.bg-green {
  background-color: #22c55e;
}
.bg-indigo {
  background-color: #6366f1;
}
.bg-teal {
  background-color: #14b8a6;
}

/* How to Use Section */
.how-to-use {
  padding: 3rem 0;
  background: var(--card);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(15, 76, 117, 0.3);
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.step-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Helplines Section */
.helplines {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--background), var(--card));
}

.helplines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.helpline-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.helpline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.helpline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.helpline-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.helpline-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.helpline-label {
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Trust Message Section */
.trust-message {
  padding: 2rem 0;
  background: var(--primary);
  color: white;
}

.trust-text {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* CTA Section */
.cta {
  padding: 4rem 0;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--card);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.footer-links,
.footer-helplines {
  list-style: none;
}

.footer-links li,
.footer-helplines li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-helplines a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-helplines a:hover {
  color: var(--primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: var(--primary);
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

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

.copyright {
  color: var(--muted-foreground);
}

.footer-links-bottom {
  display: flex;
  gap: 2rem;
}

.footer-links-bottom a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: 35vh;
    margin-top: 100px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.875rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .sp-card {
    grid-template-columns: 1fr;
  }

  .sp-photo {
    aspect-ratio: 4 / 3;
  }

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

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

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

  .hero-stats {
    gap: 1rem;
  }

  .emergency-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .nav-brand {
    gap: 0.5rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.75rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .helplines-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
  }

  .emergency-content {
    gap: 0.25rem;
  }

  .emergency-item {
    font-size: 0.75rem;
  }
}
