/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f4f6f8;
  color: #222;
}

/* ================= CONTAINER ================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER ================= */
header {
  background: linear-gradient(90deg, #0052d4, #4364f7, #6fb1fc);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: 0.4s;
}

header:hover {
  background: linear-gradient(90deg, #4364f7, #6fb1fc, #0052d4);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  background: white;
  color: #0052d4;
  padding: 6px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.15);
  }
}

/* NAVIGATION */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 25px;
  transition: 0.3s;
  position: relative;
}

.nav a:hover,
.nav a.active {
  background: white;
  color: #0052d4;
}

/* Active page indicator */
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: #ffce00;
  border-radius: 3px;
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

/* ================= BUTTONS ================= */
.btn {
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: 0.3s;
}

.primary {
  background: #0052d4;
  color: white;
}

.primary:hover {
  background: #003a9f;
}

.secondary {
  background: #6fb1fc;
  color: #111;
}

.secondary:hover {
  background: #4364f7;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  height: 450px; /* reduced height */
  display: flex;
  align-items: center;
  color: white;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* darker overlay for clarity */
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero-text {
  opacity: 0;
  animation: slideUp 1s forwards;
  position: relative;
  z-index: 1;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero p {
  margin: 15px 0;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-buttons .btn {
  font-size: 16px;
  padding: 10px 20px;
}

/* ================= SECTIONS ================= */
section {
  padding: 80px 0;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #0052d4;
  font-size: 32px;
}

/* GRID & CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: 0.35s;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0052d4, #6fb1fc);
}

.card:hover {
  transform: translateY(-10px);
}

/* ================= EMERGENCY ================= */
.emergency {
  background: #fff0f0;
  border-left: 6px solid red;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.15);
}

/* ================= SCAMS ================= */
.scams-section {
  padding: 70px 20px;
  background: #eef6ff;
  text-align: center;
}

.scams-section h2 {
  font-size: 32px;
  margin-bottom: 8px;
  color: #d63031;
}

.scam-note {
  font-size: 15px;
  color: #555;
  margin-bottom: 35px;
}

.scam-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.scam-btn {
  background: #ffffff;
  padding: 20px 22px;
  border-radius: 14px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  transition: 0.35s ease;
  border-left: 6px solid #0052d4;
}

.scam-btn span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #0052d4;
  font-weight: 500;
}

.scam-btn:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 82, 212, 0.35);
  background: #eaf4ff;
}

.scam-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0, 82, 212, 0.25), transparent);
  transition: 0.6s;
}

.scam-btn:hover::after {
  left: 100%;
}

/* ================= MOBILE SAFETY CHECKLIST ================= */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.safety-btn {
  background: linear-gradient(135deg, #f0fff4, #ffffff);
  border-left: 6px solid #28a745;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.4s ease;
}

.safety-btn::before {
  content: "🛡";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 80px;
  opacity: 0.07;
}

.safety-btn span {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1b5e20;
  background: #e8f5e9;
  border-radius: 20px;
}

.safety-btn::after {
  content: "➜";
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 20px;
  color: #28a745;
  transition: 0.3s;
}

.safety-btn:hover {
  transform: translateY(-10px) scale(1.02);
  background: linear-gradient(135deg, #d4f8df, #ffffff);
  box-shadow: 0 15px 35px rgba(40, 167, 69, 0.35);
}

.safety-btn:hover::after {
  transform: translateX(6px);
}

/* ================= CONTACT FORM ================= */
#contact input,
#contact textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Loader & Success */
.loader {
  display: none;
  margin: 15px auto;
  width: 35px;
  height: 35px;
  border: 4px solid #ccc;
  border-top: 4px solid #0052d4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.success-tick {
  display: none;
  margin: 15px auto;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #28a745;
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tickPop 0.6s ease;
}

@keyframes tickPop {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ================= FOOTER ================= */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 20px;
}

.social {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social a {
  width: 40px;
  height: 40px;
  background: #0052d4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: 0.3s;
}

.social a:hover {
  background: white;
  color: black;
}

/* ================= WHATSAPP ================= */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 12px;
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){
  .menu-toggle{display:block;}
  .header-row{flex-direction:column;}
  .nav{
    display:none;
    flex-direction:column;
    width:100%;
    background:#0052d4;
    border-radius:12px;
    padding:15px 0;
  }
  .nav.show{display:flex;}
  .nav a{
    width:90%;
    margin:6px auto;
    text-align:center;
    background:white;
    color:#0052d4;
  }

  .hero-grid{
    grid-template-columns:1fr;
    text-align:center;
  }

  .hero-buttons{justify-content:center;}
}
/* ================= NOTIFICATION TICKER ================= */
#notification-ticker {
  position: relative;
  background: linear-gradient(90deg, #ff6b6b, #ff3d3d);
  color: #fff;
  font-weight: 600;
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  font-size: 16px;
}

#notification-ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: tickerMove 20s linear infinite;
}

@keyframes tickerMove {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}
/* ================= MOBILE SMOOTH FIX ================= */
html {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    margin-bottom: 20px;
  }

  .hero {
    height: auto;
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }
}

/* smooth card animation */
.card {
  transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover {
  transform: translateY(-8px);
}
/* ===== MOBILE MENU FIX ===== */

.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 9999;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    z-index: 9998;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 15px;
    border-bottom: 1px solid #eee;
  }
}

/* click blocking issue fix */
header,
.header-row {
  position: relative;
  z-index: 10000;
}
/* ===== STAY ALERT MOVING BAR ===== */

.alert-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: #e90b0b;
}

.alert-bar {
  white-space: nowrap;
  padding: 12px 0;
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
  display: inline-block;
  animation: alertMove 15s linear infinite;
}

@keyframes alertMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 768px) {
  .alert-bar {
    font-size: 14px;
  }
}
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
  }

  .nav {
    position: absolute;
    top: 65px;
    right: 15px;
    width: 230px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    padding: 10px;
    display: flex;
    flex-direction: column;

    /* animation setup */
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 999;
  }

  .nav.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
  }

  .nav a:hover {
    background: #f1f1f1;
  }
}
.login-btn {
  display: inline-block;
  margin-left: 10px;
}

@media(max-width: 768px){
  .login-btn {
    margin-top: 10px; /* मोबाइल पर नीचे थोड़ी जगह */
  }
}
