:root {
  --zms-100: #98BAE3;
  --zms-300: #5981B1;
  --zms-500: #365475;
  --zms-700: #15273C;
  --zms-900: #020408;
  --bg: radial-gradient(1200px 600px at 10% -10%, rgba(152,186,227,.12), transparent 60%),
        radial-gradient(1000px 600px at 90% 0%, rgba(54,84,117,.22), transparent 55%),
        linear-gradient(180deg, #0e1623 0%, #0b0f14 100%);
  --text: #E8EEF9;
  --muted: #bcd1ee;
  --accent: #8ab4ff;
  --chip: #19273a;
  --round: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --deep-blue: #365475;
  --midnight-core: #05080f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  color: var(--text);
  background: transparent;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #5981B1, #365475);
  z-index: -1;
  pointer-events: none;
}
.page-wrap {
  isolation: isolate;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(14,22,35);
  border-bottom: 1px solid rgba(152,186,227,.18);
}

.site-header .inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
}

.brand img {
  height: 32px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav .btn {
  cursor: pointer;
}


/* Navigation Links - Desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(152, 186, 227, 0.1);
  color: var(--accent);
}

.nav-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #0f1928;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .14s ease, opacity .2s ease, border-color .14s ease;
  transform: translateY(0) scale(1);
}

.btn:hover {
  transform: translateY(-2px) scale(1);
}

.btn.primary {
  background: linear-gradient(135deg, #5981B1, #365475);
  color: #fff;
  border-color: rgba(152,186,227,.35);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hamburger Menu Button */
.hamburger {
  display: block;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform .14s ease, opacity .2s ease;
  position: relative;
  transform: translateY(0) scale(1);
}

.hamburger:hover {
  transform: translateY(-2px) scale(1);
}

.hamburger:focus {
  outline: none;
}

.hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s ease;
  position: absolute;
  left: 0;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Dropdown Menu */
nav {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: linear-gradient(180deg, rgba(21,39,60,.96), rgba(2,4,8,.9));
  border: 1px solid rgba(152,186,227,.16);
  border-radius: var(--round);
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 100;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
  font-weight: 600;
}

.dropdown-item:hover {
  background: rgba(152,186,227,.12);
  color: var(--accent);
}

/* Hide navigation links in dropdown on desktop */
.dropdown-nav-links {
  display: block;
}

@media (min-width: 961px) {
  .dropdown-nav-links {
    display: none;
  }
}


/* Hero */
.hero {
  width: 100%;
  margin: 0;
  padding: 40px 18px 30px;
  position: relative;
  min-height: 35vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background: linear-gradient(to right, rgba(0, 0, 4, 0.95) 0%, rgba(20, 30, 45, 0.7) 20%, rgba(20, 30, 45, 0.7) 80%, rgba(0, 0, 4, 0.95) 100%);
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0;
  padding: 0;
  flex: 1;
}

.hero-content {
  text-align: center !important;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(152,186,227,.2), rgba(89,129,177,.15));
  border: 2px solid rgba(152,186,227,.3);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 auto 2.5rem;
  box-shadow: 0 4px 20px rgba(152,186,227,.1);
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  margin: 0 auto 1rem;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -2px;
  text-align: center !important;
  width: 100%;
  display: block;
}

.hero-title-line {
  display: block;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 0.3rem;
  font-size: 0.5em;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center !important;
}

.hero-title-accent {
  display: block;
  color: #fff;
  font-weight: 900;
  text-shadow: 0 0 40px rgba(138,180,255,.3);
  text-align: center !important;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--accent);
  font-weight: 700;
  margin: 1.5rem auto 1rem;
  letter-spacing: -0.5px;
  text-align: center !important;
  width: 100%;
  display: block;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 0.625rem;
  line-height: 1.7;
  text-align: center !important;
  width: 100%;
  display: block;
}

