/* =====================
   GLOBAL RESET & FONTS
   ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(270deg, #dbeafe, #f0f9ff, #e0f7fa);
  background-size: 600% 600%;
  animation: pastelShift 45s ease infinite;
}

/* Animated gradient background */
@keyframes pastelShift {
  0% { background-position: 0% 50%; }
  33% { background-position: 50% 50%; }
  66% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =====================
   HEADER / NAVIGATION
   ===================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-img {
  height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #004080;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #007bff;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #007bff;
  border-radius: 2px;
}

.signup-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
}

/* Hamburger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #004080;
  border-radius: 2px;
}

/* =====================
   MOBILE MENU
   ===================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.97);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.mobile-menu.open { display: flex; }

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.mobile-links a {
  font-size: 20px;
  font-weight: 500;
  color: #004080;
  text-decoration: none;
  padding: 10px 0;
  width: 100%;
  border-bottom: 1px solid #ddd;
}
.mobile-links .signup-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
}

.close-btn {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 32px;
  border: none;
  background: none;
  cursor: pointer;
}

/* =====================
   LOGIN PANEL
   ===================== */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  gap: 40px;
  padding: 40px 20px;
}

.welcome {
  font-size: 22px;
  font-weight: 700;
  color: #004080;
  margin-bottom: 12px;
  text-align: left;
  opacity: 0.9;
}

.login-panel {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  width: 340px;
  max-width: 90vw;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.login-panel h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #444;
}

.input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}
.input.error {
  border-color: red;
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 12px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
}

.btn-outline-gradient {
  background: none;
  border: 2px solid transparent;
  border-image: linear-gradient(135deg,#007bff,#0056b3) 1;
  color: #0056b3;
}
.btn-outline-gradient:hover {
  background: linear-gradient(135deg,#007bff,#0056b3);
  color: #fff;
}

.btn-solid-gradient {
  background: linear-gradient(135deg,#007bff,#0056b3);
  color: #fff;
  border: none;
}
.btn-solid-gradient:hover {
  opacity: 0.9;
}

/* =====================
   SLIDER
   ===================== */
.slider {
  width: 500px;
  max-width: 90vw;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.slider img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================
   PAGE CONTENT
   ===================== */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}
.hero {
  text-align: center;
  margin-bottom: 50px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 600;
  color: #004080;
  margin-bottom: 15px;
}
.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  max-width: 750px;
  margin: auto;
}

/* Services Grid */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}
.service {
  background: #fff;
  padding: 28px 22px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.service h2 {
  font-size: 20px;
  font-weight: 600;
  color: #0056b3;
  margin-bottom: 12px;
}
.service p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* CTA box */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 50px 20px;
  border-radius: 18px;
}
.cta-box h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.cta-box p {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: #f9f9f9;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #555;
}
.footer .links {
  margin-bottom: 8px;
}
.footer a {
  color: #004080;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.credits {
  font-size: 13px;
  color: #333;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .login-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .slider { display: none; } /* hide slider on mobile */
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}
