/* ===========================
   General Reset & Base Setup
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {

  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

:root {
  --color-bg: #1A0F0A;
  --color-text: #F8F4E3;
  --color-primary: #D4AF37;
  --color-accent: #7C2020;
  --color-highlight: #E9C46A;
  --color-muted: #6B5B3E;
  --texture-overlay: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.9) 100%);
}

body {
  margin: 0;
  background-color: var(--color-bg);
  background-image: var(--texture-overlay);
  color: var(--color-text);
  font-family: "Lora", serif;
  line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  /* ✅ stays pinned at the top */
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--color-primary);
  background: rgba(20, 10, 5, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  z-index: 999;
  /* ✅ ensures it sits above hero/content */
}

.navbar a.active {
  color: var(--site-primary, #b28a3b);
  font-weight: bold;
  border-bottom: 2px solid var(--site-primary, #b28a3b);
}

.store-button {
  background: linear-gradient(135deg, #8b6a28, #b28a3b);
  color: #ffffff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(178, 138, 59, 0.35);
}

.store-button:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.store-button:active {
  transform: translateY(1px);
  box-shadow: 0 0 6px rgba(178, 138, 59, 0.3);
}

/* ===== LOGO IN NAVBAR ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 42px;
  width: auto;
  /* filter: brightness(0) invert(1); */
  opacity: 0.9;
}

.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--color-primary);
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

/* ===== HERO SEAL LOGO ===== */
.hero-content {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--color-text);
}

.toolbar-logo-img {
  max-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

.hero-entry-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

.hero-logo {
  width: 280px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  opacity: 0.85;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
  opacity: 1;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Shared Button Base --- */
.hero-buttons a {
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  transition: all 0.25s ease;
}

/* --- Outline (Sign In) --- */
.btn-outline {
  background: transparent;
  color: var(--site-primary, #d8b56a);
  border: 2px solid var(--site-primary, #b28a3b);
}

.btn-outline:hover {
  background: var(--site-primary, #b28a3b);
  color: #0f0f12;
  box-shadow: 0 0 10px rgba(216, 181, 106, 0.4);
  transform: translateY(-2px);
}

/* --- Responsive tweaks --- */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }
}

/* .logo {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--color-primary);
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(212,175,55,0.5);
} */

.account-btn {
  background: transparent;
  color: var(--site-primary, #d8b56a);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border: 2px solid var(--site-primary, #b28a3b);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-left: 0.75rem;
  box-shadow: 0 0 8px rgba(178, 138, 59, 0.2);
}

.account-btn:hover {
  background: var(--site-primary, #b28a3b);
  color: #0f0f12;
  box-shadow: 0 0 14px rgba(216, 181, 106, 0.5);
  transform: translateY(-1px);
}

.nav-links a {
  font-family: "Cinzel", serif;
  color: var(--color-text);
  margin: 0 1.2rem;
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.7);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-accent {
  border: 2px solid var(--color-primary);
  background: none;
  color: var(--color-primary);
  padding: 0.6rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 6px;
}

.btn-primary:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.btn-accent {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 0 10px rgba(124, 32, 32, 0.7);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  color: var(--color-text);
  text-align: center;
  padding: 2rem 2rem 1rem;
  min-height: 60vh;

  /* ✝️ Primary Byzantine red gradient */
  background:
    radial-gradient(circle at 50% 30%, rgba(140, 45, 32, 0.25), rgba(26, 15, 10, 0.98) 70%),
    linear-gradient(180deg, rgba(26, 15, 10, 0.95), rgba(26, 15, 10, 1));
  background-blend-mode: overlay;
  overflow: hidden;
}

/* ✨ Add semi-transparent background image layer */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/header-blend.jpg") center/cover no-repeat;
  opacity: 0.45;
  /* 🔼 increased visibility */
  mix-blend-mode: soft-light;
  /* switch from overlay for smoother tone blending */
  filter: blur(2px) brightness(0.9) contrast(1.1);
  /* 🔼 clarity & light definition */
  z-index: 0;
}


/* ensure hero text and logo stay above */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 3.2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.hero p {
  max-width: 650px;
  margin: 0 auto 2rem;
  color: var(--color-highlight);
  font-size: 1.1rem;
}

/* ===== CARDS ===== */
.section {
  text-align: center;
  padding: 4rem 2rem;
}

.section h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-muted);
  border-radius: 10px;
  padding: 2rem;
  max-width: 300px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.card h3 {
  font-family: 'Cinzel', serif;
  color: var(--color-primary);
}

.card p {
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-muted);
}

/* ===== GAME CARD ===== */
.game-card {
  position: relative;
  /* establishes a positioning context for the badge */
  overflow: hidden;
  /* keeps hover effects tidy, but we’ll fix the badge */
  background: rgba(26, 15, 10, 0.8);
  border: 1px solid var(--color-muted);
  border-radius: 12px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  font-family: 'Inter', sans-serif;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.game-thumb {
  position: relative;
  z-index: 1;
  height: 180px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05), rgba(26, 15, 10, 1));
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05);
  transition: transform 0.5s ease;
}