.hero-graphics {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.hero-graphic-accent {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 30% 30%, rgba(152,186,227,.25) 0%, rgba(89,129,177,.15) 40%, transparent 70%);
  border-radius: 50%;
  position: relative;
  filter: blur(40px);
}

.hero-graphic-accent::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(138,180,255,.3) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(30px);
}

.hero-graphic-line {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 300px;
  background: linear-gradient(180deg, transparent 0%, var(--accent) 20%, var(--zms-100) 50%, var(--accent) 80%, transparent 100%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(138,180,255,.4);
}

/* Wave at bottom of hero */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  block-size: 30px;
  transform: scaleY(-1);
  background: radial-gradient(1200px 40px at 50% 0, rgba(152,186,227,.15), transparent 70%) no-repeat;
  mask: radial-gradient(1400px 40px at 50% 0, #000 60%, transparent 61%) top/100% 100%;
  -webkit-mask: radial-gradient(1400px 40px at 50% 0, #000 60%, transparent 61%) top/100% 100%;
  pointer-events: none;
  opacity: .7;
}

/* Sections */
.section {
  padding: 28px 18px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  border-bottom: none;
  border-top: none;
}

.section-title {
  margin-bottom: 2rem;
  color: var(--text);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  font-weight: 600;
}

/* Hero Section - Full-width background with centered text */
.hero-wrap {
  position: relative;
  width: 100%;
  min-height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero.home-hero {
  position: relative;
  width: 100%;
  min-height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.hero-landscape {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero background layers for day/night transition */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 5s ease-in-out;
  z-index: 1;
}

.hero-background-day {
  background-image: url('../images/zemew_landscape.png');
  opacity: 1;
  z-index: 2;
}

.hero-background-night {
  background-image: url('../images/zemew_landscape_night.png');
  opacity: 0;
  z-index: 1;
}

.hero-background-night.active {
  opacity: 1;
}

.hero-background-day.fade-out {
  opacity: 0;
}

/* Astrozaar scene container */
.astrozaar-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  pointer-events: none;
}

.astrozaar-container.revealed {
  opacity: 1;
}

#astrozaar-scene {
  width: 100%;
  height: 100%;
  display: block;
}

/* Logo trigger - no cursor change on hover */
.hero-headline {
  cursor: default;
}

.hero-headline:hover {
  cursor: default;
}

.hero-headline {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 auto;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 20px rgba(152, 186, 227, 0.8),
               0 0 40px rgba(89, 129, 177, 0.6),
               0 0 60px rgba(54, 84, 117, 0.4),
               0 4px 20px rgba(0, 0, 0, 0.6),
               0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: -1px;
}

img.hero-headline {
  display: block;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(89, 129, 177, 0.6)) 
          drop-shadow(0 0 20px rgba(54, 84, 117, 0.5))
          drop-shadow(0 0 30px rgba(54, 84, 117, 0.3));
  font-size: 0;
  line-height: 0;
  cursor: default;
}

img.hero-headline:hover {
  cursor: default;
}


.hero-tagline {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  margin: 16px auto 0;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 15px rgba(152, 186, 227, 0.7),
               0 0 30px rgba(89, 129, 177, 0.5),
               0 0 45px rgba(54, 84, 117, 0.3),
               0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 10;
}
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-headline {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 auto;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 20px rgba(152, 186, 227, 0.8),
               0 0 40px rgba(89, 129, 177, 0.6),
               0 0 60px rgba(54, 84, 117, 0.4),
               0 4px 20px rgba(0, 0, 0, 0.6),
               0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: -1px;
}
  line-height: 1.6;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 0;
}

.hero-primary-cta {
  margin-bottom: 0;
}

/* Button styling to match TekTinkers polish */
.hero-text .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(152,186,227, 0.1);
  background: rgba(12,20,32, 0.95);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  position: relative;
  overflow: visible;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
  transform: translateY(0) scale(1);
}

