/* AcademiGuard Stylesheet
   Space Grotesk (headings) | Plus Jakarta Sans (body) */

/* Design Tokens */
:root {
  --blue: #2563eb;
  --blue-lt: #3b82f6;
  --purple: #7c3aed;
  --teal: #0d9488;
  --teal-lt: #14b8a6;
  --bg: #0a1628;
  --bg2: #0f1e35;
  --bg3: #0d2240;
  --surface: rgba(255, 255, 255, 0.04);
  --surface2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --text: #e2e8f0;
  --text2: #cbd5e1;
  --muted: #94a3b8;
  --muted2: #64748b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --glow-blue: 0 0 40px rgba(37, 99, 235, 0.25);
  --glow-purple: 0 0 40px rgba(124, 58, 237, 0.25);
  --glow-teal: 0 0 40px rgba(13, 148, 136, 0.25);
  --nav-h: 68px;
  --heading: "Space Grotesk", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
ul {
  list-style: none;
}
strong {
  font-weight: 600;
}

/* Subtle noise texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--teal));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border-radius: 12px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow:
    0 4px 20px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 999;
}
#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px rgba(37, 99, 235, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s;
  box-shadow:
    0 2px 8px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.nav-logo:hover .logo-icon {
  transform: scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text2);
  transition:
    color 0.2s,
    background 0.2s;
  position: relative;
}
.nav-link:hover {
  color: #fff;
  background: var(--surface2);
}
.nav-link.active-link {
  color: #fff;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  z-index: 910;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Section Shared */
section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 16px;
}
.section-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--blue-lt);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-title {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 52px;
}