.game-card:hover .game-thumb img {
  transform: scale(1.05);
}

/* Subtle Byzantine glow overlay */
.game-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.1), transparent 70%);
  mix-blend-mode: screen;
}

.game-info {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.game-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.game-info p {
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-highlight);
  margin-bottom: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 0.6rem;
}

.genre,
.size {
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Byzantine gold button */
.btn-gold {
  background: linear-gradient(180deg, #E9C46A, #D4AF37);
  border: none;
  color: #1A0F0A;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #FFD65B, #E0B94C);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* fix badge layering */
.badge-owned,
.badge-buy,
.badge-external {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  background-color: rgba(212, 175, 55, 0.4);
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  z-index: 5;
  /* <-- this ensures it stays on top */
  pointer-events: none;
  /* so it doesn’t block button clicks */
}

.badge-external {
  background-color: rgba(55, 165, 212, 0.4)
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 1024px) {

  /* ensure body never overflows */
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  /* NAVBAR */
  .navbar {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    gap: 0.5rem;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 480px;
  }

  .nav-links a {
    margin: 0;
  }

  /* HERO SECTION */
  .hero {
    background-attachment: scroll;
    background-position: center top;
    padding: 7rem 1.5rem 4rem;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.2rem;
    max-width: 90%;
    margin: 0 auto 1rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto 2rem;
  }

  /* CARDS */
  .cards {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
  }

  .card {
    width: 90%;
    max-width: 360px;
    margin: 0 auto;
  }

  /* SECTION WRAPPER */
  .section {
    padding: 3rem 1.5rem;
    max-width: 100%;
    overflow: hidden;
  }

  /* FOOTER */
  .footer {
    text-align: center;
    padding: 1.5rem 1rem;
  }
}

/* ===== USER DASHBOARD EXTRAS ===== */
.user-hero {
  background:
    radial-gradient(circle at 50% 35%, rgba(120, 30, 25, 0.25), rgba(26, 15, 10, 0.98) 70%),
    url("images/Icon of Christ the Tree of Life.png") center/cover no-repeat;
  background-blend-mode: soft-light;
}

.user-hero .hero-content h1 {
  color: var(--color-primary);
  font-size: 2.8rem;
}

.user-hero .hero-content p {
  color: var(--color-highlight);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

#library .cards,
#web .cards {
  gap: 2.5rem;
}

#downloads .card {
  border: 1px solid var(--color-primary);
  background: rgba(20, 10, 5, 0.6);
  color: var(--color-text);
  max-width: 340px;
  text-align: center;
}

#downloads h2,
#library h2,
#web h2 {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.dash-section {
  margin-bottom: 4rem;
}

.dash-section h2 {
  font-family: 'Cinzel', serif;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.5rem;
}

/* ===== FAQ SECTION WITH PARCHMENT BACKGROUND ===== */
.faq-section {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 3rem 2rem;

  /* Layer 1: translucent parchment */
  background:
    linear-gradient(rgba(26, 15, 10, 0.85), rgba(26, 15, 10, 0.9)),
    /* darken base */
    url("images/parchment-bg.png") center/cover no-repeat;
  background-blend-mode: multiply;
  /* or try overlay for a warmer tone */

  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}


.faq-section h2 {
  text-align: center;
  font-family: 'Cinzel', serif;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.5rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
  border-color: var(--color-primary);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 1.2rem;
  color: var(--color-primary);
  font-family: "Lora", serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--color-highlight);
}

.faq-answer {
  display: none;
  padding: 0 1.2rem 1rem;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-link {
  color: var(--color-highlight);
  text-decoration: underline;
}

.faq-link:hover {
  color: var(--color-primary);
}

.cta-link {
  display: inline-block;
  margin-top: 1rem;
  background: linear-gradient(135deg, #8b6a28, #b28a3b);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(178, 138, 59, 0.35);
  transition: all 0.25s ease;
}

.cta-link:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(216, 181, 106, 0.5);
}

@media (min-width: 1200px) {
  .faq-section {
    background-position: center top, center;
    background-size: cover, 100%;
    padding: 4rem 3rem;
  }
}

/* ===== ABOUT SECTION (Byzantine Sanctuary Style) ===== */
.about-section {
  position: relative;
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 4rem 3rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, rgba(60, 20, 15, 0.98), rgba(20, 8, 6, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  overflow: hidden;
}

/* faint mosaic halo at top */
.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: url("images/parchment-bg.png") center/cover no-repeat;
  opacity: 0.1;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.about-section h2 {
  font-family: 'Cinzel', serif;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  letter-spacing: 1px;
}

.about-section p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about-section .intro {
  font-size: 1.1rem;
  color: var(--color-highlight);
  font-weight: 500;
}

.about-section blockquote {
  font-family: 'Cinzel', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 2.5rem auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  max-width: 600px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.15);
}

.about-image img {
  width: 220px;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--site-primary, #b28a3b);
  box-shadow: 0 0 15px rgba(178, 138, 59, 0.3);
  background-color: var(--site-panel, #16161b);
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.03);
}

.quote-author {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.about-highlight {
  margin-top: 2.5rem;
  padding: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.03);
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.05);
}

