/* Modern responsive redesign — preserves Astral color scheme */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg-text: #363636;
  --color-body-text: #555;
  --color-muted: #999;
  --color-panel-bg: #fff;
  --color-nav-bg: rgba(20, 20, 20, 0.88);
  --color-nav-link: rgba(255,255,255,0.7);
  --color-nav-link-active: #fff;
  --color-footer-text: rgba(255,255,255,0.75);
  --color-footer-link: rgba(255,255,255,0.9);
  --color-btn-bg: #222;
  --color-btn-hover: #444;
  --color-accent: #fff;
  --nav-height: 56px;
  --panel-padding: 3rem 2.5rem;
  --max-width: 720px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-weight: 300;
  color: var(--color-body-text);
  background: linear-gradient(180deg, #2e2e2e 0%, #4a4a4a 55%, #5c5c5c 100%);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  color: var(--color-bg-text);
  line-height: 1.3;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }

/* Visible focus ring for keyboard navigation */
:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
  border-radius: 4px;
}

p { line-height: 1.8; margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* ── Wrapper ───────────────────────────────────────────────── */

#wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 5rem;
}

/* ── Nav ───────────────────────────────────────────────────── */

/* ── Liquid Glass Nav ──────────────────────────────────────── */

#nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  height: auto;
  width: auto;
  max-width: calc(var(--max-width) - 2rem);

  /* Very transparent so background bleeds through */
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(48px) saturate(220%) brightness(1.18) contrast(0.9);
  -webkit-backdrop-filter: blur(48px) saturate(220%) brightness(1.18) contrast(0.9);

  /* Glowing prismatic border */
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);

  /* Deep outer glow + strong inner top gleam + side edges */
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 0.5px rgba(255, 255, 255, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.25),
    inset -1px 0 0 rgba(255, 255, 255, 0.15);

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Top-half gloss sheen — strong diagonal highlight */
#nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.0)  55%,
    rgba(255, 255, 255, 0.06) 100%
  );
  pointer-events: none;
}

/* Bottom edge reflection — subtle light bounce */
#nav::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 15%;
  right: 15%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  pointer-events: none;
}


.nav-inner {
  position: relative;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.1rem;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 2px 8px rgba(0,0,0,0.15);
}

.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(255,255,255,0.1),
    0 4px 12px rgba(0,0,0,0.2);
}

.nav-links a i {
  font-size: 0.82rem;
  opacity: 0.9;
}

/* Mobile hamburger — hidden, not needed with 3 items */
.nav-toggle {
  display: none;
}

@media (max-width: 600px) {
  #nav {
    top: 0.75rem;
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
  }

  .nav-inner {
    padding: 0.3rem 0.5rem;
    justify-content: center;
    width: 100%;
  }

  .nav-links {
    width: 100%;
    justify-content: space-around;
  }

  .nav-links a {
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
    gap: 0.25rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: nowrap;
  }

  .nav-links a i {
    font-size: 1rem;
  }
}

/* ── Main content column ───────────────────────────────────── */

#main {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

/* ── Panel (shared styles) ─────────────────────────────────── */

.panel {
  text-align: center;
  width: 100%;
}

.panel header {
  margin-bottom: 1.5rem;
}

/* ── Hero / Me ─────────────────────────────────────────────── */

.hero-panel {
  background: transparent;
  padding: clamp(2.5rem, 8vw, 4.5rem) 2.5rem clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 0 5px rgba(255, 255, 255, 0.12);
  margin-bottom: 0.5rem;
}

.hero-panel h1 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-panel .byline {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* ── Card panels (white boxes) ─────────────────────────────── */

.card-panel {
  background: var(--color-panel-bg);
  padding: var(--panel-padding);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  margin-bottom: 1.5rem;
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.25s ease-in-out;
}

.card-panel:hover {
  outline-color: #fff;
}

/* Panel visibility & fade animations */
.panel-hidden {
  display: none !important;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes panelFadeOut {
  from { opacity: 1; transform: translateY(0);    }
  to   { opacity: 0; transform: translateY(-10px); }
}

.panel-fade-in  { animation: panelFadeIn  0.35s ease forwards; }
.panel-fade-out { animation: panelFadeOut 0.25s ease forwards; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  background: var(--color-btn-bg);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-btn-hover);
  color: #fff;
}

.btn i { font-size: 0.8rem; }

/* ── Resume panel ──────────────────────────────────────────── */

#resume .linkedin-wrap {
  display: flex;
  justify-content: center;
}

#resume .linkedin-wrap > div,
#resume .linkedin-wrap .LI-profile-badge {
  margin: 0 auto;
}

#resume .badge-base {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

/* ── Card panel links ──────────────────────────────────────── */

.card-panel p a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-panel p a:hover {
  color: #1d4ed8;
}

/* ── Footer ────────────────────────────────────────────────── */

#footer {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  padding: 1.75rem 1.5rem 2.5rem;
  color: var(--color-footer-text);
  font-size: 0.82rem;
}

#footer ul.links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0;
}

#footer ul.links li {
  display: flex;
  align-items: center;
}

#footer ul.links li + li::before {
  content: '•';
  margin: 0 0.6rem;
  opacity: 0.4;
}

#footer a {
  color: var(--color-footer-link);
  transition: color 0.2s;
}

#footer a:hover {
  color: #fff;
}

#footer .icon {
  font-size: 1rem;
}

/* Bee link tooltip */
.bee-link {
  position: relative;
}

.bee-link .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,20,0.92);
  color: #fff;
  font-size: 0.78rem;
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bee-link .tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(20,20,20,0.92);
}

.bee-link:hover .tooltip {
  opacity: 1;
}

/* ── Responsive tweaks ─────────────────────────────────────── */

@media (max-width: 480px) {
  :root {
    --panel-padding: 2rem 1.5rem;
  }

  #me {
    padding: 2.5rem 1.5rem 2rem;
  }
}
