/**
 * Futuristic / forward-inspired layer — loads after main bundle CSS.
 * Navy brand: #003375
 */

:root {
  --fut-glow: 0 0 40px rgba(0, 51, 117, 0.12);
  --fut-glow-strong: 0 0 60px rgba(0, 51, 117, 0.18);
  --fut-radius-lg: 20px;
  --fut-radius-xl: 28px;
  --fut-radius-btn: 14px;
}

/* Stack above ambient layers */
#root {
  position: relative;
  z-index: 1;
}

/* Subtle tech grid + soft ambient pulse */
body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 51, 117, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 51, 117, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 100% 70% at 50% -10%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% -10%, black 0%, transparent 65%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(27, 95, 174, 0.09), transparent 55%),
    radial-gradient(700px 420px at 85% 60%, rgba(0, 51, 117, 0.08), transparent 50%);
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  body::after {
    animation: fut-ambient 18s ease-in-out infinite;
  }

  @keyframes fut-ambient {
    0%,
    100% {
      opacity: 0.45;
    }
    50% {
      opacity: 0.72;
    }
  }
}

/* Typography: modern display + readable body */
body {
  font-feature-settings: "ss01" 1, "cv01" 1;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
.nav-logo,
.section-title,
.chart-title,
.contact-info h3,
.project-title,
.education-degree {
  font-family: "Outfit", var(--font-headings, "Inter"), system-ui, sans-serif !important;
  letter-spacing: -0.02em;
}

.projects-subtitle,
.stat-label,
.bar-year,
.hero-badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
}

/* Navigation: glass + precision edge */
.navbar {
  border-bottom: 1px solid rgba(0, 51, 117, 0.12) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 8px 32px rgba(0, 36, 82, 0.06) !important;
}

.navbar.scrolled {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 12px 40px rgba(0, 36, 82, 0.1) !important;
}

.nav-logo {
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  font-size: 1.05rem !important;
}

/* Hero: glass panel + wider editorial layout */
.hero-content {
  width: 100%;
  max-width: min(96vw, 1120px) !important;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem) !important;
  border-radius: var(--fut-radius-xl) !important;
  background: linear-gradient(
    145deg,
    rgba(246, 249, 255, 0.82) 0%,
    rgba(238, 243, 251, 0.72) 50%,
    rgba(230, 238, 252, 0.65) 100%
  ) !important;
  border: 1px solid rgba(0, 51, 117, 0.18) !important;
  box-shadow:
    var(--fut-glow),
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 24px 80px rgba(0, 36, 82, 0.08) !important;
  backdrop-filter: blur(18px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(165%) !important;
}

.hero-badge {
  border-radius: 6px !important;
  text-transform: uppercase;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  padding: 0.5rem 1.125rem !important;
  margin-bottom: 1.5rem !important;
  border: 1px solid rgba(0, 51, 117, 0.2) !important;
  background: rgba(255, 255, 255, 0.45) !important;
  color: var(--text-secondary) !important;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  margin-bottom: 0.625rem !important;
  font-weight: 800 !important;
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 1.25vw, 1.125rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 1.75rem !important;
  color: var(--text-secondary) !important;
  opacity: 0.95;
}

.hero-description {
  max-width: min(58rem, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem) !important;
  line-height: 1.72 !important;
  margin-bottom: 2.25rem !important;
  color: var(--text-secondary) !important;
}

.hero-social {
  margin-bottom: 2rem !important;
}

.hero-cta {
  margin-bottom: 0 !important;
  padding-top: 1.75rem !important;
  margin-top: 0.25rem !important;
  border-top: 1px solid rgba(0, 51, 117, 0.12) !important;
}

.hero-cta .cta-button {
  min-width: 12rem;
  justify-content: center;
}

/* Section rhythm */
.section-line {
  height: 1px !important;
  background: linear-gradient(
    90deg,
    rgba(0, 51, 117, 0.55) 0%,
    rgba(27, 95, 174, 0.35) 40%,
    transparent 100%
  ) !important;
  box-shadow: 0 0 20px rgba(0, 51, 117, 0.15);
}

/* Card system: floating glass */
.stat-card,
.education-item,
.skill-category,
.project-card,
.stat-box,
.chart-container,
.publication-item,
.platform-link,
.contact-social-item,
.form-input {
  border-radius: var(--fut-radius-lg) !important;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(246, 249, 255, 0.88) 100%
  ) !important;
  border: 1px solid rgba(0, 51, 117, 0.14) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 12px 40px rgba(0, 36, 82, 0.06) !important;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease !important;
}