/* Hero */
#home {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.08) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    black 20%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    black 20%,
    transparent 100%
  );
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite alternate;
}
.orb1 {
  width: 650px;
  height: 650px;
  background: rgba(37, 99, 235, 0.2);
  top: -200px;
  left: -200px;
}
.orb2 {
  width: 550px;
  height: 550px;
  background: rgba(124, 58, 237, 0.15);
  bottom: -180px;
  right: -120px;
  animation-delay: -7s;
}
.orb3 {
  width: 380px;
  height: 380px;
  background: rgba(13, 148, 136, 0.12);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -14s;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -15px) scale(1.05);
  }
  100% {
    transform: translate(-10px, 10px) scale(0.98);
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 5%;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue-lt);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  box-shadow:
    0 2px 8px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 20px;
  text-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero-title .highlight {
  background: linear-gradient(
    135deg,
    var(--blue-lt),
    var(--purple),
    var(--teal-lt)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.3));
}
.cursor {
  display: inline-block;
  color: var(--blue-lt);
  font-weight: 300;
  animation: blink 1s step-end infinite;
  -webkit-text-fill-color: var(--blue-lt);
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-abstract {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 580px;
}
.hero-abstract em {
  font-style: italic;
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.dot {
  width: 5px;
  height: 5px;
  background: var(--teal-lt);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow:
    0 4px 20px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(37, 99, 235, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1.5px solid var(--border2);
  color: var(--text2);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-outline:hover {
  border-color: var(--blue-lt);
  color: #fff;
  background: rgba(37, 99, 235, 0.08);
  box-shadow:
    0 4px 16px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Hero Stats Panel — 3D glass card */
.hero-stats-panel {
  background: linear-gradient(
    135deg,
    rgba(15, 30, 53, 0.95),
    rgba(10, 22, 40, 0.9)
  );
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.4s;
}
.hero-stats-panel:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}
.hero-stats-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.5),
    rgba(124, 58, 237, 0.3),
    transparent
  );
}
.stats-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.stat-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.06);
  transform: translateY(-3px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.stat-card:hover::after {
  transform: scaleX(1);
}
.stat-number {
  font-family: var(--heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.tech-stack-row {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.tech-stack-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted2);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tech-pill {
  padding: 4px 11px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.tech-pill:hover {
  color: var(--blue-lt);
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.06);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue-lt), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* Features Section — 3D Cards */
#features {
  background: var(--bg2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.feature-card.blue::before {
  background: linear-gradient(90deg, var(--blue), var(--blue-lt));
}
.feature-card.purple::before {
  background: linear-gradient(90deg, var(--purple), #a855f7);
}
.feature-card.teal::before {
  background: linear-gradient(90deg, var(--teal), var(--teal-lt));
}

.feature-card.blue:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow:
    var(--glow-blue),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.feature-card.purple:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow:
    var(--glow-purple),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.feature-card.teal:hover {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow:
    var(--glow-teal),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.01);
}

/* Decorative corner orb */
.feature-card::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  opacity: 0.05;
  transition: opacity 0.3s;
}
.feature-card.blue::after {
  background: var(--blue);
}
.feature-card.purple::after {
  background: var(--purple);
}
.feature-card.teal::after {
  background: var(--teal);
}
.feature-card:hover::after {
  opacity: 0.1;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.blue-icon {
  background: rgba(37, 99, 235, 0.15);
}
.purple-icon {
  background: rgba(124, 58, 237, 0.15);
}
.teal-icon {
  background: rgba(13, 148, 136, 0.15);
}

.feature-card h3 {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.feature-card p strong {
  color: var(--text2);
}

.feature-metric {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.metric-val {
  font-family: var(--heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.metric-lbl {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* Domain Section */
#domain {
  background: var(--bg);
}

.domain-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--text2);
  background: var(--surface2);
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 600;
  box-shadow:
    0 2px 12px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tab-content-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: 420px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel-inner {
  display: flex;
  gap: 28px;
  padding: 36px;
  align-items: flex-start;
}

.tab-panel-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tab-panel-body {
  flex: 1;
  min-width: 0;
}
.tab-panel-body h3 {
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.tab-panel-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.tab-panel-body p strong {
  color: var(--text2);
}

/* Literature refs */
.lit-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ref-tag {
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--blue-lt);
  font-weight: 500;
  transition: background 0.2s;
}
.ref-tag:hover {
  background: rgba(37, 99, 235, 0.15);
}

/* IEEE references list */
.lit-refs-heading {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-lt);
}
.lit-refs-list {
  padding-left: 28px;
  margin: 0;
  counter-reset: none;
}
.lit-refs-list li {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 8px;
  padding-left: 4px;
}
.lit-refs-list li em {
  font-style: italic;
  color: var(--text2);
}
a.ref-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.4);
  transition: border-color 0.2s, color 0.2s;
}
a.ref-link:hover {
  color: var(--blue-lt);
  border-bottom-color: var(--blue-lt);
}
cite {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--blue-lt);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 4px;
  padding: 0 5px;
  margin: 0 1px;
  vertical-align: super;
  line-height: 1;
  white-space: nowrap;
  font-weight: 600;
}

/* Research Gap list */
.gap-list {
  padding-left: 0;
  margin: 12px 0 14px;
}
.gap-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.gap-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--teal-lt);
  font-weight: 600;
}

/* Problem statement box */
.problem-statement {
  margin: 16px 0;
  padding: 16px 20px;
  background: rgba(37, 99, 235, 0.07);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.75;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.15);
}
.problem-statement strong {
  color: #fff;
}

/* Objectives list */
.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.obj-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.obj-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.04);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.obj-num {
  font-family: var(--heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(37, 99, 235, 0.25);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
  text-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
.obj-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 4px;
}
.obj-text p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Methodology steps */
.meth-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.meth-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.meth-step:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.meth-step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow:
    0 2px 8px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.meth-step-body strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 6px;
}
.meth-step-body p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Technology categories */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.tech-cat {
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.tech-cat:hover {
  border-color: rgba(37, 99, 235, 0.2);
}
.tech-cat h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 10px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-tags span {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border2);
  border-radius: 6px;
  font-size: 0.74rem;
  color: var(--text2);
  transition: border-color 0.2s;
}
.tech-tags span:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

/* Milestones Section */
#milestones {
  background: var(--bg2);
}

.milestone-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.milestone-selector label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.milestone-selector select {
  flex: 1;
  max-width: 480px;
  padding: 10px 40px 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-family: var(--body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.milestone-selector select:focus {
  outline: none;
  border-color: var(--blue);
}
.milestone-selector select option {
  background: #0f1e35;
  color: var(--text2);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 110px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 97px;
  top: 10px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--blue),
    var(--purple),
    var(--teal),
    rgba(13, 148, 136, 0.1)
  );
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
}

