* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(145deg, #e9f0f5 0%, #d4e0e9 100%);
  min-height: 100vh;
  padding: 100px 0 0;
  flex-direction: column;
  margin: 0;
}

/* ----- NAVBAR ----- */
.portal-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #035c7c;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 50, 50, 0.15);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 50;
}

.logo-left, .logo-right {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.6rem;
  box-shadow: 0 6px 12px rgba(0, 30, 30, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-center {
  text-align: center;
  flex: 1 1 auto;
  padding: 0 1rem;
}

.nav-title-main {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-title-sub {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ----- CONTENT WRAPPER ----- */
.content-wrapper {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 1.5rem 2rem;
  width: 100%;
}

/* ----- MAIN CARD ----- */
.portal-card {
  background: #ffffff;
  max-width: 480px;
  width: 100%;
  padding: 2.8rem 2.2rem 3rem;
  border-radius: 36px;
  box-shadow: 0 30px 45px -12px rgba(2, 48, 71, 0.25), 0 8px 18px rgba(0, 20, 30, 0.08);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  margin: 0 auto 2rem;
}

h1 {
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  color: #023047;
  margin-bottom: 0.2rem;
}

.portal-sub {
  color: #2b6c8f;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 2.5rem;
  border-bottom: 1.5px solid #cbdde9;
  padding-bottom: 1.2rem;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.btn {
  border: none;
  background: #f8fafc;
  padding: 1.1rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1.25rem;
  color: #023047;
  border: 1.5px solid #cbdde9;
  cursor: pointer;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  font-family: inherit;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  background: #e1ecf4;
  border-color: #7aa5c2;
  box-shadow: 0 12px 18px rgba(33, 89, 120, 0.1);
  transform: scale(1.01);
}

.btn-primary {
  background: #035c7c;
  border-color: #023e58;
  color: white;
  box-shadow: 0 12px 20px -6px rgba(3, 92, 124, 0.35);
}

.btn-primary:hover {
  background: #02465e;
  border-color: #012a3a;
}

.footer-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #4f6f87;
  font-weight: 500;
}

/* ----- MODAL ----- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 48, 71, 0.5);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-box {
  background: white;
  max-width: 440px;
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 35px 55px rgba(1, 37, 54, 0.3);
  padding: 2rem 1.8rem 1.8rem;
  transform: scale(0.98);
  transition: transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.active .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.modal-header h3 {
  font-weight: 650;
  font-size: 1.6rem;
  color: #023047;
  letter-spacing: -0.02em;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #54738f;
  padding: 0 5px;
  transition: color 0.15s;
}

.modal-close:hover {
  color: #023047;
}

.modal-message {
  color: #1e3b4f;
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0.5rem 0 2rem;
  padding: 0 0.2rem;
  font-weight: 450;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  background: #edf2f7;
  color: #1e3b4f;
  transition: all 0.15s;
  font-family: inherit;
}

.modal-btn.proceed-btn {
  background: #035c7c;
  color: white;
  box-shadow: 0 6px 12px rgba(3, 92, 124, 0.2);
  border: none;
}

.modal-btn.proceed-btn:hover {
  background: #02455e;
}

.modal-btn:hover {
  background: #d9e2ec;
}

/* ----- FOOTER ----- */
.portal-footer {
  padding: 1.5rem 2rem;
  background: #035c7c;
  color: white;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.footer-copyright {
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.footer-browser-note {
  opacity: 0.9;
  font-size: 0.8rem;
}

.footer-resolution {
  opacity: 0.85;
  font-size: 0.8rem;
  margin-top: 4px;
  font-style: italic;
}

/* ----- LOGO IMAGES ----- */
.logo-img {
  width: 118px;
  height: 104px;
}

.logo-isro {
  width: 104px;
  height: 96px;
  object-fit: contain;
  border-radius: 14px;
  background: white;
  padding: 4px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
  .portal-nav {
    padding: 0.6rem 1.2rem;
  }
  .nav-title-main {
    font-size: 1.3rem;
  }
  .nav-title-sub {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }
  .logo-icon {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }
  .content-wrapper {
    padding-top: 85px;
  }
}

@media (max-width: 520px) {
  .nav-title-main {
    font-size: 1rem;
  }
  .nav-title-sub {
    font-size: 0.6rem;
  }
  .portal-card {
    padding: 2rem 1.5rem;
  }
  h1 {
    font-size: 2rem;
  }
  .portal-footer {
    padding: 1.2rem 1rem;
    font-size: 0.75rem;
  }
  .content-wrapper {
    padding-top: 80px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}