/* Valora Studios - Official Master Stylesheet
   Theme: Professional Minecraft Studio (Black, Gold Accents, White Text)
   No purple, no excessive glow, clean & realistic gaming aesthetic.
*/

:root {
  --bg-primary: #08080a;
  --bg-secondary: #0e0f14;
  --bg-card: #12131a;
  --bg-card-hover: #181a24;
  --bg-elevated: #1a1b26;

  --color-gold: #d4af37;
  --color-gold-bright: #f3e08c;
  --color-gold-dark: #a28118;
  --color-gold-glow: rgba(212, 175, 55, 0.15);
  --color-gold-border: rgba(212, 175, 55, 0.25);
  --color-gold-border-bright: rgba(212, 175, 55, 0.6);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);

  --font-heading: 'Cinzel', 'Trebuchet MS', serif, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1280px;
}

/* Reset & Core Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Typography & Gold Helpers */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  color: var(--text-main);
}

.text-gold {
  color: var(--color-gold);
}

.text-gold-bright {
  color: var(--color-gold-bright);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #f3e08c 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container Structure */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: var(--color-gold);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

/* Navigation Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.header.scrolled {
  border-bottom-color: var(--color-gold-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold));
  border: 1px solid var(--color-gold-bright);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--color-gold-glow);
}

.brand-icon-inner {
  width: 14px;
  height: 14px;
  background-color: var(--bg-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--color-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--color-gold);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--color-gold-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-150%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu .nav-link {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.02);
}

.mobile-menu .nav-link.active {
  background-color: var(--color-gold-glow);
  border-left: 3px solid var(--color-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 100%);
  color: #000000;
  box-shadow: 0 4px 15px var(--color-gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-gold-bright) 100%);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(18, 19, 26, 0.8);
  border-color: var(--color-gold-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  background-color: var(--bg-card-hover);
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-dev {
  background-color: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--color-gold-border-bright);
  color: var(--color-gold-bright);
}

.badge-planned {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.badge-soon {
  background-color: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--color-gold);
  color: #ffffff;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  filter: brightness(0.65) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(8, 8, 10, 0.4) 0%, rgba(8, 8, 10, 0.95) 100%),
              linear-gradient(to bottom, rgba(8, 8, 10, 0.6), rgba(8, 8, 10, 1));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 850px;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(18, 19, 26, 0.9);
  border: 1px solid var(--color-gold-border);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--color-gold-bright);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.25rem auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

/* Feature Grid / Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--color-gold-border-bright);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-gold-glow);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #000;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image {
  transform: scale(1.04);
}

.card-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(8, 8, 10, 0.85);
  border: 1px solid var(--color-gold-border);
  color: var(--color-gold-bright);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature-bullet {
  color: var(--color-gold);
  font-weight: bold;
}

/* Infinite Scrolling Showcase Carousel */
.carousel-section {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-viewport::before,
.carousel-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.carousel-viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.carousel-viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.carousel-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: scrollTrack 35s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scrollTrack {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.carousel-item {
  width: 340px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.carousel-item:hover {
  border-color: var(--color-gold);
}

.carousel-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.carousel-content {
  padding: 1.25rem;
}

.carousel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.carousel-type {
  font-size: 0.8rem;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 600;
}

/* Studio Intro Banner */
.intro-banner {
  background-color: var(--bg-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.intro-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.intro-text {
  font-size: 1.25rem;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Realm Featured Page Styling */
.realm-banner-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-gold-border-bright);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  margin-bottom: 4rem;
}

.realm-hero-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

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

.realm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, rgba(18, 19, 26, 0.4) 60%, transparent 100%);
}

.realm-hero-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 5;
}

.realm-info-body {
  padding: 2.5rem;
  position: relative;
  z-index: 2;
  margin-top: -60px;
}

.realm-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.realm-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 850px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.realm-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.realm-feature-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.realm-feature-icon {
  color: var(--color-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Gallery Modal / Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.gallery-item {
  cursor: pointer;
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  max-width: 1000px;
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background-color: #000;
}

.lightbox-details {
  padding: 1.5rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--color-gold-border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Filter Controls */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-gold-border);
  color: var(--text-main);
}

.filter-btn.active {
  background-color: var(--color-gold-glow);
  border-color: var(--color-gold);
  color: var(--color-gold-bright);
}

/* About Page FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-gold-border);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-icon {
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.25rem;
}

/* About Story Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background-color: var(--color-gold);
}

.about-card-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.about-card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: #040405;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 450px;
}

.footer-tagline {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.footer-nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--color-gold-bright);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-subtle);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Rules */
@media (max-width: 868px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .realm-hero-wrapper {
    height: 280px;
  }

  .realm-title {
    font-size: 2rem;
  }
}