.hero-text .btn:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 12px 35px rgba(0,0,0,.45);
  border-color: rgba(152,186,227, 0.25);
  background: rgba(18,28,42, 0.95);
}

/* Primary buttons in hero section - blue gradient styling */
.hero-text .btn.primary,
.hero-primary-cta .btn {
  background: linear-gradient(135deg, var(--zms-300), var(--zms-500));
  color: #fff;
  border-color: rgba(152,186,227, 0.35);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(89,129,177, 0.25);
}

.hero-text .btn.primary:hover,
.hero-primary-cta .btn:hover {
  background: linear-gradient(135deg, var(--zms-100), var(--zms-300));
  box-shadow: 0 12px 35px rgba(89,129,177, 0.4);
  border-color: rgba(152,186,227, 0.5);
  transform: translateY(-2px) scale(1);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art .illustration {
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border: 1px solid rgba(152,186,227, 0.1);
  display: block;
  object-fit: cover;
}

@media (max-width: 1000px) {
  .hero.home-hero {
    display: flex;
    flex-direction: column;
  }
  .hero.home-hero .hero-art {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .hero.home-hero .illustration {
    max-width: min(540px, 90vw);
  }
  .hero-text {
    text-align: center;
  }
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
}

/* Projects Section */
.projects-section {
  padding: 60px 18px;
  margin-bottom: 20px;
  scroll-margin-top: 100px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 2rem;
  margin-bottom: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Project Card (Zemew Studios, etc.) */
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-card .project-image {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.project-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.6em;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.project-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1em;
  line-height: 1.5;
}

/* Astrozaar Game Card */
.game-card-az {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background: linear-gradient(to right, #1e3a5f, var(--midnight-core));
  border-radius: 12px;
  padding: 2rem;
  min-height: 300px;
  width: 100%;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 2;
  cursor: default;
}

.game-card-az:hover {
  box-shadow: 0 0 12px rgba(100,150,255,0.4);
  transform: translateY(-5px) scale(1.01);
}

.game-card-az:focus {
  outline: none;
}

.game-card-az:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.star-canvas,
.meteor-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0 !important;
}

.game-card-content {
  position: relative;
  z-index: 1;
  z-index: 10 !important;
}

.game-card-content img,
.game-card-description {
  position: relative;
  z-index: 11 !important;
}

.game-card-content img {
  border-radius: 8px;
}

.game-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 12px 0 8px 0;
  line-height: 1.2;
}

.game-card-button-container {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.game-card-play-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #8ab4ff, #5981B1);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(152, 186, 227, 0.35);
}

.game-card-play-btn:hover {
  background: linear-gradient(135deg, #9ac4ff, #6a91c1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 180, 255, 0.4);
}

.game-card-cp .game-card-play-btn {
  background: linear-gradient(135deg, #325c6a, #6a9a9e);
  border-color: rgba(155, 198, 191, 0.9);
}

.game-card-cp .game-card-play-btn:hover {
  background: linear-gradient(135deg, #426c7a, #7aaaae);
  box-shadow: 0 4px 12px rgba(50, 92, 106, 0.4);
}


.game-card-az p {
  position: relative;
  z-index: 11;
}

.game-card-description {
  color: var(--text);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.game-card-cp {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background: linear-gradient(to right, #325c6a, #28345a);
  border-radius: 12px;
  padding: 2rem;
  min-height: 300px;
  width: 100%;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 2;
}

.game-card-cp:hover {
  box-shadow: 0 0 12px rgba(155, 198, 191, 0.4);
  transform: translateY(-5px) scale(1.01);
}

.cp-bubble-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0 !important;
}

.game-card-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, 120px);
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  width: 75%;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
  align-content: start;
}

.game-card-buttons > div {
  width: 120px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  position: relative !important;
}

.game-card-button {
  display: block !important;
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(152,186,227,.35) !important;
  border-width: 1px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  transform: none !important;
  box-shadow: none !important;
  outline: none !important;
  position: relative !important;
  text-align: center !important;
}

nav .game-card-button {
}
.game-card-button:hover span,
.game-card-button:focus span,
.game-card-button:active span {
  transform: translate(-50%, -50%) !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
}


.game-btn {
  display: block;
  width: 120px;
  height: 40px;
  line-height: 40px;
  padding: 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid;
  box-sizing: border-box;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex: 0 0 120px;
}

.game-btn-primary,
.game-btn-secondary,
.game-btn-accent {
  width: 120px;
  height: 40px;
  line-height: 40px;
  padding: 0;
  border-width: 1px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.game-btn-primary {
  background: linear-gradient(135deg, #5981B1, #365475);
  color: #fff;
  border-color: rgba(152,186,227,.35);
  transform: translateY(0) scale(1);
}

.game-btn-primary:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 4px 12px rgba(89,129,177,.4);
}

.game-btn-secondary {
  background: rgba(21,39,60,.86);
  color: var(--text);
  border-color: rgba(152,186,227,.3);
  transform: translateY(0) scale(1);
}

.game-btn-secondary:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 4px 12px rgba(152,186,227,.2);
}

.game-btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--zms-300));
  color: #fff;
  border-color: rgba(138,180,255,.4);
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  line-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transform: translateY(0) scale(1);
}

.game-btn-accent:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 4px 12px rgba(138,180,255,.4);
  background: linear-gradient(135deg, #9ac4ff, #6a91c1);
}


/* News Section */
.news-section {
  padding: 60px 18px;
  background: transparent;
  border-bottom: none;
  scroll-margin-top: 100px;
}

.news-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 2rem;
}