.about-link {
  color: var(--color-highlight);
  text-decoration: underline;
  font-weight: 500;
}

.about-link:hover {
  color: var(--color-primary);
}

/* subtle fade bottom vignette */
.about-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(0deg, rgba(20, 8, 6, 0.9), transparent);
  pointer-events: none;
}

@media (max-width: 768px) {
  .about-section {
    padding: 2.5rem 1.5rem;
  }
}

#news {
  text-align: center;
  padding: 2rem 1rem;
}

#news h2 {
  margin-bottom: 1.5rem;
}

.news-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* ===== CLOSING SECTION / FOOTER ===== */
.closing-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(20, 8, 6, 1), rgba(10, 5, 3, 1));
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.5);
  padding: 3rem 2rem 2rem;
  text-align: center;
  position: relative;
}

.closing-inner {
  max-width: 900px;
  margin: 0 auto;
}

.closing-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.closing-logo img {
  width: 70px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
  opacity: 0.9;
}

.closing-logo h3 {
  font-family: 'Cinzel', serif;
  color: var(--color-primary);
  font-size: 1.4rem;
  letter-spacing: 1px;
  margin: 0;
}

.closing-text {
  color: var(--color-highlight);
  font-size: 1rem;
  margin: 1rem auto 2rem;
  max-width: 600px;
  line-height: 1.7;
}

.closing-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.closing-links a {
  color: var(--color-highlight);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.closing-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.3s ease;
}

.closing-links a:hover {
  color: var(--color-primary);
}

.closing-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.closing-divider {
  height: 1px;
  width: 100%;
  background: rgba(212, 175, 55, 0.15);
  margin: 1rem 0 1.5rem;
}

.closing-credit {
  color: var(--color-muted);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* mobile tweaks */
@media (max-width: 768px) {
  .closing-links {
    flex-direction: column;
    gap: 0.8rem;
  }

  .closing-logo img {
    width: 55px;
  }

  .closing-text {
    font-size: 0.95rem;
  }
}
/* ===========================
   Landing Page Custom Styles
   =========================== */

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 20%, rgba(140, 45, 32, 0.3), rgba(26, 15, 10, 0.95)),
    linear-gradient(180deg, rgba(26, 15, 10, 1), rgba(26, 15, 10, 0.98));
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(212, 175, 55, 0.6);
  color: rgba(248, 244, 227, 0.9);
  font-family: "Inter", sans-serif;
  letter-spacing: 0.06em;
}

.site-footer p {
  font-size: 0.95rem;
}

.brand-header {
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid var(--color-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.brand-header__logo {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 75vh;
  aspect-ratio: 3600 / 2048;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.split-hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  min-height: 100vh;
}

.portal-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: var(--color-text);
  background: rgba(12, 7, 5, 0.7);
  min-height: 100%;
  display: flex;
  align-items: stretch;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.portal-card:last-child {
  border-right: none;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 6, 4, 0.85) 10%, rgba(10, 6, 4, 0.5) 55%, rgba(10, 6, 4, 0.78) 100%);
  opacity: 0.9;
  transition: opacity 0.35s ease;
}

.portal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 42px rgba(212, 175, 55, 0.25);
}

.portal-card:hover::before {
  opacity: 1;
}

.portal-card:hover::after {
  opacity: 1;
}

.portal-card__content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  align-content: center;
  gap: 1.2rem;
  background: rgba(12, 7, 5, 0.5);
  backdrop-filter: blur(6px);
  max-width: 540px;
  margin: 0 auto;
}