.timeline-date {
  position: absolute;
  left: -110px;
  width: 88px;
  text-align: right;
  padding-top: 20px;
}
.timeline-month {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-lt);
}
.timeline-year {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 1px;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 24px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg2);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.timeline-dot-inner.done {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow:
    0 0 12px rgba(37, 99, 235, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.timeline-dot-inner.pending {
  background: var(--muted2);
}
.timeline-item:hover .timeline-dot-inner.done {
  transform: scale(1.2);
}

.timeline-card {
  flex: 1;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
  margin-left: 8px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.timeline-card:hover {
  border-color: var(--border2);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}
.timeline-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 8px 0 12px;
}

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-card-title {
  font-family: var(--heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.milestone-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.milestone-badge.marks {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--blue-lt);
}
.milestone-badge.no-marks {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--muted);
}

.milestone-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
}
.done-status {
  color: #4ade80;
}
.pending-status {
  color: #fbbf24;
}
.today-status {
  color: #fb923c;
  font-weight: 700;
}

.timeline-dot-inner.today {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow:
    0 0 14px rgba(245, 158, 11, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: todayDotPulse 2s ease-in-out infinite;
}
.timeline-card.today-card {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.2),
    0 2px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes todayDotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255,255,255,0.2); }
  50%       { box-shadow: 0 0 18px rgba(245, 158, 11, 0.9), inset 0 1px 0 rgba(255,255,255,0.2); }
}

/* Highlight pulse animation */
@keyframes highlightPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(37, 99, 235, 0.6),
      var(--shadow);
    border-color: var(--blue);
  }
  40% {
    box-shadow:
      0 0 0 12px rgba(37, 99, 235, 0),
      var(--shadow);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(37, 99, 235, 0),
      var(--shadow);
    border-color: var(--border);
  }
}
.timeline-card.highlight-pulse {
  animation: highlightPulse 1.6s ease-out;
  border-color: var(--blue) !important;
}

/* Documents Section */
#documents { background: var(--bg); }

.doc-groups { display: flex; flex-direction: column; gap: 10px; }

/* Group card */
.doc-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.doc-group.open { border-color: rgba(37,99,235,0.3); box-shadow: 0 4px 20px rgba(37,99,235,0.08); }
.doc-group.pending-group { opacity: 0.65; }

/* Group header */
.doc-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  gap: 16px;
  transition: background 0.2s;
  user-select: none;
}
.doc-group-header:hover { background: var(--surface2); }
.pending-group .doc-group-header { cursor: default; }

.doc-group-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.doc-group-icon { font-size: 1.6rem; flex-shrink: 0; }
.doc-group-title { font-size: 0.98rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.doc-group-sub { font-size: 0.76rem; color: var(--muted); }

.doc-group-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.dg-status { font-size: 0.7rem; font-weight: 700; padding: 4px 11px; border-radius: 20px; letter-spacing: 0.03em; }
.dg-submitted { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); color: #4ADE80; }
.dg-pending   { background: rgba(251,191,36,0.12);  border: 1px solid rgba(251,191,36,0.3);  color: #FBBF24; }

.dg-count { font-size: 0.72rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--border2); padding: 3px 10px; border-radius: 20px; white-space: nowrap; }

.dg-chevron {
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.25s;
  line-height: 1;
  display: inline-block;
}
.doc-group.open .dg-chevron { transform: rotate(90deg); }

/* Group body */
.doc-group-body { display: none; border-top: 1px solid var(--border); }
.doc-group.open .doc-group-body { display: block; }

/* Document row */
.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
  transition: background 0.15s;
}
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: rgba(37,99,235,0.04); }