/* News Post Card Styles */
.news-post-card {
  background: linear-gradient(180deg, rgba(21,39,60,.86), rgba(2,4,8,.35));
  border: 1px solid rgba(152,186,227,.16);
  border-radius: var(--round);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 75%;
  margin: 0 auto;
}

.news-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.news-post-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.news-post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(152,186,227,.2);
  flex-shrink: 0;
}

.news-post-meta {
  flex: 1;
}

.news-post-title {
  margin: 0 0 8px 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text);
  font-weight: 700;
}

.news-post-author-date {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.news-post-content {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.news-post-content p {
  margin: 0 0 12px 0;
}

.news-post-content p:last-child {
  margin-bottom: 0;
}

.news-post-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(152,186,227,.1);
}

.news-post-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-post-link:hover {
  color: var(--zms-100);
  text-decoration: underline;
}

.card {
  background: transparent;
  border: none;
  border-radius: var(--round);
  padding: 18px;
  box-shadow: none;
}

.card h3 {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text);
}

.muted {
  color: var(--muted);
}


.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  display: inline-block;
  padding: .25rem .6rem;
  background: var(--chip);
  border: 1px solid rgba(152,186,227,.18);
  color: var(--text);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
}

/* Back to Top FAB */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: var(--zms-500);
  border: 1px solid rgba(152,186,227,.3);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--zms-300);
  border-color: rgba(152,186,227,.5);
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 720px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Back to Top button for gaming page */
#toTop {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: linear-gradient(135deg, var(--zms-300), var(--zms-500));
  color: #fff;
  border: 1px solid rgba(152,186,227, 0.35);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 99999;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transform: translateY(0);
}

#toTop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(89,129,177, 0.5), 0 4px 12px rgba(0,0,0,0.4);
}

