/* ====================================
   🌟 GLOBAL STYLES & RESET
==================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: linear-gradient(to bottom right, #f4f7fc, #e9effd);
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  font-weight: 700;
}

/* ====================================
   🌐 NAVBAR
==================================== */
.navbar {
  background: linear-gradient(90deg, #003366, #0059b3);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 45px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid #ffc107;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #ffc107;
  color: #002147;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

/* ====================================
   🧭 HERO SECTION
==================================== */
.hero {
  background: linear-gradient(120deg, #004aad, #007bff);
  color: white;
  text-align: center;
  padding: 100px 20px;
  animation: fadeIn 1s ease-in;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f1f1f1;
}

.btn {
  background: linear-gradient(135deg, #ffc107, #ffb300);
  color: #003366;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #ffca28, #ffd54f);
}

/* ====================================
   💡 FEATURES SECTION
==================================== */
.features {
  padding: 70px 25px;
  text-align: center;
  background: #f9fbff;
  border-top: 4px solid #004aad;
}

.features h2 {
  color: #1e3a8a;
  font-size: 2.2em;
  margin-bottom: 25px;
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.card {
  background: white;
  border: 1px solid #cdd9f2;
  border-top: 6px solid #004aad;
  border-radius: 14px;
  padding: 25px;
  width: 280px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  border-top-color: #ffc107;
}

/* ====================================
   📘 ABOUT SECTION
==================================== */
.about {
  background: linear-gradient(to right, #ffffff, #f4f8ff);
  text-align: center;
  padding: 70px 25px;
}

.about h2 {
  color: #004aad;
  font-size: 2.2em;
  margin-bottom: 20px;
}

.about p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  background: #ffffffb3;
  border-radius: 12px;
  padding: 25px;
  border-left: 5px solid #004aad;
}

/* ====================================
   🏆 TOPPERS SECTION
==================================== */
.toppers {
  background: #f3f7ff;
  text-align: center;
  padding: 75px 25px;
}

.toppers h2 {
  color: #1e3a8a;
  font-size: 2.2em;
  margin-bottom: 30px;
}

.toppers-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.topper-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #d0ddf7;
  padding: 25px;
  width: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.topper-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.topper-card img {
  width: 100%;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #004aad;
  margin-bottom: 15px;
}

.topper-card h3 {
  color: #004aad;
  margin: 5px 0;
}

.topper-card p {
  color: #555;
  font-size: 0.95rem;
}

/* ====================================
   🧾 FORM PAGES (Login, Signup)
==================================== */
.form-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #eaf2ff, #f9fcff);
  padding: 60px 15px;
}

.form-section h2 {
  color: #004aad;
  font-size: 2rem;
  margin-bottom: 10px;
}

.form-section .subtitle {
  color: #555;
  font-size: 1rem;
  margin-bottom: 25px;
}

.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-top: 5px solid #004aad;
  animation: fadeIn 0.8s ease-in-out;
}

.form-card input {
  padding: 12px;
  border: 1px solid #c5d8ff;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-card input:focus {
  border-color: #004aad;
  box-shadow: 0 0 6px rgba(0,74,173,0.3);
  outline: none;
}

.show-password {
  font-size: 0.85rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alt-text {
  text-align: center;
  font-size: 0.9rem;
}

.alt-text a {
  color: #004aad;
  font-weight: 600;
}

/* ====================================
   ✉️ CONTACT SECTION
==================================== */
.contact {
  background: linear-gradient(145deg, #eaf2ff, #f9fcff);
  text-align: center;
  padding: 70px 25px;
  border-top: 4px solid #004aad;
}

.contact h2 {
  color: #004aad;
  margin-bottom: 20px;
  font-size: 2rem;
}

.contact form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact input,
.contact textarea {
  padding: 12px;
  border: 1px solid #c5d8ff;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.contact input:focus,
.contact textarea:focus {
  border-color: #004aad;
  box-shadow: 0 0 6px rgba(0,74,173,0.3);
  outline: none;
}

.contact button {
  background: linear-gradient(135deg, #004aad, #006bff);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.contact button:hover {
  background: linear-gradient(135deg, #00378d, #0053e6);
}

/* ====================================
   ⚙️ FOOTER (Perfect Horizontal Layout)
==================================== */
footer {
  background: linear-gradient(135deg, #002147, #004080);
  color: #ffffff;
  padding: 15px 30px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Center Section */
.footer-center {
  text-align: center;
  flex: 1;
  font-size: 0.9rem;
}

.footer-center p {
  margin: 5px 0;
}

.footer-center span {
  color: #ffcc00;
  font-weight: 600;
}

/* Logos */
.footer-logo {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.footer-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #ffcc00;
}

/* Links */
.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 3px 10px;
}

.footer-link:hover {
  color: #ffcc00;
  text-shadow: 0 0 8px #ffcc00;
}

/* ====================================
   📱 RESPONSIVE DESIGN
==================================== */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 10px;
  }

  .footer-logo {
    width: 55px;
    height: 55px;
  }

  .footer-center {
    font-size: 0.85rem;
  }
}