.doc-item-group-highlight { background: rgba(37,99,235,0.05); }
.doc-item-group-highlight .doc-item-name { color: #fff; font-weight: 600; }

.doc-item-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

.doc-file-type {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  text-transform: uppercase;
}
.doc-file-type.pdf  { background: rgba(239,68,68,0.15);  color: #F87171; border: 1px solid rgba(239,68,68,0.25); }
.doc-file-type.xlsx { background: rgba(34,197,94,0.15);  color: #4ADE80; border: 1px solid rgba(34,197,94,0.25); }
.doc-file-type.txt  { background: rgba(148,163,184,0.1); color: var(--muted); border: 1px solid var(--border2); }
.doc-file-type.pptx { background: rgba(249,115,22,0.15); color: #FB923C; border: 1px solid rgba(249,115,22,0.25); }

.doc-item-name { font-size: 0.875rem; font-weight: 500; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-item-tag  { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.doc-item-btns { display: flex; gap: 8px; flex-shrink: 0; }

.doc-view-btn, .doc-dl-btn {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  white-space: nowrap;
}
.doc-view-btn {
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.25);
  color: var(--blue-lt);
}
.doc-view-btn:hover { background: rgba(37,99,235,0.2); }
.doc-dl-btn {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 2px 10px rgba(37,99,235,0.25);
}
.doc-dl-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* Keep old badge classes for milestone section compatibility */
.submitted-badge { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); color: #4ADE80; }
.pending-badge   { background: rgba(251,191,36,0.12);  border: 1px solid rgba(251,191,36,0.3);  color: #FBBF24; }

/* Presentations Section */
#presentations {
  background: var(--bg2);
}

.slides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.slide-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  cursor: pointer;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.slide-card:hover {
  transform: translateY(-6px);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: var(--border2);
}
.slide-card.slide-pending {
  opacity: 0.7;
}

.slide-preview {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.2);
}
.blue-grad {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}
.purple-grad {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}
.teal-grad {
  background: linear-gradient(135deg, #0f766e, #2563eb);
}
.dark-grad {
  background: linear-gradient(135deg, #1e293b, #334155);
}

.slide-preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
}
.slide-abbr {
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.slide-label-text {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
}

.slide-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  letter-spacing: 0.04em;
}
.pending-tag {
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  background: rgba(251, 191, 36, 0.12) !important;
}

.slide-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.slide-info h4 {
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.slide-info p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.slide-btn {
  display: block;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  transition:
    opacity 0.2s,
    transform 0.2s;
  box-shadow:
    0 2px 8px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.slide-card:not(.slide-pending):hover .slide-btn {
  opacity: 0.9;
  transform: translateX(2px);
}
.slide-btn-disabled {
  display: block;
  padding: 10px 18px;
  background: var(--surface2);
  color: var(--muted2);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
  cursor: default;
}

/* About Section */
#about {
  background: var(--bg);
}

.supervisors-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.members-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 20px;
  padding-top: 4px;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: var(--border2);
}

.supervisor-card {
  max-width: 300px;
  flex: 1;
}
.supervisor-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
}
.member-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  transition: transform 0.3s;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.team-card:hover .team-avatar {
  transform: scale(1.08);
}
.sup-avatar {
  background: linear-gradient(135deg, var(--blue), #60a5fa);
}
.mem-avatar {
  background: linear-gradient(135deg, var(--purple), #a855f7);
}

.team-role-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sup-badge {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--blue-lt);
}
.mem-badge {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #c084fc;
}

.team-name {
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.team-id {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.team-email {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--blue-lt);
  transition: color 0.2s;
  word-break: break-all;
  margin-bottom: 10px;
}
.team-email:hover { color: var(--teal-lt); }

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 16px;
  background: rgba(10,102,194,0.12);
  border: 1px solid rgba(10,102,194,0.35);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #60A5FA;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.team-linkedin:hover {
  background: rgba(10,102,194,0.22);
  border-color: rgba(10,102,194,0.6);
  color: #93C5FD;
  transform: translateY(-1px);
}

.team-view-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c084fc;
  transition: all 0.2s;
  text-decoration: none;
}
.team-view-btn:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.6);
  color: #e9d5ff;
}

/* Contact Section */
#contact {
  background: var(--bg2);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-tag {
  margin-bottom: 12px;
}
.contact-title {
  margin-bottom: 12px;
}
.contact-sub {
  max-width: 100%;
  margin-bottom: 32px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: border-color 0.2s;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.contact-info-item:hover .contact-info-icon {
  border-color: rgba(37, 99, 235, 0.3);
}
.contact-info-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 3px;
}
.contact-info-text p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Contact form */
.contact-form {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.4),
    rgba(124, 58, 237, 0.3),
    transparent
  );
}
.form-title {
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.875rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted2);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  transition:
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow:
    0 4px 20px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-note { font-size: 0.82rem; margin-top: 10px; min-height: 20px; text-align: center; }