#toTop:hover {
  background: linear-gradient(135deg, var(--zms-100), var(--zms-300));
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(89,129,177, 0.5), 0 4px 12px rgba(0,0,0,0.4);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 26px 18px;
  background: rgb(14,22,35);
  text-align: center;
  color: var(--muted);
  position: relative;
  z-index: 10;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
  }

  .hero-graphics {
    display: none;
  }
}
@media (max-width: 720px) {
  .hero {
    min-height: 30vh;
    padding: 160px 16px 70px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 8px 18px;
    margin: 0 auto 2rem;
    text-align: center;
  }

  .hero-title {
    margin: 0 auto 0.8rem;
    text-align: center;
  }

  .hero-subtitle {
    margin: 1rem auto 0.8rem;
    text-align: center;
  }

  .hero-tagline {
    margin: 0 auto 2rem;
    text-align: center;
  }

  .site-header .inner {
    flex-wrap: wrap;
  }

  nav {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Wire Section - Latest on the Wire */
/* GPU-Free Gaming Section */
.gpu-free-section {
  padding: 60px 20px;
  margin-top: 20px;
  position: relative;
}

.gpu-free-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.nvidia-card {
  position: relative;
  background-image: url('../gaming/images/nvidia_wallpaper.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  min-height: 300px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nvidia-card-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.nvidia-card-half:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nvidia-card-half a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  transition: transform 0.3s ease;
  padding: 20px;
}

.nvidia-card-half a:hover {
  transform: scale(1.05);
}

.nvidia-card-half img {
  max-width: 80%;
  max-height: 200px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
  .nvidia-card {
    flex-direction: column;
    min-height: auto;
    padding: 20px;
    background-size: cover;
    background-position: center;
  }
  .nvidia-card-half {
    min-height: 180px;
    flex: 1 1 auto;
  }
  .nvidia-card-half:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nvidia-card-half img {
    max-width: 70%;
    max-height: 120px;
  }
  .nvidia-card-half a {
    padding: 15px;
  }
  .nvidia-card-half span {
    font-size: 1.8em !important;
  }
}

/* Twitch Streamers Section */
.twitch-streamers-section {
  padding: 60px 20px;
}

.twitch-streamers-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.twitch-streamers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.twitch-streamer-card {
  display: block;
  position: relative;
  background: linear-gradient(135deg, #3a1f5a 0%, #5a2da9 100%);
  border: 2px solid rgba(90, 45, 169, 0.4);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(90, 45, 169, 0.5);
  padding: 12px;
}

.twitch-streamer-card.hidden {
  display: none;
}

.twitch-streamer-card .twitch-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #eb0400;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  display: none;
}

.twitch-streamer-card.live .twitch-live-badge {
  display: block;
}

.twitch-streamer-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #2a1540 0%, #4a2580 100%);
  border-color: rgba(90, 45, 169, 0.7);
  box-shadow: 0 6px 20px rgba(90, 45, 169, 0.7);
}

.twitch-streamer-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 3px solid rgba(90, 45, 169, 0.6);
}

.twitch-preview-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  margin: 3px;
  object-fit: cover;
  border-radius: 5px;
  background: rgba(90, 45, 169, 0.2);
}

.twitch-preview-img[src*="twitch_purple.png"] {
  object-fit: contain;
  object-position: center;
  opacity: 0.7;
  padding: 40px;
  background: rgba(90, 45, 169, 0.3);
}

.twitch-live-embed {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border: none;
  border-radius: 5px;
  min-width: 0;
  min-height: 0;
}

.twitch-live-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 5px;
}

