:root {
  --cosmic-black: #0a0e27;
  --deep-space: #1a1f3a;
  --nebula-purple: #8b5cf6;
  --signal-cyan: #06b6d4;
  --pulsar-pink: #ec4899;
  --star-white: #f8fafc;
  --radio-green: #10b981;

  --text-color: var(--star-white);
  --border-color: rgba(248, 250, 252, 0.3);
  --bg-color: var(--cosmic-black);
  --nav-active-color: var(--signal-cyan);
  --card-bg: rgba(26, 31, 58, 0.65);
  --card-border: rgba(139, 92, 246, 0.3);
  --card-hover-border: var(--signal-cyan);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

#radar-bg-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(6, 182, 212, 0.08), transparent 45%);
}

#radar-bg-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.2), rgba(0, 0, 0, 0.05));
  pointer-events: none;
}

.wrapper {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.theme-toggle-btn {
  display: none;
}

.nav {
  margin: 0 0 100px 30px;
}

.nav__wrapper {
  display: none;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px 100px 420px;
  position: relative;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 80px;
  font-weight: 900;
  letter-spacing: 6px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--signal-cyan) 0%, var(--nebula-purple) 50%, var(--pulsar-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out, glow 3s ease-in-out infinite;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {

  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
  }

  50% {
    filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.7));
  }
}

.hero-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 24px;
  color: var(--nav-active-color);
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-description {
  font-size: 22px;
  max-width: 800px;
  margin-bottom: 50px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--signal-cyan), var(--nebula-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-wrap: break-word;
}

.section-subtitle {
  font-size: 20px;
  max-width: 100%;
  opacity: 0.85;
}

.research-grid,
.facilities-grid {
  display: grid;
  gap: 30px;
  width: 100%;
  max-width: 964px;
}

.research-grid {
  grid-template-columns: repeat(2, 1fr);
}

.facilities-grid {
  grid-template-columns: repeat(3, 1fr);
}

.research-card,
.facility-card,
.publication-item,
.contact-container {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 2px solid var(--card-border);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.research-card {
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.research-card:hover,
.facility-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 100px;
  font-weight: 900;
  position: absolute;
  top: -15px;
  right: 20px;
  opacity: 0.1;
  line-height: 1;
  color: var(--text-color);
}

.card-title,
.facility-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nav-active-color);
}

.card-description,
.facility-description {
  font-size: 17px;
  line-height: 1.7;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 25px;
  position: relative;
}

.icon-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--nav-active-color);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

.icon-core {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--nav-active-color);
  border-radius: 50%;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.facility-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.publications-list {
  width: 100%;
  max-width: 964px;
}

.publication-item {
  padding: 25px;
  margin-bottom: 20px;
  border-left: 4px solid var(--signal-cyan);
}

.publication-item:hover {
  border-left-width: 8px;
  transform: translateX(10px);
}

.publication-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.publication-authors {
  font-size: 16px;
  color: var(--nav-active-color);
  margin-bottom: 5px;
}

.publication-journal {
  font-size: 15px;
  font-style: italic;
  opacity: 0.8;
}

.contact-container {
  width: 100%;
  max-width: 964px;
  font-size: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--signal-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: #000;
}

.contact-container a {
  color: var(--nav-active-color);
  text-decoration: none;
}

@media (max-width: 992px) {
  .nav__wrapper {
    display: none;
  }

  section {
    padding: 80px 30px;
  }

  .research-grid,
  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(28px, 6vw, 45px);
  }

  .section-title {
    font-size: clamp(26px, 6vw, 40px);
  }
}

/* OptionWheel Nav */
.option-wheel {
  --ow-text-color: rgba(248, 250, 252, 0.45);
  --ow-active-color: var(--signal-cyan);
  --ow-font-size: 3rem;
  --ow-inset: 48px;
  position: fixed;
  left: 0;
  top: 0;
  width: 380px;
  height: 100vh;
  z-index: 100;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  outline: none;
  background: linear-gradient(to right, rgba(10, 14, 39, 0.55) 0%, transparent 100%);
}

.option-wheel--dragging {
  cursor: grabbing;
}

.option-wheel__item {
  position: absolute;
  top: 50%;
  left: var(--ow-inset);
  white-space: nowrap;
  font-size: var(--ow-font-size);
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  transform-origin: left center;
  cursor: pointer;
  will-change: transform, opacity, filter;
  color: color-mix(in srgb,
      var(--ow-active-color) calc(var(--ow-p, 0) * 100%),
      var(--ow-text-color));
  transition: text-shadow 0.2s ease;
}

.option-wheel__item--selected {
  font-weight: 700;
  text-shadow: 0 0 18px color-mix(in srgb, var(--ow-active-color) 60%, transparent);
}