.form-note-success { color: #4ADE80; }
.form-note-error   { color: #F87171; }

/* Footer — Professional */
footer {
  background: #050c18;
  border-top: 1px solid var(--border);
  padding: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.footer-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 160px;
  background: radial-gradient(
    ellipse,
    rgba(37, 99, 235, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-brand .footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-name {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
}
.footer-col-title {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
.footer-nav-col .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-col .footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition:
    color 0.2s,
    padding-left 0.2s;
}
.footer-nav-col .footer-links a:hover {
  color: var(--blue-lt);
  padding-left: 4px;
}
.footer-info-col p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 4px;
}
.footer-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-tech-pills span {
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border2);
  border-radius: 5px;
  font-size: 0.7rem;
  color: var(--muted);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.footer-tech-pills span:hover {
  color: var(--blue-lt);
  border-color: rgba(37, 99, 235, 0.3);
}
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--muted2);
}
.footer-sub-line {
  font-size: 0.72rem !important;
  color: var(--muted2) !important;
}

/* Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays for grid children */
.features-grid .feature-card:nth-child(1) {
  transition-delay: 0.05s;
}
.features-grid .feature-card:nth-child(2) {
  transition-delay: 0.13s;
}
.features-grid .feature-card:nth-child(3) {
  transition-delay: 0.21s;
}
.slides-grid .slide-card:nth-child(1) {
  transition-delay: 0.04s;
}
.slides-grid .slide-card:nth-child(2) {
  transition-delay: 0.1s;
}
.slides-grid .slide-card:nth-child(3) {
  transition-delay: 0.16s;
}
.slides-grid .slide-card:nth-child(4) {
  transition-delay: 0.22s;
}
.doc-grid .doc-card:nth-child(odd) {
  transition-delay: 0.04s;
}
.doc-grid .doc-card:nth-child(even) {
  transition-delay: 0.1s;
}

/* Responsive */
@media (max-width: 1100px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-right {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .tech-categories {
    grid-template-columns: 1fr;
  }
  .supervisors-row {
    flex-direction: column;
    align-items: center;
  }
  .supervisor-card {
    max-width: 100%;
  }
  .tab-panel-inner {
    flex-direction: column;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(16px);
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    z-index: 890;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
  }
  .hamburger {
    display: flex;
  }

  .timeline {
    padding-left: 60px;
  }
  .timeline::before {
    left: 47px;
  }
  .timeline-date {
    left: -58px;
    width: 48px;
  }
  .timeline-month {
    font-size: 0.6rem;
  }
  .timeline-year {
    font-size: 0.7rem;
  }

  .members-grid {
    grid-template-columns: 1fr 1fr;
  }
  .domain-tabs {
    gap: 4px;
  }
  .tab-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 540px) {
  section {
    padding: 64px 0;
  }
  .members-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .slides-grid { grid-template-columns: 1fr; }

  .doc-group-header { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .doc-group-right  { width: 100%; justify-content: flex-start; gap: 8px; }
  .dg-chevron { margin-left: auto; }
  .doc-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .doc-item-btns { width: 100%; }
  .doc-view-btn, .doc-dl-btn { flex: 1; justify-content: center; }
  .hero-cta {
    flex-direction: column;
  }
  .btn-primary,
  .btn-outline {
    text-align: center;
  }
  .milestone-selector {
    flex-direction: column;
    align-items: flex-start;
  }
  .milestone-selector select {
    max-width: 100%;
    width: 100%;
  }
  .tab-panel-inner {
    padding: 20px;
  }
  .timeline {
    padding-left: 40px;
  }
  .timeline::before {
    left: 27px;
  }
  .timeline-date {
    display: none;
  }
  .timeline-dot {
    left: -14px;
  }
  .hero-stats-panel {
    transform: none;
  }
}
