/* ==========================================================================
   Portfolio — vanilla recreation of the Claude Design prototype.
   Theme knobs from the prototype's props panel live here as CSS custom
   properties so they can be tweaked without touching markup or JS.
   ========================================================================== */

:root {
  /* Theme knobs (prototype defaults) --------------------------------------
     accentColor options from prototype: #4FB8A6 #5AA0D6 #7FB07F #D9A86C
     overlayStrength: 0.6 (range 0.3–0.9) — drives the two overlay alphas
     navStyle: frosted (alt: solid → set --nav-bg to rgba(9,20,22,0.94)) */
  --accent: #58c5e0;
  --text: rgba(250, 250, 246, 0.95);
  --bg-base: #0d1f1d;

  --nav-bg: rgba(255, 255, 255, 0.06);

  /* Overlay alphas precomputed from overlayStrength 0.6:
     topA = min(0.85, 0.6 * 0.65) = 0.39 ; botA = min(0.95, 0.6) = 0.6 */
  --overlay-gradient: linear-gradient(
    180deg,
    rgba(8, 20, 20, 0.39) 0%,
    rgba(5, 14, 16, 0.6) 100%
  );

  /* Nature background photo — drop your image at assets/img/background.jpg.
     The gradient below is a placeholder shown until the photo loads/exists. */
  --bg-photo: url("assets/img/background.jpg");

  /* Shared frosted-glass card surface --------------------------------------
     Every card-like panel (.card, .degree-card, .cert, .contact-card--ghost)
     pulls its surface from these knobs. Change one here → all cards update. */
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: 1px solid rgba(255, 255, 255, 0.26);
  --card-blur: blur(12px);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-base);
  overflow-x: hidden;
  overflow-y: scroll;
}

::selection {
  background: rgba(79, 184, 166, 0.35);
}

.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

/* Fixed full-bleed background photo + dark overlay ------------------------ */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #12332f;
  background-image:
    radial-gradient(120% 80% at 70% 20%, #1c4a43 0%, transparent 60%),
    radial-gradient(120% 90% at 20% 90%, #0a2420 0%, transparent 55%),
    var(--bg-photo);
  background-size: cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--overlay-gradient);
}

/* Sticky frosted header --------------------------------------------------- */
.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 20;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav__divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent !important;
  color: inherit !important;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.brand__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  display: block;
}

.brand__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Nav --------------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__btn {
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
}

.nav__btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav__btn[aria-current="page"] {
  color: #ffffff;
  background: transparent;
}

/* Placeholder avatar/image slots ----------------------------------------- */
.img-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
}

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Main / sections --------------------------------------------------------- */
.main {
  position: relative;
  z-index: 5;
  max-width: 1080px;
  margin: 0 auto;
  padding: 128px 32px 96px;
}

.tab-panel[hidden] {
  display: none;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-heading p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Divider label (Tools / Social / Degree / Certifications) --------------- */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

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

.divider span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* About ------------------------------------------------------------------- */
.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 48px;
}

.about-hero__avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.about-hero__name {
  font-size: 36px;
  font-weight: 800;
  margin: 14px 0 0;
  letter-spacing: -0.02em;
}

.about-hero__role {
  font-size: 17px;
  font-weight: 500;
  margin: 0;
  color: var(--accent);
}

.about-hero__tagline {
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0 0;
  color: rgba(250, 250, 246, 0.6);
}

.about-hero__bio {
  max-width: 650px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250, 250, 246, 0.82);
  margin: 14px 0 0;
}

.btn-resume {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 12px;
  background: rgba(250, 250, 246, 0.95);
  color: #0d1f1d;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-resume:hover {
  background: #0d1f1d;
  color: var(--text);
}

.about-section {
  margin-bottom: 48px;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
}

.tool {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease;
}

.tool:hover {
  transform: translateY(-4px);
}

.tool-logo {
  display: block;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.tool-logo:hover {
  transform: translateY(-4px);
}

/* Social list ------------------------------------------------------------- */
.social-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bg-base);
}

.social:hover .social__tag {
  background: rgba(13, 31, 29, 0.08);
  border-color: rgba(13, 31, 29, 0.2);
}

