/* Global Styles */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: white;
  background: linear-gradient(180deg, #03030a, #15002d, #2b0057);
  min-height: 100vh;
  padding-bottom: 50px;
}

html {
  scroll-behavior: smooth;
}

/* --- NAVBAR (Desktop Defaults) --- */
.navbar {
  width: 100%;
  padding: 25px 0; /* Slightly more padding for the larger text */
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  z-index: 2000;
  border-bottom: 1px solid rgba(155, 77, 255, 0.2);
}

/* Hide mobile-only elements on desktop */
#nav-check, .nav-btn, .nav-title {
  display: none;
}

.nav-links {
  display: flex;
  justify-content: center;
}

.nav-links a {
  margin: 0 30px; /* Increased margin for better spacing with larger text */
  text-decoration: none;
  color: #e8e8e8;
  font-size: 24px; /* Increased desktop text size */
  font-weight: 600; /* Slightly bolder to match the size */
  position: relative;
  transition: 0.3s ease;
}

/* Underline effect */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background: #9b4dff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #9b4dff;
}

.nav-icon {
  display: none;
}

/* --- MOBILE RESPONSIVE (768px and below) --- */
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    height: 64px;
    box-sizing: border-box;
    border-bottom: none;
    border-top: 1px solid rgba(155, 77, 255, 0.25);
    background: rgba(8, 0, 20, 0.92);
  }

  .nav-title, .nav-btn, #nav-check {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    width: 100%;
    height: 100%;
    background: transparent;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    text-align: center;
    box-shadow: none;
    border-bottom: none;
  }

  .nav-links a {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px 4px;
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    color: rgba(233, 215, 255, 0.55);
    border-bottom: none;
  }

  .nav-icon {
    display: block;
    font-size: 18px;
    line-height: 1;
    filter: grayscale(0.4) brightness(1.3);
  }

  .nav-label {
    line-height: 1;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a[href*="contact"] {
    display: none;
  }

  .nav-links a[href="research.html"]   { order: 1; }
  .nav-links a[href="experience.html"] { order: 2; }
  .nav-links a[href="index.html"]      { order: 3; color: #c08eff; font-weight: 800; }
  .nav-links a[href="index.html"] .nav-icon { font-size: 21px; filter: none; }
  .nav-links a[href="services.html"]   { order: 4; }
  .nav-links a[href="profile.html"]    { order: 5; }
  .nav-links a[href="policy.html"]     { order: 6; }

  body {
    padding-bottom: 84px;
  }

  .scroll-top-btn {
    bottom: 80px;
  }

  .two-col {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 10%;
  }

  .hero-image img {
    width: 200px;
  }
}