.portal-card__eyebrow {
  font-family: 'Cinzel', serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.portal-card__title {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  color: var(--color-text);
  margin: 0;
}

.portal-card__body {
  font-family: 'Inter', sans-serif;
  color: var(--color-highlight);
  font-size: 1.05rem;
  line-height: 1.6;
}

.portal-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  border: 2px solid currentColor;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.portal-card:hover .portal-card__cta {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
  background: color-mix(in srgb, currentColor 20%, transparent);
  color: currentColor;
  border-color: currentColor;
}

.portal-card--business {
  background: linear-gradient(160deg, rgba(124, 32, 32, 0.82), rgba(26, 15, 10, 0.95)), url('images/business-portal.jpg') center/cover no-repeat;
  border-color: rgba(212, 175, 55, 0.7);
}

.portal-card--business .portal-card__cta {
  color: var(--color-primary);
}

.portal-card--games {
  background: linear-gradient(20deg, rgba(233, 196, 106, 0.28), rgba(26, 15, 10, 0.9)),
    linear-gradient(140deg, rgba(124, 32, 32, 0.2), transparent 55%),
    url('images/game-portal.jpg') center/cover no-repeat;
  border-color: rgba(233, 196, 106, 0.7);
}

.portal-card--games .portal-card__cta {
  color: var(--color-highlight);
}

@media (max-width: 960px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .portal-card:last-child {
    border-bottom: none;
  }

  .portal-card__title {
    font-size: 1.8rem;
  }

  .portal-card__body {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .portal-card__content {
    padding: 2rem 1.5rem;
  }
}

/* ===========================
   Business Services Page
   =========================== */
body.services-page {
  background: radial-gradient(circle at 20% 20%, rgba(233, 196, 106, 0.05) 0, rgba(26, 15, 10, 0.9) 45%),
    radial-gradient(circle at 80% 10%, rgba(124, 32, 32, 0.12) 0, rgba(26, 15, 10, 0.85) 40%),
    linear-gradient(180deg, rgba(18, 9, 6, 0.85) 0%, rgba(18, 9, 6, 0.95) 100%);
  color: var(--color-text);
  font-family: "Inter", sans-serif;
}

.services-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.services-logo__image {
  max-height: clamp(96px, 35vh, 240px);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
}

.services-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.service-section {
  position: relative;
  min-height: 100vh;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  align-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(233, 196, 106, 0.02));
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
}

.service-section::before,
.service-section::after {
  content: "";
  position: absolute;
  inset: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 18px;
  pointer-events: none;
}

.service-section::after {
  inset: clamp(1.8rem, 4vw, 3rem);
  border-color: rgba(124, 32, 32, 0.15);
  mix-blend-mode: screen;
}

.service-section--alternate {
  background: linear-gradient(125deg, rgba(124, 32, 32, 0.12), rgba(26, 15, 10, 0.92));
}

.service-section--cta {
  background: linear-gradient(160deg, rgba(26, 15, 10, 0.95), rgba(233, 196, 106, 0.08));
}

.service-section__content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3rem);
  background: rgba(18, 9, 6, 0.65);
  border-radius: 20px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(6px);
}

.service-section__eyebrow {
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-highlight);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.service-section__title {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 1.5px;
  color: var(--color-primary);
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
  margin-bottom: 1.2rem;
}

.service-section__body {
  font-family: "Lora", serif;
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 62ch;
}

.service-section__body p + p {
  margin-top: 0.9rem;
}

.contact-section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
  background: linear-gradient(180deg, rgba(26, 15, 10, 0.92), rgba(26, 15, 10, 0.98));
  border-top: 1px solid rgba(212, 175, 55, 0.24);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  position: relative;
  overflow: hidden;
}

.contact-section::before,
.contact-section::after {
  content: "";
  position: absolute;
  inset: clamp(1rem, 3vw, 2.2rem);
  border: 1px solid rgba(233, 196, 106, 0.18);
  border-radius: 18px;
  pointer-events: none;
}

.contact-section::after {
  inset: clamp(1.8rem, 4vw, 3rem);
  border-color: rgba(124, 32, 32, 0.12);
  mix-blend-mode: screen;
}

.contact-section__content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: clamp(1.8rem, 5vw, 2.8rem);
  background: linear-gradient(160deg, rgba(18, 9, 6, 0.85), rgba(18, 9, 6, 0.7));
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.contact-section__title {
  font-family: "Cinzel", serif;
  color: var(--color-primary);
  letter-spacing: 1.4px;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
}

.contact-section__details {
  font-family: "Lora", serif;
  color: var(--color-text);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.contact-section__details a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.contact-section__details a:hover {
  color: var(--color-highlight);
  text-shadow: 0 0 8px rgba(233, 196, 106, 0.4);
}

.contact-section__actions {
  display: flex;
  justify-content: center;
}

.contact-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-bg);
  background: linear-gradient(135deg, #d4af37, #e9c46a);
  border: 1px solid rgba(233, 196, 106, 0.8);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.contact-return:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(233, 196, 106, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.05);
}

.contact-return:active {
  transform: translateY(1px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.28);
}

.return-section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, rgba(18, 9, 6, 0.96), rgba(26, 15, 10, 0.96));
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.return-section__content {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .service-section {
    min-height: 90vh;
  }

  .service-section__content {
    padding: 1.8rem;
  }

  .service-section::before,
  .service-section::after {
    inset: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