.twitch-play-overlay {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.twitch-play-overlay:hover {
  background: rgba(0,0,0,0.4);
}

.twitch-play-overlay.hidden {
  display: none;
}

.twitch-streamer-info {
  padding: 8px 12px;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.twitch-logo-small {
  width: 24px;
  height: auto;
  opacity: 0.9;
}

.twitch-streamer-name {
  margin: 0;
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .twitch-streamers-grid {
    grid-template-columns: 1fr;
  }
}

.wire-section {
  padding: 60px 20px;
}

.wire-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.wire-card {
  background: rgba(14, 22, 35, 0.6);
  border: 1px solid rgba(152, 186, 227, 0.15);
  border-radius: var(--round);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wire-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(152, 186, 227, 0.3);
}

.wire-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.wire-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: rgba(14, 22, 35, 0.8);
}

.wire-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wire-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wire-card:hover .wire-card-play {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.wire-card-content {
  padding: 16px;
}

.wire-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.wire-card-source {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.wire-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
}
.wire-section-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  position: relative;
}

.wire-section-actions::before,
.wire-section-actions::after {
  content: '';
  flex: 1;
  max-width: 150px;
  height: 2px;
  background: rgba(152, 186, 227, 0.3);
}

.wire-section-actions::before {
  margin-right: 16px;
  background: linear-gradient(to right, transparent, rgba(152, 186, 227, 0.3));
}

.wire-section-actions::after {
  margin-left: 16px;
  background: linear-gradient(to left, transparent, rgba(152, 186, 227, 0.3));
}

.wire-refresh-btn,
.wire-view-all-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.wire-refresh-btn {
  background: var(--deep-blue);
  color: var(--text);
}

.wire-refresh-btn:hover {
  background: var(--zms-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wire-view-all-btn {
  background: var(--accent);
  color: #fff;
}

.wire-view-all-btn:hover {
  background: #6a9eff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 180, 255, 0.4);
}

.wire-view-all-btn .arrow {
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.wire-view-all-btn:hover .arrow {
  transform: translateX(4px);
}


/* Community Section */
.community-section {
  padding: 60px 20px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* About Zemew Studios Section */
.about-studios-section {
  padding: 60px 20px;
  margin-top: 40px;
  text-align: center;
}

.about-studios-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
}

.about-studios-content .project-card {
  flex-shrink: 0;
  min-width: 280px;
}

.about-studios-logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-shrink: 0;
}



.about-studios-logo a {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.about-studios-logo a:hover {
  opacity: 1;
  transform: scale(1.05);
}

.studios-logo-img {
  max-width: 200px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.studios-logo-img:hover {
  opacity: 1;
}

.about-studios-text {
  flex: 1;
  text-align: center;
}

.about-studios-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .about-studios-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .about-studios-logo {
    justify-content: center;
  }
  
  .about-studios-text {
    text-align: center;
  }
  
  .studios-logo-img {
    max-width: 150px;
  }
  
  .about-studios-description {
    font-size: 1rem;
  }
}


.community-card {
  background: rgba(14, 22, 35, 0.6);
  border: 1px solid rgba(152, 186, 227, 0.15);
  border-radius: var(--round);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(152, 186, 227, 0.3);
}

.community-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.community-card-content {
  padding: 24px;
}

.community-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.4;
}

.community-card-excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.community-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.community-card-author {
  font-weight: 500;
}

.community-card-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}


.community-card-date {
  opacity: 0.8;
}

.community-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
}

/* Responsive adjustments for Wire and Community sections */
@media (max-width: 960px) {
  .wire-grid {
    grid-template-columns: repeat(2, 1fr);

  align-items: center;
  position: relative;
}

.wire-section-actions::before,
.wire-section-actions::after {
  content: '';
  flex: 1;
  max-width: 150px;
  height: 2px;
  background: rgba(152, 186, 227, 0.3);
}

.wire-section-actions::before {
  margin-right: 16px;
  background: linear-gradient(to right, transparent, rgba(152, 186, 227, 0.3));
}

.wire-section-actions::after {
  margin-left: 16px;
  background: linear-gradient(to left, transparent, rgba(152, 186, 227, 0.3));
}
  
  /* GPU-Less Gaming Reference Section */
/* GPU-Less Gaming Reference Section */
.gpu-gaming-ref-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.08) 0%, rgba(90, 45, 169, 0.12) 50%, rgba(58, 31, 90, 0.08) 100%);
  position: relative;
  overflow: hidden;
}

