/* ==========================================================================
   WAYCORE STUDIO - STYLESHEET
   Clean Modern Sans-Serif | Supergiant Games Inspired Game Showcase
   ========================================================================== */

/* --- Custom Properties & Design Tokens --- */
:root {
  --bg-primary: #07080a;
  --bg-secondary: #0c0e13;
  --bg-card: #11141b;
  --bg-card-hover: #161922;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(229, 169, 60, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #e5a93c;

  --accent-gold: #e5a93c;
  --accent-gold-hover: #f3c068;
  --accent-yellow: #fbbf24;
  --accent-red: #c73b3b;
  --accent-red-hover: #d64646;

  --font-sans: 'Plus Jakarta Sans', 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --nav-height: 74px;
  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 25px rgba(229, 169, 60, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 15%, rgba(229, 169, 60, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.3) 0%, rgba(7, 8, 10, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
  z-index: 2;
}

/* Section Header Typography (All Modern Sans-Serif) */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 0.65rem;
}

.section-tag::before {
  /*content: '';
  width: 16px;
  height: 2px;
  background-color: var(--text-accent);
  display: inline-block;*/
  display: none;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 3.5rem;
  font-weight: 300;
}

.section {
  padding: 5rem 0;
  position: relative;
  z-index: 2;
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), height var(--transition-fast);
  background: rgba(7, 8, 10, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar.scrolled {
  background: rgba(7, 8, 10, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: 66px;
}

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

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon-btn:hover {
  background: rgba(229, 169, 60, 0.15);
  color: var(--accent-gold);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- COMPACT HERO / LANDING SECTION --- */
.hero-section {
  position: relative;
  min-height: 36vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  padding-bottom: 2rem;
  overflow: hidden;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-background-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.38) contrast(1.15);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(7, 8, 10, 0.45) 0%, rgba(7, 8, 10, 0.2) 50%, #07080a 100%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, rgba(7, 8, 10, 0.75) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo-center {
  max-width: 760px;
  width: 88%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.95));
  animation: fadeIn 1s ease forwards;
  image-rendering: -webkit-optimize-contrast;
}

/* --- WHO WE ARE SECTION (BORDERLESS & CLEAN) --- */
.about-section {
  background-color: var(--bg-primary);
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.about-pitch-text {
  font-size: 1.25rem;
  line-height: 1.85;
  color: #cbd5e1;
  font-weight: 300;
  max-width: 860px;
}

/* --- GAMES HEADER SECTION --- */
.games-header-section {
  padding-top: 5rem;
  padding-bottom: 1.5rem;
  background-color: var(--bg-primary);
}

/* --- SUPERGIANT STYLE FULL-WIDTH GAME SECTIONS (NO BORDER, DARKENED BG) --- */
.game-fullwidth-section {
  position: relative;
  width: 100%;
  padding: 5.5rem 0;
  overflow: hidden;
  background-color: #06070a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.game-fullwidth-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.game-fullwidth-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5) contrast(1.1);
  transition: transform 1.2s ease;
}

.game-fullwidth-section:hover .game-fullwidth-bg-img {
  transform: scale(1.02);
}

.game-fullwidth-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(7, 8, 10, 0.5) 0%, rgba(7, 8, 10, 0.25) 50%, rgba(7, 8, 10, 0.75) 100%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, rgba(7, 8, 10, 0.7) 100%);
  pointer-events: none;
}

.game-row-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: center;
}

/* Left: Capsule presentation */
.game-capsule-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.game-capsule-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.game-capsule-img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.95);
}

.capsule-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1.15rem;
  background: rgba(18, 21, 28, 0.8);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.capsule-expand-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

/* Right: Game details */
.game-details-col {
  display: flex;
  flex-direction: column;
}

.game-title {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.game-synopsis {
  color: #cbd5e1;
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.5rem;
  max-width: 650px;
}

/* Supergiant style colored accent divider line */
.game-accent-divider {
  width: 100%;
  max-width: 650px;
  height: 2px;
  margin-bottom: 1.75rem;
}

.divider-red {
  background: linear-gradient(90deg, #dc2626 0%, rgba(220, 38, 38, 0.2) 100%);
}

.divider-amber {
  background: linear-gradient(90deg, #eab308 0%, rgba(234, 179, 8, 0.2) 100%);
}

.game-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-pill-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-pill-value {
  color: #fff;
}

.game-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.game-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.game-feature-bullet-gold {
  color: var(--accent-gold);
  margin-top: 1px;
}

.game-feature-bullet-red {
  color: var(--accent-red);
  margin-top: 1px;
}

.game-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.game-cta-group .btn {
  flex: 1 1 auto;
}

/* Button Variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gold);
  color: #07080a;
  border: 1px solid var(--accent-gold);
  box-shadow: 0 4px 20px rgba(229, 169, 60, 0.3);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 169, 60, 0.45);
}

.btn-primary-red {
  background: var(--accent-red);
  color: #07080a;
  border: 1px solid var(--accent-red);
  box-shadow: 0 4px 20px rgba(229, 71, 60, 0.3);
}

.btn-primary-red:hover {
  background: var(--accent-red-hover);
  border-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 66, 60, 0.45);
}

/* --- CONTACT SECTION --- */
.contact-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.contact-simple-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.contact-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  text-align: left;
  margin-bottom: 2.5rem;
}

.contact-box-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(7, 8, 10, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(229, 169, 60, 0.2);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-feedback {
  font-size: 0.875rem;
  display: none;
}

.form-feedback.success {
  display: block;
  color: #34d399;
}

.form-feedback.error {
  display: block;
  color: var(--accent-red);
}

/* Email Underneath Contact Box */
.contact-email-underneath {
  /*display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2.25rem;
  background: rgba(18, 21, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);*/
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  gap: 0.1rem;
}

.contact-email-underneath:hover {
  /*border-color: var(--border-accent);
  background: rgba(18, 21, 28, 0.9);*/

  background: rgba(18, 21, 28, 0);
}

.email-label-sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.email-address-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.email-address-link:hover {
  color: var(--accent-gold-hover);
  text-decoration: underline;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #040507;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2.5rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.footer-logo:hover {
  transform: scale(1.03);
}

.footer-nav-simple {
  display: flex;
  gap: 2rem;
}

.footer-nav-simple a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav-simple a:hover {
  color: var(--accent-gold);
}

.copyright-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 5, 7, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-subtle);
}

.lightbox-caption {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--accent-red);
  transform: rotate(90deg);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-accent);
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .game-row-grid {
    grid-template-columns: 320px 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Mobile Drawer Menu */
  .mobile-drawer {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(7, 8, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-drawer.active {
    transform: translateX(0);
  }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-nav-link {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    color: var(--accent-gold);
  }

  .game-row-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .game-capsule-col {
    align-items: center;
  }

  .game-capsule-img {
    max-width: 380px;
  }

  .contact-box-card {
    padding: 2rem 1.5rem;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-email-underneath {
    padding: 1rem 1.25rem;
    width: 100%;
  }

  .email-address-link {
    font-size: 1.05rem;
    word-break: break-all;
  }

  .hero-logo-center {
    max-width: 90%;
  }

  .footer-logo {
    height: 44px;
  }
  
}
