/* GLOBAL */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #03030a, #15002d, #2b0057);
  color: white;
  min-height: 100vh;
}

/* SMOOTH SCROLL */
html {
  scroll-behavior: smooth;
}

/* --- NAVBAR (Consistent with Homepage) --- */
.navbar {
  width: 100%;
  padding: 25px 0;
  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;
  text-decoration: none;
  color: #e8e8e8;
  font-size: 24px; /* Matches your preferred desktop size */
  font-weight: 600;
  position: relative;
  transition: 0.3s ease;
}

.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 NAVBAR (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;
  }

  /* Adjust Page Padding for Mobile */
  .page-container {
    padding: 60px 5% !important;
  }
}

/* --- RESEARCH CONTENT --- */
.page-container {
  padding: 100px 10%;
}

.page-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 20px;
  opacity: 0.85;
  margin-bottom: 60px;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  padding: 80px; 
  border-radius: 24px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.card h2 {
  font-size: 42px; 
  font-weight: 700;
  margin-bottom: 30px;
  color: #ffffff;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  font-size: 26px; 
  line-height: 1.7; 
  margin: 20px 0;
  opacity: 0.95;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(111, 43, 255, 0.4);
}

/* MOBILE CARD OVERRIDES */
@media (max-width: 768px) {
  .card {
    padding: 40px 20px;
  }
  .card h2 {
    font-size: 28px;
  }
  .card ul li {
    font-size: 18px;
  }
}

/* --- UI ELEMENTS --- */
.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 25px;
  width: 46px;
  height: 46px;
  background: #9b4dff;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(155, 77, 255, 0.45);
  transition: 0.25s ease;
  z-index: 2001;
}

.scroll-top-btn:hover {
  background: #b270ff;
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(155, 77, 255, 0.6);
}

.video-trigger {
  cursor: pointer;
  color: #007bff;
  font-weight: 600;
  margin-top: 10px;
  display: inline-block;
  user-select: none;
}

#arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 5px;
}

/* This class will be added via JS when clicked */
.arrow-up {
  transform: rotate(180deg);
}

/* --- HYPOTHETICAL CASE STUDIES ACCORDION --- */
.case-study-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-study-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(155, 77, 255, 0.2);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.case-study-item:hover {
  border-color: rgba(155, 77, 255, 0.5);
}

.case-study-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
}

.case-study-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}

.case-arrow {
  display: inline-block;
  color: #9b4dff;
  transition: transform 0.3s ease;
  font-size: 16px;
  flex-shrink: 0;
  margin-left: 16px;
}

.case-study-body {
  display: none;
  padding: 0 28px 26px;
}

.case-study-body p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0 0 14px;
}

.case-study-link {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
}

.case-study-link:hover {
  text-decoration: underline;
}

/* --- DISSECTION OF AI LEGISLATION ACCORDION --- */
.annotation-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.annotation-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(155, 77, 255, 0.2);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.annotation-item:hover {
  border-color: rgba(155, 77, 255, 0.5);
}

.annotation-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
}

.annotation-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}

.annotation-arrow {
  display: inline-block;
  color: #9b4dff;
  transition: transform 0.3s ease;
  font-size: 16px;
  flex-shrink: 0;
  margin-left: 16px;
}

.annotation-body {
  display: none;
  padding: 0 28px 26px;
}

.annotation-body p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0 0 14px;
}

.annotation-body p strong {
  color: #c08eff;
}

.annotation-link {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
}

.annotation-link:hover {
  text-decoration: underline;
}

/* MOBILE LEGISLATION ANNOTATION OVERRIDES */
@media (max-width: 768px) {
  .annotation-trigger {
    padding: 16px 18px;
  }
  .annotation-title {
    font-size: 17px;
  }
  .annotation-body {
    padding: 0 18px 18px;
  }
  .annotation-body p {
    font-size: 16px;
  }
}

/* MOBILE CASE STUDY OVERRIDES */
@media (max-width: 768px) {
  .case-study-trigger {
    padding: 16px 18px;
  }
  .case-study-title {
    font-size: 17px;
  }
  .case-study-body {
    padding: 0 18px 18px;
  }
  .case-study-body p {
    font-size: 16px;
  }
}