.social:hover .social__handle {
  color: rgba(13, 31, 29, 0.6);
  transition: color 0.2s ease;
}

.social:hover .social__arrow {
  color: var(--bg-base);
  transform: translateX(4px);
}

.social__tag {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  color: var(--accent);
}

.social__icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.social__body {
  flex: 1;
}

.social__label {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
}

.social__handle {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.social__arrow {
  display: inline-block;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Projects ---------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-bg);
  border: var(--card-border);
  backdrop-filter: var(--card-blur);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.card__media {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.06) 10px,
    rgba(255, 255, 255, 0.02) 10px,
    rgba(255, 255, 255, 0.02) 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.media-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.media-chip__play {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(255, 255, 255, 0.85);
}

.media-chip__label {
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  flex: 1;
}

.card__features {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.card__features li {
  padding-left: 2px;
}

.card__features li::marker {
  color: var(--accent);
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
}

.card__link {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card__link__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.card:hover .card__link__arrow {
  transform: translateX(4px);
}

.card__link .gh {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
}

/* Education --------------------------------------------------------------- */
.education {
  max-width: 680px;
  margin: 0 auto;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.job-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background: var(--card-bg);
  border: var(--card-border);
  backdrop-filter: var(--card-blur);
  box-shadow: var(--card-shadow);
}

.job-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.job-card__icon svg {
  width: 26px;
  height: 26px;
}

.job-card__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.job-card__body {
  flex: 1;
  min-width: 0;
}

.job-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.job-card__role {
  font-size: 17px;
  font-weight: 700;
}

.job-card__company {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 3px;
}

.job-card__dates {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.job-card__bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.job-card__bullets li::marker {
  color: var(--accent);
}

.degree-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background: var(--card-bg);
  border: var(--card-border);
  backdrop-filter: var(--card-blur);
  box-shadow: var(--card-shadow);
  margin-bottom: 48px;
}

.degree-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.degree-card__icon svg {
  width: 26px;
  height: 26px;
}

.degree-card__degree {
  font-size: 17px;
  font-weight: 700;
}

.degree-card__school {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 3px;
}

.degree-card__dates {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--card-bg);
  border: var(--card-border);
  backdrop-filter: var(--card-blur);
  box-shadow: var(--card-shadow);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cert:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bg-base);
}

.cert:hover .cert__issuer,
.cert:hover .cert__date {
  color: rgba(13, 31, 29, 0.6);
  
}

.cert__name {
  font-size: 15px;
  font-weight: 600;
}

.cert__issuer {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
  transition: color 0.2s ease;
}

.cert__date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

/* Contact ----------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-card:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bg-base);
}

.contact-card:hover .contact-card__icon {
  background: rgba(13, 31, 29, 0.08);
  border-color: rgba(13, 31, 29, 0.2);
}

.contact-card:hover .contact-card__sub {
  color: rgba(13, 31, 29, 0.6);
}

.contact-card--primary {
  background: rgba(250, 250, 246, 0.95);
  color: #0d1f1d;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-card--primary .contact-card__icon {
  background: rgba(13, 31, 29, 0.1);
  border-color: rgba(13, 31, 29, 0.2);
}

.contact-card--primary .contact-card__sub {
  color: rgba(13, 31, 29, 0.7);
  
}

.contact-card--ghost {
  background: var(--card-bg);
  border: var(--card-border);
  backdrop-filter: var(--card-blur);
  color: inherit;
}

.contact-card--ghost .contact-card__icon {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-card--ghost .contact-card__sub {
  color: rgba(255, 255, 255, 0.65);
}

.contact-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-card__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.contact-card--ghost .contact-card__title {
  font-weight: 600;
}

.contact-card__sub {
  display: block;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.contact-socials a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-socials a:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bg-base);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.contact-form input,
.contact-form textarea {
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 14.5px;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

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

.contact-form .btn-resume {
  margin-top: 4px;
  justify-content: center;
  width: 100%;
}

/* Focus visibility (accessibility pass) ---------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 24px;
  }

  .nav__divider {
    display: none;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main {
    padding: 40px 18px 72px;
  }

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

  .about-hero__name {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