.stat-card:hover,
.education-item:hover,
.skill-category:hover,
.project-card:hover,
.stat-box:hover,
.publication-item:hover,
.platform-link:hover,
.contact-social-item:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(0, 51, 117, 0.28) !important;
  box-shadow:
    var(--fut-glow-strong),
    0 1px 0 rgba(255, 255, 255, 0.85) inset !important;
}

.skill-item {
  border-radius: 10px !important;
}

/* Primary actions: sharper “interface” shape + glow */
.cta-button,
.form-submit,
.scroll-to-top,
.retry-button {
  border-radius: var(--fut-radius-btn) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 12px 32px rgba(0, 51, 117, 0.28) !important;
}

.cta-button:hover,
.form-submit:hover,
.scroll-to-top:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 16px 48px rgba(0, 51, 117, 0.38) !important;
}

/* Project / icon tiles */
.project-icon {
  border-radius: 16px !important;
}

/* Section bands: cooler, cohesive tint (no flat gray) */
.projects,
.citations-chart-section {
  background: linear-gradient(
    180deg,
    var(--dark-bg) 0%,
    rgba(230, 238, 252, 0.85) 45%,
    rgba(238, 243, 251, 0.95) 100%
  ) !important;
}

/* Academic Experience — guest editor special issues */
.academic-experience {
  position: relative;
}

.academic-experience-container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

.academic-experience-lead {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: min(52rem, 100%);
}

/* Best paper award (under guest editor lead) */
.academic-experience-award {
  margin: 0 auto 2.5rem;
  max-width: 780px;
  padding: 1.6rem 1.6rem;
  border-radius: var(--fut-radius-lg);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(246, 249, 255, 0.96) 55%,
    rgba(255, 251, 235, 0.28) 100%
  );
  border: 1px solid rgba(0, 51, 117, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 44px rgba(0, 36, 82, 0.09);
}

.academic-experience-award-title {
  font-family: "Outfit", var(--font-headings, "Inter"), system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.academic-experience-award-study {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 1.35rem;
  max-width: min(52rem, 100%);
}

.academic-experience-award-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.academic-experience-award-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: var(--fut-radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.academic-experience-award-btn--paper {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: 1px solid rgba(0, 51, 117, 0.25);
  box-shadow: 0 8px 22px rgba(0, 51, 117, 0.28);
}

.academic-experience-award-btn--paper:hover {
  box-shadow: 0 12px 28px rgba(0, 51, 117, 0.38);
}

.academic-experience-award-btn--cert {
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(254, 252, 248, 0.98));
  border: 1px solid rgba(180, 140, 60, 0.45);
  box-shadow: 0 4px 16px rgba(180, 130, 40, 0.12);
}

.academic-experience-award-btn--cert:hover {
  border-color: rgba(160, 110, 30, 0.65);
  box-shadow: 0 8px 24px rgba(180, 130, 40, 0.18);
}

@media (max-width: 480px) {
  .academic-experience-award-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .academic-experience-award-btn {
    width: 100%;
  }
}

.academic-experience-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 3.25rem;
}

.academic-experience-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;
  color: inherit;
  padding: 1.75rem 1.5rem;
  border-radius: var(--fut-radius-lg);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(246, 249, 255, 0.88) 100%
  );
  border: 1px solid rgba(0, 51, 117, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 12px 40px rgba(0, 36, 82, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
    border-color 0.25s ease;
}

.academic-experience-card:hover {
  border-color: rgba(0, 51, 117, 0.28);
  box-shadow:
    var(--fut-glow-strong),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.academic-experience-role {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.academic-experience-issue-title {
  font-family: "Outfit", var(--font-headings, "Inter"), system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.academic-experience-journal {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  flex-grow: 1;
  line-height: 1.5;
}

.academic-experience-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.65rem 1.35rem;
  border-radius: var(--fut-radius-btn);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  box-shadow: 0 8px 24px rgba(0, 51, 117, 0.25);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  pointer-events: none;
}

.academic-experience-card:hover .academic-experience-btn {
  box-shadow: 0 12px 32px rgba(0, 51, 117, 0.38);
}

@media (max-width: 768px) {
  .academic-experience-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer: grounded panel */
.footer {
  border-radius: var(--fut-radius-lg) var(--fut-radius-lg) 0 0 !important;
  margin-top: 120px !important;
  border-top: 1px solid rgba(0, 51, 117, 0.12) !important;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.95), rgba(238, 243, 251, 0.98)) !important;
}

/* Scrollbar: minimal */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
