/* GENERAL STYLING */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Oswald", serif;
  background-color: white;
}
html {
  scroll-behavior: smooth;
}
p {
  color: black;
}

/* Navbar Styling */
.navbar-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.navbar-transparent {
  background-color: rgba(57, 61, 62, 0.4);
  backdrop-filter: blur(5px);
}

.student-micro-banner {
  position: relative;
  z-index: 1101;
}

.logo {
  font-size: 28px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
}

.menu-links {
  display: flex;
  list-style: none;
  gap: 30px;
  padding: 0;
}

.menu-links li a {
  text-decoration: none;
  font-size: 16px;
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.menu-links li a:hover {
  color: #f0f0f0;
}

.menu-links li .dropdown {
  display: inline-block;
  margin-left: 5px;
}

/* Burger Menu Styling */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 1100;
}

.burger span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animation */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile View */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .menu-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .menu-links.open {
    max-height: 500px;
  }

  .menu-links li {
    text-align: center;
    padding: 15px 0;
  }

  .menu-links li a {
    font-size: 18px;
  }

  .student-micro-banner {
    margin-top: 60px;
  }
}

@media (max-width: 768px) {
  .navbar-bg {
    padding: 0 20px;
  }
}

/* Main Landing */
#landing {
  position: relative;
  height: 80vh;
  background: url('./uploads/bg-image.webp') no-repeat center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  overflow: hidden;
}

.info-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: calc(100vh - 100px);
  padding: 20px;
}

.sect-text-1 {
  font-size: 2.5rem;
  color: #F7F7FF;
  margin-bottom: 10px;
}

.title {
  font-size: 3.5rem;
  color: #F7F7FF;
  margin: 0;
}

.sct-text-2 {
  font-size: 1.5rem;
  color: #BDD5EA;
  max-width: 600px;
  line-height: 1.6;
}

/* Transparent Section Background */
#about {
  position: relative;
  padding: 4rem 10%;
  background: rgba(240, 240, 240, 0.7);
  backdrop-filter: blur(6px);
}

/* About Content */
.about-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 1rem;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-details-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: center;
  max-width: 300px;
  flex: 1;
  min-width: 250px;
}

.about-icon {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.about-details-container h3 {
  font-size: 1.2rem;
  color: #222;
}

.about-details-container p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

hr {
  margin: 5.5rem;
}

/* Button Container */
.btn_container {
  display: flex;
  justify-content: center;
  margin: 10px;
}

.btn {
  padding: 18px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn_color {
  background: #0a74da;
  color: white;
  transition: background 0.3s ease;
}

.btn_color:hover {
  background: #0953a6;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Estimate Section */
.estimate-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 3rem 1rem;
  background-color: #f4f9fd;
  border-top: 1px solid #ddd;
  flex-wrap: wrap;
}

.estimate-image {
  max-width: 100%;
  width: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-right: 30px;
}

.estimate-content {
  max-width: 500px;
  padding: 1rem;
}

@media (max-width: 768px) {
  .estimate-container {
    flex-direction: column;
    text-align: center;
  }

  .estimate-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

.estimate-title {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 1rem;
}

.estimate-description {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.estimate-link {
  display: inline-block;
  background-color: #306bff;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.estimate-link:hover {
  background-color: #1f54d4;
}

/* ==== MODAL OVERLAY ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

/* ==== MODAL CONTENT ==== */
.modal-content {
  background-color: #fff;
  color: #222;
  margin: 8% auto;
  padding: 25px 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: fadeInScale 0.3s ease;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  max-height: 86vh;           /* prevent off-screen overflow */
  overflow: auto;             /* enable scrolling inside modal */
}

/* ==== ANIMATION ==== */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==== CLOSE ICON ==== */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close:hover {
  color: #000;
}

/* ==== FORM STYLING ==== */
.modal-content h2 {
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
  font-size: 22px;
}

.modal-content form input[type="text"],
.modal-content form input[type="email"],
.modal-content form input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
}
.modal-content form input:focus {
  outline: none;
  border-color: #007bff;
}

/* Match selects to inputs */
.modal-content form select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px; /* space for chevron */
}
.modal-content form select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

/* ==== FORM BUTTON ==== */
.modal-content form button {
  padding: 12px;
  width: 100%;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.modal-content form button:hover {
  background-color: #555;
}

/* ==== SOCIAL LOGIN ==== */
.google-btn {
  background-color: #dd4b39;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.google-btn:hover {
  background-color: #c23321;
}
.google-btn i {
  margin-right: 8px;
}

/* ==== SWITCH LINK ==== */
.switch-link {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}
.switch-link a {
  color: #007bff;
  cursor: pointer;
  text-decoration: none;
}
.switch-link a:hover {
  text-decoration: underline;
}

/* ==== SCROLL LOCK WHEN MODAL IS OPEN ==== */
body.modal-open {
  overflow: hidden;
}

/* ==== DARK MODE SUPPORT (OPTIONAL) ==== */
body.dark .modal-content {
  background-color: #1e1e1e;
  color: #f0f0f0;
}
body.dark .modal-content form input {
  background-color: #2c2c2c;
  color: #f0f0f0;
  border-color: #555;
}
body.dark .modal-content form button {
  background-color: #444;
}
body.dark .google-btn {
  background-color: #c1442e;
}

/* ==== LOADING SPINNER (OPTIONAL) ==== */
.loading-spinner {
  display: none;
  margin: 10px auto;
  width: 25px;
  height: 25px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}




.site-footer {
  background-color: #839ba45a;
  color: #080404;
  padding: 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 6px 0;
}

.footer-section ul li a,
.footer-section a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #00adb5;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  font-size: 20px;
  color: #f0f0f0;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #00adb5;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 20px;
  }
}

/* User Chip Styling */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 16px;
  border: 1px solid #ffffffaa;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.user-chip:hover { background: rgba(255,255,255,0.1); }

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  min-width: 180px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 2000; /* raise above navbar */
}

/* Stronger specificity so it overrides .menu-links li a */
.menu-links .user-menu a {
  display: block;
  color: #111 !important;
  font-weight: 600;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 6px;
}
.menu-links .user-menu a:hover { background: #f3f4f6; }
 

/* util for accessible labels */
      .visually-hidden {
        position: absolute !important;
        height: 1px;
        width: 1px;
        overflow: hidden;
        clip: rect(1px, 1px, 1px, 1px);
        white-space: nowrap;
        border: 0;
        padding: 0;
        margin: -1px;
      }
      .muted {
        color: #666;
      }