.option-wheel__item--selected::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--ow-inset) + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: var(--ow-active-color);
  border-radius: 2px;
}

@media (max-width: 992px) {
  .option-wheel {
    display: none;
  }

  section {
    padding: 80px 30px !important;
  }
}

/* Mobile Bottom Arc Wheel */
#mobile-arc-wheel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
  z-index: 9999;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(10, 14, 39, 0) 0%, rgba(10, 14, 39, 0.95) 100%);
  pointer-events: none;
  user-select: none;
}

#mobile-arc-wheel .arc-hit-zone {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

#mobile-arc-wheel.dragging .arc-hit-zone {
  cursor: grabbing;
}

#mobile-arc-wheel::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--signal-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--signal-cyan);
  pointer-events: none;
}

.arc-option {
  position: absolute;
  left: 50%;
  bottom: 20px;
  white-space: nowrap;
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  will-change: transform, filter, opacity;
  cursor: pointer;
  transition: color 0.18s, font-weight 0.18s;
  color: rgb(200, 200, 200);
  pointer-events: auto;
  touch-action: none;
}

.arc-option.selected {
  font-weight: 700;
  color: var(--signal-cyan);
  text-shadow: 0 0 14px rgba(6, 182, 212, 0.75);
}

@media (max-width: 992px) {
  #mobile-arc-wheel {
    display: block;
  }

  body {
    padding-bottom: 80px;
  }
}

/* Global Responsive Overrides */
@media (max-width: 992px) {
  section {
    padding: 60px 24px 80px 24px !important;
    min-height: auto;
  }

  .hero-subtitle {
    font-size: clamp(14px, 3.5vw, 20px);
    letter-spacing: 4px;
  }

  .hero-description {
    font-size: clamp(15px, 3vw, 18px);
  }

  .section-subtitle {
    font-size: clamp(14px, 3vw, 17px);
  }

  .research-card,
  .facility-card {
    padding: 28px 24px;
  }

  .card-number {
    font-size: 70px;
  }

  .card-title,
  .facility-name {
    font-size: 20px;
  }

  .card-description,
  .facility-description {
    font-size: 15px;
  }

  .publications-list,
  .contact-container {
    max-width: 100%;
  }

  .publication-item {
    padding: 18px;
  }

  .publication-title {
    font-size: 17px;
  }

  .contact-container {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(24px, 8vw, 36px);
  }

  .section-title {
    font-size: clamp(22px, 8vw, 32px);
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .research-card {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  }
}

/* ─── Team Grid (Desktop Alignment) ─────────────────────────────────── */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 28px;
  width: 100%;
  max-width: 964px;
  margin: 0;
}

.pc-card-wrapper {
  flex: 0 0 auto;
  width: 220px;
  position: relative;
  perspective: 600px;
  transform: translate3d(0, 0, 0.1px);
  touch-action: pan-y;
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-top: 0.5;
  --pointer-from-left: 0.5;
  --card-opacity: 0;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --background-x: 50%;
  --background-y: 50%;
  --behind-glow-color: rgba(125, 190, 255, 0.67);
  --behind-glow-size: 50%;
  --inner-gradient: linear-gradient(145deg, #60496e8c 0%, #71C4FF44 100%);
  --card-radius: 20px;
  --sunpillar-1: hsl(2, 100%, 73%);
  --sunpillar-2: hsl(53, 100%, 69%);
  --sunpillar-3: hsl(93, 100%, 69%);
  --sunpillar-4: hsl(176, 100%, 76%);
  --sunpillar-5: hsl(228, 100%, 74%);
  --sunpillar-6: hsl(283, 100%, 73%);
  --sunpillar-clr-1: var(--sunpillar-1);
  --sunpillar-clr-2: var(--sunpillar-2);
  --sunpillar-clr-3: var(--sunpillar-3);
  --sunpillar-clr-4: var(--sunpillar-4);
  --sunpillar-clr-5: var(--sunpillar-5);
  --sunpillar-clr-6: var(--sunpillar-6);
}

.pc-behind {
  position: absolute;
  inset: -10px;
  z-index: 0;
  pointer-events: none;
  border-radius: var(--card-radius);
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y),
      var(--behind-glow-color) 0%,
      transparent var(--behind-glow-size));
  filter: blur(40px) saturate(1.2);
  opacity: 0;
  transition: opacity 300ms ease;
}

.pc-card-wrapper:hover .pc-behind {
  opacity: 0.85;
}

.pc-card-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--card-radius);
}

