/* =========================================================
   REPLACE THIS WHOLE CSS FILE WITH EVERYTHING BELOW
   File: styles.css
   ========================================================= */


/* =========================================================
   1. RESET + BASE
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #ffffff;
  background: #050505;
}

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

button {
  font: inherit;
}


/* =========================================================
   2. BACKGROUND VIDEO
   Grid removed
   ========================================================= */

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  background: #050505;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  filter: saturate(1.08) contrast(1.08);
}

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 12%, rgba(120, 120, 255, 0.24), transparent 24rem),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 22rem),
    radial-gradient(circle at 50% 100%, rgba(0, 170, 255, 0.16), transparent 28rem),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.42),
      rgba(0, 0, 0, 0.66)
    );
}


/* =========================================================
   3. CLICK TO ENTER SCREEN
   ========================================================= */

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

.enter-screen span {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.enter-screen.hidden {
  opacity: 0;
  visibility: hidden;
}


/* =========================================================
   4. MAIN PAGE LAYOUT
   ========================================================= */

.page-shell {
  width: min(820px, calc(100% - 28px));
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(34px, 7vw, 72px) 0;
  display: grid;
  align-content: center;
}


/* =========================================================
   5. SINGLE CARD BASE
   Entire card subtly reacts when tabs switch
   ========================================================= */

.single-card {
  width: 100%;
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(0, 0, 0, 0.38);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(24px);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
}

.single-card.is-switching {
  transform: translateY(-3px) scale(0.992);
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.055)),
    rgba(0, 0, 0, 0.42);
}


/* =========================================================
   6. PROFILE TOP
   Square profile image fix
   ========================================================= */

.profile-top {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 24px);
}

.avatar {
  position: relative;
  width: clamp(86px, 15vw, 116px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 42px rgba(160, 160, 255, 0.25);
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center;
}

.profile-main {
  min-width: 0;
}
/* =========================================================
   7. TAB NAV
   ========================================================= */

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.tab-button {
  flex: 1 1 120px;
  min-height: 44px;
  border: 0;
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.54);
  background: transparent;
  cursor: pointer;
  font-weight: 760;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.tab-button:hover {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
}

.tab-button.active {
  color: #050505;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   8. TAB CONTENT TRANSITION AREA
   Only the active tab affects card height
   ========================================================= */

.card-viewport {
  margin-top: 24px;
  overflow: visible;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 260ms ease both;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

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

.panel-kicker {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tab-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.bio {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.65;
}


/* =========================================================
   9. TAGS + STATS
   ========================================================= */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag-row span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.stats-grid div {
  min-width: 0;
  padding: 15px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.stats-grid span {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.74rem;
}

.stats-grid strong {
  display: block;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}


/* =========================================================
   10. MINI LIST
   ========================================================= */

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mini-list div {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.mini-list span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.78rem;
}

.mini-list p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}


/* =========================================================
   11. RESUME VIEWER
   Embedded PDF inside the Resume tab
   Includes centered pill toggle for two resumes
   ========================================================= */

.resume-viewer {
  position: relative;
  width: 100%;
  height: min(70vh, 680px);
  min-height: 520px;
  margin-top: 18px;
  padding: 58px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.resume-toggle {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.resume-toggle-button {
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.resume-toggle-button:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.resume-toggle-button.active {
  color: #050505;
  background: rgba(255, 255, 255, 0.92);
}

.resume-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   CONTACT FORM
   Embedded message box for the Contact tab
   ========================================================= */

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  outline: 0;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.065);
  font: inherit;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.form-row input {
  min-height: 52px;
  padding: 0 16px;
}

.form-row textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.095);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.045);
}

.send-button {
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 18px;
  color: #050505;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.send-button:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.09);
}

/* =========================================================
   CONTACT BOTTOM LINKS
   Cleaner contact + resume buttons
   ========================================================= */

.contact-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.contact-tile {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.065);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.contact-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.105);
}

.contact-tile span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-tile strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.resume-mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.resume-mini-row a {
  flex: 1 1 220px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.resume-mini-row a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.095);
}

.resume-mini-row span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
}

/* =========================================================
   12. FOOTER
   ========================================================= */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
}


/* =========================================================
   13. MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 820px);
    padding: 24px 0;
    align-content: start;
  }

  .single-card {
    border-radius: 24px;
  }

  .profile-top {
    align-items: flex-start;
  }

  .contact-link-grid {
  grid-template-columns: 1fr;
  }

  .resume-mini-row a {
  flex-basis: 100%;
  }

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

  .tab-button {
    flex: unset;
  }

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

  .profile-link {
    min-height: 54px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================================================
   14. EXTRA SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {
  .profile-top {
    flex-direction: column;
  }

  

  .avatar {
    width: 86px;
    border-radius: 22px;
  }

  h1 {
    font-size: 3rem;
  }

  .bio {
    font-size: 0.95rem;
  }
}