:root {
  --bg: #F7F4EF;
  --card: #FFFFFF;
  --text: #4A4238;
  --muted: #5B504E;
  --gold: #C59F60;
  --gold-soft: rgba(197, 159, 96, 0.15);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.03);
  --radius-xl: 34px;
  --radius-lg: 8px;
  --radius-md: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  width: 100%;
}

.bio-page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: transparent;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.bio-page::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-image: url('logo.png');
  background-size: 90%;
  background-position: center 20%;
  background-repeat: no-repeat;
  opacity: 0.04;
  z-index: -1;
  pointer-events: none;
}



.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 20px 0;
  text-align: center;
  width: 100%;
}

.banner-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.banner-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  pointer-events: none;
}

.banner-logo-container {
  position: relative;
  margin-top: -85px;
  z-index: 2;
  width: 170px;
  height: 170px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.banner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.profile-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.profile-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.instruction-banner {
  background: #EBE5DC;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 24px 24px;
  border-radius: 4px;
}

.instruction-banner span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.icon-arrow {
  width: 16px;
  height: 16px;
  color: #999;
}

.link-card:active {
  transform: scale(0.985);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 28px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.links > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.links > *.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.link-card {
  min-height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid var(--gold);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  transition: transform 190ms ease, background 190ms ease;
  width: 100%;
}

.link-card:focus-visible {
  transform: translateY(-2px);
  background: #FFFFFF;
  outline: none;
}

@media (hover: hover) {
  .link-card:hover {
    transform: translateY(-2px);
    background: #FFFFFF;
  }
}

.link-content strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
}

.links-separator {
  width: 100%;
  max-width: 280px;
  height: 1px;
  margin: 12px auto;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  position: relative;
}

.links-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.action-card {
  min-height: 80px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 190ms ease, box-shadow 190ms ease;
  width: 100%;
  text-align: left;
}

.action-card:focus-visible, .action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  outline: none;
}

.action-card:active {
  transform: scale(0.985);
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--gold-soft);
  border: none;
}

.action-icon .icon {
  width: 20px;
  height: 20px;
}

.action-content strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 3px;
  text-transform: none;
}

.action-content span {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 400;
}

details.accordion-card {
  display: block;
  min-height: auto;
  padding: 0;
  border-radius: 16px;
  background: var(--card);
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  width: 100%;
}

details.accordion-card[open] {
  background: #FDFBF8;
}

.accordion-header {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gold);
  transition: transform 0.3s ease;
}

details[open] .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 20px 24px 80px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  text-align: left;
}

.accordion-body p {
  margin-bottom: 12px;
}

.accordion-list {
  list-style: none;
  padding: 0;
}

.accordion-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.accordion-list .check {
  color: var(--gold);
  font-weight: bold;
}



.footer {
  text-align: left;
  padding: 2px 24px 28px;
}

.footer h2 {
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 15px;
}

.divider {
  width: 100%;
  max-width: 255px;
  height: 1px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, rgba(0, 91, 150, 0.25), transparent);
  position: relative;
}

.divider::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 7px rgba(0, 91, 150, 0.08);
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(0, 91, 150, 0.10);
  color: var(--gold);
  transition: transform 180ms ease, background 180ms ease;
}

.footer-icon:hover,
.footer-icon:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  outline: none;
}

.copyright {
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.developer-credit {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
  margin-top: 6px;
}

.developer-credit a {
  font-weight: bold;
  text-decoration: underline;
  color: var(--gold);
  transition: opacity 0.2s ease;
}

.developer-credit a:hover {
  opacity: 0.8;
}

@media (min-width: 520px) {
  body {
    padding-block: 0;
  }
}

@media (min-width: 768px) {
  .banner-image-wrapper {
    height: 480px;
  }
  
  .links {
    max-width: 700px;
    gap: 16px;
    padding-bottom: 60px;
  }

  .banner-logo-container {
    width: 200px;
    height: 200px;
    margin-top: -100px;
  }

  .profile-title {
    font-size: 3.2rem;
  }
  
  .profile-subtitle {
    font-size: 1.15rem;
  }
  
  .link-card, .action-card {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 35, 25, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 40px rgba(30, 41, 59, 0.2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 300ms ease;
  padding: 34px 24px 24px;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 91, 150, 0.08);
  border: none;
  color: var(--gold);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease;
}

.modal-close:hover {
  background: rgba(0, 91, 150, 0.15);
}

.cv-title {
  color: var(--gold);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  text-align: left;
  margin-bottom: 24px;
}

.cv-section {
  margin-bottom: 22px;
}

.cv-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 5px;
}

.cv-section p {
  color: var(--text);
  line-height: 1.48;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* Button override */
button.link-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

/* WhatsApp Perimeter Animation */
.whatsapp-btn {
  border-color: transparent !important;
}

.animated-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  overflow: hidden;
}

.animated-border::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent 75%, var(--gold) 100%);
  animation: spinBorder 2.5s linear infinite;
}

@keyframes spinBorder {
  to {
    transform: rotate(360deg);
  }
}

/* Highlight Button Styles */
.link-card-highlight {
  background: linear-gradient(135deg, var(--gold), #004370);
  border: none;
  box-shadow: 0 16px 36px rgba(30, 41, 59, 0.25);
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.link-card-highlight .link-icon {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.link-card-highlight .link-content strong {
  color: #fff;
}

.link-card-highlight .link-content span {
  color: rgba(255, 255, 255, 0.85);
}

@media (hover: hover) {
  .link-card-highlight:hover {
    background: linear-gradient(135deg, #0073BD, #003052);
    box-shadow: 0 18px 42px rgba(30, 41, 59, 0.35);
  }
}

.link-card-highlight:focus-visible {
  background: linear-gradient(135deg, #0073BD, #003052);
  box-shadow: 0 18px 42px rgba(30, 41, 59, 0.35);
}

/* Quiz Modal Styles */
.quiz-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.quiz-step.active {
  display: block;
}

.quiz-question {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.4;
  text-align: left;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: all 200ms ease;
  line-height: 1.4;
}







@media (hover: hover) {
  .quiz-option:hover {
    background: #FAFAFA;
    border-color: rgba(0, 91, 150, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.08);
  }
}

.quiz-option:focus-visible {
  outline: 2px solid var(--gold);
}

.quiz-progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: rgba(0, 91, 150, 0.15);
  border-radius: 4px;
  margin-top: 36px;
  margin-bottom: 24px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--gold);
  border-radius: 4px;
  transition: width 300ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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