.pc-card {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 2.8;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: rgba(8, 10, 30, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.8s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.pc-card-shell:hover .pc-card,
.pc-card-shell.active .pc-card {
  transition: none;
  transform: rotateX(var(--rotate-y)) rotateY(var(--rotate-x));
  box-shadow:
    calc((var(--pointer-from-left) * 16px) - 6px) calc((var(--pointer-from-top) * 24px) - 8px) 32px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pc-card-shell.entering .pc-card {
  transition: transform 180ms ease-out;
}

.pc-inner {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  background: var(--inner-gradient);
  pointer-events: none;
}

.pc-shine {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: color-dodge;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-image:
    repeating-linear-gradient(0deg,
      var(--sunpillar-clr-1) calc(5% * 1),
      var(--sunpillar-clr-2) calc(5% * 2),
      var(--sunpillar-clr-3) calc(5% * 3),
      var(--sunpillar-clr-4) calc(5% * 4),
      var(--sunpillar-clr-5) calc(5% * 5),
      var(--sunpillar-clr-6) calc(5% * 6),
      var(--sunpillar-clr-1) calc(5% * 7)),
    repeating-linear-gradient(-45deg,
      #0e152e 0%, hsl(180, 10%, 60%) 3.8%,
      hsl(180, 29%, 66%) 4.5%, hsl(180, 10%, 60%) 5.2%,
      #0e152e 10%, #0e152e 12%);
  background-size: 500% 500%, 300% 300%;
  background-position: var(--background-x) var(--background-y), var(--background-x) var(--background-y);
  filter: brightness(0.7) contrast(1.4) saturate(0.5);
  animation: pc-holo 18s linear infinite paused;
}

.pc-card-shell:hover .pc-shine,
.pc-card-shell.active .pc-shine {
  opacity: 0.6;
  animation-play-state: running;
  filter: brightness(0.7) contrast(1.4) saturate(0.5);
}

.pc-glare {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(farthest-corner circle at var(--pointer-x) var(--pointer-y),
      rgba(255, 255, 255, 0.25) 0%, transparent 70%);
}

.pc-card-shell:hover .pc-glare,
.pc-card-shell.active .pc-glare {
  opacity: 1;
}

.pc-avatar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--card-radius);
  pointer-events: none;
  z-index: 5;
  isolation: isolate;
}

.pc-details {
  display: none;
}

.pc-user-info {
  position: absolute;
  bottom: 10px;
  left: 8px;
  right: 8px;
  top: calc(100% - 62px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  background: rgba(10, 14, 39, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  pointer-events: auto;

  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    border-color 0.35s ease,
    padding 0.35s ease;
}

.pc-user-info:hover {
  padding: 14px 14px;
  background: rgba(0, 0, 0, 0.7);
}

.pc-user-info:hover .pc-user-name {
  font-size: 15px;
}

.pc-user-info:hover .pc-user-role {
  font-size: 11px;
}

.pc-card-shell:hover .pc-user-info {
  top: 8px;
  padding: 20px 16px;

  background: rgba(8, 10, 30, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-color: var(--signal-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.pc-user-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
  margin-bottom: 4px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  transition: font-size 0.3s ease, white-space 0.3s ease;
}

.pc-user-role {
  font-size: 10px;
  font-weight: 500;
  color: var(--signal-cyan);
  line-height: 1.3;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-transform: none;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  transition: font-size 0.3s ease, color 0.3s ease;
}

.pc-card-shell:hover .pc-user-name {
  font-size: 15px;
  white-space: normal;
  overflow: visible;
}

.pc-card-shell:hover .pc-user-role {
  font-size: 12px;
  color: var(--signal-cyan);
  white-space: normal;
  overflow: visible;
  margin-top: 4px;
}

@keyframes pc-holo {
  0% {
    background-position: 0% 50%, 0% 50%;
  }

  100% {
    background-position: 100% 50%, 90% 90%;
  }
}

@media (max-width: 992px) {
  .team-grid {
    justify-content: center;
    gap: 20px;
  }

  .pc-card-wrapper {
    width: clamp(145px, 42vw, 180px);
  }
}

@media (max-width: 600px) {
  .team-grid {
    gap: 16px;
  }

  .pc-details h3 {
    font-size: 13px;
  }

  .pc-details p {
    font-size: 10px;
  }
}

/* ─── Futuristic Scroll Reveal ──────────────────────────────────────── */
.reveal-card {
  opacity: 0;
  visibility: hidden;
}

.reveal-animate {
  visibility: visible;
  animation: futuristicReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes futuristicReveal {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.92) perspective(600px) rotateX(10deg);
    filter: blur(8px) brightness(1.5);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) perspective(600px) rotateX(0deg);
    filter: blur(0) brightness(1);
  }
}