.gpu-gaming-ref-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/nvidia_wallpaper.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.gpu-gaming-ref-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(118, 185, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gpu-gaming-ref-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.15) 0%, rgba(90, 45, 169, 0.25) 50%, rgba(58, 31, 90, 0.15) 100%);
  border: 2px solid rgba(118, 185, 0, 0.5);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(118, 185, 0, 0.2), 0 4px 20px rgba(90, 45, 169, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.gpu-gaming-ref-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(118, 185, 0, 0.8), transparent);
  animation: shimmer 3s infinite;
}

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

.gpu-gaming-ref-card:hover {
  transform: translateY(-5px);
  border-color: rgba(118, 185, 0, 0.8);
  box-shadow: 0 15px 50px rgba(118, 185, 0, 0.3), 0 8px 30px rgba(90, 45, 169, 0.4);
}

.gpu-gaming-ref-content {
  position: relative;
  z-index: 2;
}

.gpu-gaming-ref-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(118, 185, 0, 0.4));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.gpu-gaming-ref-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.gpu-gaming-ref-text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.gpu-gaming-ref-link {
  color: #76b900;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 3px solid rgba(118, 185, 0, 0.6);
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(118, 185, 0, 0.3);
}

.gpu-gaming-ref-link:hover {
  color: #8dd200;
  border-bottom-color: rgba(141, 210, 0, 0.9);
  text-shadow: 0 2px 6px rgba(118, 185, 0, 0.5);
}

.gpu-gaming-ref-subtext {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(152, 186, 227, 0.9);
  margin: 12px 0 24px 0;
  font-style: italic;
  font-weight: 500;
}

.gpu-gaming-ref-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #76b900 0%, #5a9100 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  border-radius: 8px;
  border: 2px solid rgba(118, 185, 0, 0.8);
  box-shadow: 0 4px 15px rgba(118, 185, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gpu-gaming-ref-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #8dd200 0%, #6ba500 100%);
  box-shadow: 0 6px 20px rgba(118, 185, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(141, 210, 0, 1);
}

@media (max-width: 768px) {
  .gpu-gaming-ref-card {
    padding: 35px 25px;
  }
  
  .gpu-gaming-ref-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }
}

/* Live Streamers Reference Section */
.streamers-ref-section {
  padding: 60px 20px;
}

.streamers-ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.streamer-ref-card {
  background: linear-gradient(135deg, #3a1f5a 0%, #5a2da9 100%);
  border: 2px solid rgba(90, 45, 169, 0.4);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(90, 45, 169, 0.5);
  padding: 12px;
  display: block;
}

.streamer-ref-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #2a1540 0%, #4a2580 100%);
  border-color: rgba(90, 45, 169, 0.7);
  box-shadow: 0 6px 20px rgba(90, 45, 169, 0.7);
}

.streamer-ref-preview {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 3px solid rgba(90, 45, 169, 0.6);
}

.streamer-ref-img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  margin: 3px;
  object-fit: cover;
  border-radius: 5px;
  background: rgba(90, 45, 169, 0.2);
}

.streamer-ref-img[src*="twitch_purple.png"] {
  object-fit: contain;
  object-position: center;
  opacity: 0.7;
  padding: 40px;
  background: rgba(90, 45, 169, 0.3);
}

.streamer-ref-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  text-align: center;
}

.streamer-ref-logo {
  width: 24px;
  height: auto;
  opacity: 0.9;
}

.streamer-ref-name {
  margin: 0;
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .streamers-ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

  .community-grid {
    grid-template-columns: 1fr;
  }
}

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

/* New Hero Styles for Full-width Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-landscape {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-headline {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 auto;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 20px rgba(152, 186, 227, 0.8),
               0 0 40px rgba(89, 129, 177, 0.6),
               0 0 60px rgba(54, 84, 117, 0.4),
               0 4px 20px rgba(0, 0, 0, 0.6),
               0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  .hero-wrap {
    min-height: 30vh;
  width: 100%;
  
  .hero.home-hero {
    min-height: 30vh;  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  }
  
  .hero-headline {
    font-size: clamp(32px, 8vw, 48px);
  }
}
