/* ===========================
   RESET & BASE
   =========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0e0e0e;
  --gold-light: #F0E4AF;
  --gold-muted: #9A9370;
  --gold-bright: #d4c47c;
  --white-soft: rgba(255, 255, 255, 0.85);
  --white-dim: rgba(255, 255, 255, 0.45);
  --overlay: rgba(10, 10, 10, 0.72);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(240, 228, 175, 0.15);
  --glass-hover: rgba(240, 228, 175, 0.10);
  --shadow-gold: rgba(240, 228, 175, 0.12);
  --transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--white-soft);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===========================
   BACKGROUND VIDEO + OVERLAY
   =========================== */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(10, 10, 10, 0.55) 0%,
      rgba(10, 10, 10, 0.78) 50%,
      rgba(10, 10, 10, 0.90) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ===========================
   CONTAINER
   Always visible by default.
   Animations are optional enhancement.
   =========================== */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

/* ===========================
   PROFILE SECTION
   =========================== */
.profile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.profile-name-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.decorative-line {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0.6;
}

.profile-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.profile-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.profile-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.6;
  margin-top: 0.5rem;
  max-width: 360px;
}

/* ===========================
   LINK BUTTONS
   =========================== */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white-soft);
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  transition:
    background var(--transition-smooth),
    border-color var(--transition-smooth),
    transform var(--transition-bounce),
    box-shadow var(--transition-smooth),
    opacity 0.5s ease;
}

/* ===========================
   IMAGE CARD BUTTONS
   =========================== */
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white-soft);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    background var(--transition-smooth),
    border-color var(--transition-smooth),
    transform var(--transition-bounce),
    box-shadow var(--transition-smooth);
}

.card-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white-soft);
  transition: color var(--transition-smooth);
}

.card-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--gold-muted);
  letter-spacing: 0.04em;
}

.link-card .btn-arrow {
  position: static;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--gold-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity var(--transition-smooth),
    transform var(--transition-smooth),
    color var(--transition-smooth);
}

.link-card:hover {
  background: var(--glass-hover);
  border-color: rgba(240, 228, 175, 0.35);
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.35),
    0 0 25px var(--shadow-gold);
}

.link-card:hover .card-img {
  transform: scale(1.08);
}

.link-card:hover .card-title {
  color: var(--gold-light);
}

.link-card:hover .btn-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold-light);
}

.link-card:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.1s;
}

/* ===========================
   ENTRANCE ANIMATION (optional)
   Only applied via JS .animate class.
   Without JS, everything is still visible.
   =========================== */
.animate .container {
  animation: fadeInUp 0.6s ease-out both;
}

.animate .link-btn,
.animate .link-card {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.5s ease-out both;
}

/* Shimmer effect on hover */
.link-btn::before,
.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(240, 228, 175, 0.06),
      transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.link-btn:hover::before {
  left: 100%;
}

.link-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(240, 228, 175, 0.35);
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 20px var(--shadow-gold);
}

.link-btn:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.1s;
}

/* Button Icon */
.btn-icon {
  position: absolute;
  left: 1.25rem;
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  transition: transform var(--transition-bounce);
}

.link-btn:hover .btn-icon {
  transform: scale(1.2);
}

/* Button Text */
.btn-text {
  text-align: center;
}

/* Button Arrow */
.btn-arrow {
  position: absolute;
  right: 1.25rem;
  font-size: 1rem;
  color: var(--gold-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity var(--transition-smooth),
    transform var(--transition-smooth),
    color var(--transition-smooth);
}

.link-btn:hover .btn-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold-light);
}

/* Site button variant */
.link-btn--site {
  border-color: rgba(240, 228, 175, 0.25);
  background: rgba(240, 228, 175, 0.06);
}

.link-btn--site:hover {
  background: rgba(240, 228, 175, 0.14);
  border-color: var(--gold-light);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 30px var(--shadow-gold);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  margin-top: 1rem;
  text-align: center;
}

.footer p {
  font-size: 0.7rem;
  color: var(--white-dim);
  letter-spacing: 0.05em;
  opacity: 0.6;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 520px) {
  .container {
    padding: 2.5rem 1.25rem;
    max-width: 100%;
  }

  .profile-name {
    font-size: 2rem;
  }

  .decorative-line {
    width: 28px;
  }

  .profile-quote {
    font-size: 0.82rem;
  }

  .link-btn {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .profile-name {
    font-size: 1.7rem;
    letter-spacing: 0.03em;
  }

  .profile-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
  }

  .link-btn {
    padding: 0.8rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* Tall screens: more vertical padding */
@media (min-height: 800px) {
  .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}