:root {
  --ornate: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M31 31c12 0 21 11 33 11s22-11 34-11 20 11 32 11 22-11 32-11 12 11 0 22-22 11-32 11-21-11-33-11-23 11-33 11-22-11-32-11-12-11-1-22z" fill="none" stroke="rgba(213,183,122,0.16)" stroke-width="5" stroke-linecap="round"/%3E%3C/svg%3E');
  --gold-gradient: linear-gradient(120deg, #f3d09a, #d0ab66, #f4e2be);
}

body {
  /* background-image: radial-gradient(circle at top, rgba(213, 183, 122, 0.12), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(14, 77, 100, 0.6), transparent 35%),
    radial-gradient(circle at 80% 0, rgba(6, 38, 60, 0.8), transparent 55%); */

  background-image: url('./bg.png');
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
}

header {}

.hero-sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(115deg, rgba(213, 183, 122, 0.22), transparent 50%); */
  pointer-events: none;

  background-image: url('./bg.png');
  background-size: cover;
}

.calligraphy-mark {
  letter-spacing: 0;
}

.lang-switcher {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(6, 38, 60, 0.6);
  border: 1px solid rgba(213, 183, 122, 0.45);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.lang-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  color: rgba(232, 244, 248, 0.85);
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.lang-btn:hover {
  border-color: rgba(213, 183, 122, 0.6);
  color: #fff;
}

.lang-btn.active {
  background: var(--gold-gradient);
  color: #031420;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.profile-frame {
  position: relative;
  display: inline-flex;
  border: none;
  /* padding: 0.85rem; */
  /* background: var(--gold-gradient); */
  /* border-radius: 50%; */
  /* box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35); */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  /* background-image: url('./border_image.avif'); */
  /* background-size: 183%; */
  background-position: center;
  /* background-repeat: no-repeat; */
  overflow: hidden;

  img {
    border-radius: 50%;
  }
}

.profile-frame:hover {
  transform: translateY(-6px) scale(1.02);
 /* box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);*/
}

.profile-frame__border {
  position: absolute;
  inset: 0;
  border-radius: 46px;
  /* border: 2px solid rgba(255, 255, 255, 0.35); */
  pointer-events: none;
}

.supplication-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(213, 183, 122, 0.35);
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.chip {
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(213, 183, 122, 0.55);
  background: rgba(6, 38, 60, 0.4);
  backdrop-filter: blur(6px);
}

.intention-quote {
  margin-top: 1.75rem;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid rgba(213, 183, 122, 0.7);
  background: rgba(255, 255, 255, 0.03);
  font-style: italic;
  color: rgba(232, 244, 248, 0.85);
  border-radius: 0 18px 18px 0;
}

.glass-card {
  background: rgba(6, 38, 60, 0.82);
  border-radius: 32px;
  padding: 2.7rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--ornate);
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: 15px;
  border-radius: 24px;
  border: 2px solid transparent;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.glass-card>* {
  position: relative;
  z-index: 1;
}

.sec-heading p {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.65rem;
  color: rgba(213, 183, 122, 0.9);
  margin-bottom: 0.35rem;
}

.sec-heading h2 {
  font-family: 'Playfair Display', 'Galada', serif;
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-row span {
  flex: 0 0 160px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.info-row p {
  flex: 1;
  color: #e8f4f8;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.detail-list {
  display: grid;
  gap: 0.9rem;
  color: #e8f4f8;
}

.timeline {
  display: grid;
  gap: 1.5rem;
  border-left: 2px solid rgba(213, 183, 122, 0.5);
  padding-left: 1.5rem;
}

.timeline h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline-meta {
  font-size: 0.9rem;
  color: rgba(232, 244, 248, 0.7);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(213, 183, 122, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(213, 183, 122, 0.8);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.skill-grid span {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 65, 85, 0.8);
  text-align: center;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(213, 183, 122, 0.9);
  margin-bottom: 0.3rem;
}

.value {
  font-size: 1.1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.gallery-grid figure {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(213, 183, 122, 0.34);
  background: rgba(8, 65, 85, 0.7);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-grid figure:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-grid figcaption {
  padding: 0.85rem 1.2rem 1.3rem;
  font-size: 0.9rem;
  color: rgba(232, 244, 248, 0.9);
}

@media (max-width: 640px) {
  .glass-card {
    padding: 1.8rem;
  }

  .info-row {
    /* flex-direction: column; */
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .info-row span {
    margin-bottom: 0.2rem;
  }

  .px-6 {
    padding: 0px 8px;
  }

  main {
    margin: 10px 0px;
  }
}