/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Mulish', sans-serif;
  background: #f8f9fc;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== Header ===== */
.header {
  background: linear-gradient(135deg, #2a4d69, #166fb3); 
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  border-top: 3px solid #ffcb05;
  border-bottom: 3px solid #ffcb05;
  border-radius: 8px;
  z-index: 800;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: background 0.2s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
}

/* ===== Logo Styling (JHMITRA) ===== */
/* ===== Logo Styling (JHMITRA + Ashoka Chakra) ===== */
.header .logo h2 {
  font-weight: 900;
  font-size: 2.4rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px; /* space between text and chakra */
  padding: 0.5rem 1.2rem;
  border-radius: 16px;

  /* Tricolor gradient (saffron → white → green → navy) */
  background: linear-gradient(
    90deg,
    #ff9933,
    #ffffff,
    #138808,
    #000080
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  position: relative;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.25);

  animation: flagWave 6s ease-in-out infinite;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* Chakra image styling */
.header .logo h2 img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  animation: chakraSpin 4s linear infinite; /* spins the chakra */
}

/* Hover effect */
.header .logo h2:hover {
  transform: scale(1.1) rotate(-1deg);
  text-shadow: 3px 3px 15px rgba(0,0,0,0.35);
}

/* Ribbon-style animated underline */
.header .logo h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 75%;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff9933, #ffffff, #138808);
  box-shadow: 0 0 15px rgba(19, 136, 8, 0.8),
              0 0 20px rgba(255, 153, 51, 0.7);
  animation: underlinePulse 2s infinite;
}

/* Wave animation for the text */
@keyframes flagWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulse animation for underline */
@keyframes underlinePulse {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scaleX(1.05); opacity: 1; }
}

/* Spin animation for Ashoka Chakra */
@keyframes chakraSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Navigation */
.nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #ffcb05;
  transition: width 0.3s ease;
}

.nav a:hover {
  color: #ffcb05;
}

.nav a:hover::after {
  width: 100%;
}

/* Right Side Controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.language-toggle button {
  background: #ffcb05;
  border: none;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.language-toggle button:hover {
  background: #e5b600;
  transform: scale(1.05);
}

/* Buttons */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn--primary {
  background: #2a4d69;
  color: #fff;
}

.btn--primary:hover {
  background: #17324a;
  transform: translateY(-2px);
}

.btn--secondary {
  background: #ffcb05;
  color: #2a4d69;
}

.btn--secondary:hover {
  background: #e5b600;
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn--outline:hover {
  background: #fff;
  color: #2a4d69;
}

.btn--full-width {
  width: 100%;
}


/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  border-radius: 8px;;
  background: linear-gradient(135deg, #bfd3e4, #7cbbe2); 
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffcb05;
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ===== Features ===== */
/* ===== Features ===== */
/* key */
.features {
  background-color: #f1f3f1;
  padding: 4rem 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: #fefefe;
  padding: 2rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(194, 38, 38, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  color: #476379;
}

/* ===== Auth & Forms ===== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  background: linear-gradient(120deg, #f8f9fc, #0c61b6);
}

.auth-card {
  background: #5993b3;
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(221, 93, 93, 0.08);
  max-width: 420px;
  width: 100%;
  transition: transform 0.3s;
}

.auth-card:hover {
  transform: translateY(-5px);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: #2a4d69;
}

.form-control {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: #4b86b4;
  box-shadow: 0 0 6px rgba(75,134,180,0.3);
  outline: none;
}

/* ===== Dashboard ===== */
/* Report issue background container box */
.dashboard-nav {
  background: linear-gradient(135deg, #2a4d69, #4b86b4);
  padding: 1rem 2rem;
  border-radius: 0 0 12px 12px;
}

.dashboard-nav .nav-links {
  display: flex;
  gap: 1.5rem;
}

.dashboard-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.dashboard-nav a:hover {
  color: #ffcb05;
}

.dashboard-nav a.active {
  border-bottom: 2px solid #ffcb05;
}

/* ===== Tables ===== */
.issues-table table,
.reports-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.issues-table th,
.issues-table td,
.reports-table th,
.reports-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.issues-table th,
.reports-table th {
  background: #2a4d69;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.issues-table tr:hover,
.reports-table tr:hover {
  background: #f9fafc;
}


/* ===== Footer ===== */
/* ===== Stylish Footer ===== */
.footer {
  background: linear-gradient(135deg, #2a4d69, #4b86b4);
  color: #fff;
  padding: 3rem 1.5rem;
  margin-top: 4rem;
  border-top: 3px solid #ffcb05;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: auto;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffcb05;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.6rem;
}

.footer-section a {
  color: #ddd;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.footer-section a::after {
  
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffcb05;
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
}

.footer-section a:hover::after {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #bbb;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
}

/* ===== Hide/Show Sections ===== */
.section {
  display: none;
}

.section.active {
  display: block;
}


html {
  scroll-behavior: smooth;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #ffcb05;
  color: #2a4d69;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}


/* Animation base */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


