/* ==========================================================================
   00. SETUP
   - CSS Custom Properties (Variables)
   - Resets & Box-Sizing
   - Base Body & Typography
   ========================================================================== */
:root {
  --bg-color: #08101a;
  --primary-text-color: #e5e7eb;
  --heading-text-color: #ffffff;
  --accent-color: #00dee8;
  --secondary-accent-color: #4b5563;
  --font-inter: "Inter", sans-serif;
  --max-content-width: 1100px;
  --section-padding-y: 80px;
  --card-padding: 30px;
  --border-radius: 8px;
  --peek-height-offset: 80px;
  --dynamic-header-height: 90px;
  --transition-speed: 0.3s;
}

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

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

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--heading-text-color);
  margin-bottom: 0.8em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(3.2rem, 5.5vw, 5.2rem);
}
h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
}
h3 {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}
h4 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  margin-bottom: 1em;
}

strong {
  color: var(--heading-text-color);
  font-weight: 700;
}

em {
  font-style: italic;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}
a:hover {
  color: var(--heading-text-color);
}

/* ==========================================================================
   01. UTILITY & LAYOUT CLASSES
   ========================================================================== */
.section {
  padding: var(--section-padding-y) 20px;
}

.container {
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
}

.container--narrow {
  max-width: 750px;
}

.text-center {
  text-align: center;
}

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

.section-heading {
  position: relative;
  text-align: center;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-heading.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.section-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: var(--accent-color);
  margin: 0.5em auto 0;
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(0, 222, 232, 0.6);
  animation: pulse-line 2s infinite alternate ease-in-out;
}

/* ==========================================================================
   02. REUSABLE COMPONENTS
   ========================================================================== */
/* --- Buttons --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  background-color: var(--accent-color);
  color: var(--bg-color);
  font-weight: 700;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.cta-button:hover {
  background-color: var(--heading-text-color);
  color: var(--accent-color);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 222, 232, 0.5), 0 0 20px rgba(0, 222, 232, 0.3);
}

.cta-button:hover::before {
  transform: translateX(100%);
}

.cta-button:active {
  transform: translateY(-1px) scale(1.01);
}

.details-button {
  margin-top: auto;
  padding: 12px 24px;
  background-color: transparent;
  border: 1px solid var(--primary-text-color);
  color: var(--primary-text-color);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius);
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.details-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 222, 232, 0.1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.details-button:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 222, 232, 0.2);
}

.details-button:hover::before {
  transform: scaleX(1);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid--packages {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--secondary-accent-color);
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 222, 232, 0.15);
}

.card .card-icon-wrapper {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.8rem;
  line-height: 1;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.card.animate-in .card-icon-wrapper {
  transform: scale(1);
}

.card:hover .card-icon-wrapper {
  transform: scale(1.05);
}

.card .card-icon {
  position: relative;
  color: transparent;
  text-shadow: 0 0 10px var(--accent-color);
}

.card .card-icon::before {
  position: absolute;
  left: 0;
  content: attr(name);
  text-shadow: 0 0 0 var(--bg-color);
}

.card h4 {
  margin-bottom: 15px;
}
.card p {
  font-size: 1rem;
  text-align: left;
}

.card--advantage h4 {
  color: var(--accent-color);
}
.card--package .package-description {
  color: var(--primary-text-color);
  margin-bottom: 20px;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  margin-bottom: 60px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--secondary-accent-color);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.comparison-table.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.comparison-table th,
.comparison-table td {
  border: 1px solid var(--secondary-accent-color);
  padding: 18px;
  text-align: left;
}

.comparison-table th {
  background-color: rgba(75, 85, 99, 0.2);
  color: var(--heading-text-color);
  font-weight: 700;
}

.comparison-table td {
  background-color: rgba(0, 0, 0, 0.1);
}
.comparison-table tbody tr:nth-child(even) td {
  background-color: rgba(0, 0, 0, 0.2);
}
.comparison-table tbody tr {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.comparison-table tbody tr:hover {
  background-color: rgba(0, 222, 232, 0.03);
}.comparison-table .gamecatapult-column {
  color: var(--accent-color);
  font-weight: 700;
  position: relative;
}
.comparison-table .gamecatapult-column::before {
  content: "✔";
  color: var(--accent-color);
  margin-right: 8px;
  font-size: 1.2em;
  line-height: 1;
  vertical-align: middle;
}

/* --- Special Effects --- */
.statistic-highlight {
  color: var(--accent-color);
  font-weight: 700;
  text-shadow: 0 0 5px rgba(0, 222, 232, 0.3);
  transition: text-shadow 0.3s ease;
}

.statistic-highlight:hover {
  text-shadow: 0 0 8px rgba(0, 222, 232, 0.5);
}

.spark-container {
  position: relative;
  display: inline-block;
}
.spark-text {
  color: var(--accent-color);
  position: relative;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 222, 232, 0.6);
  animation: spark-pulse 1.8s infinite alternate ease-in-out;
}

/* Animation classes for scroll-triggered animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 16, 26, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
body.modal-open .modal-overlay {
  display: flex;
}
.modal-content {
  position: relative;
  background-color: var(--bg-color);
  padding: 40px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 10px 40px rgba(0, 222, 232, 0.2);
  border-radius: var(--border-radius);
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--primary-text-color);
  transform: scale(0.95);
  opacity: 0;
  animation: modal-fade-in 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.modal-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  color: var(--secondary-accent-color);
  cursor: pointer;
  transition: color var(--transition-speed) ease, transform 0.2s ease;
  font-size: 2.5rem;
  line-height: 1;
  z-index: 10;
}
.modal-close-button:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}
#modal-title {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 1.5em;
  font-size: clamp(1.6rem, 2.2vw, 1.8rem);
}
#modal-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--accent-color);
  margin: 0.5em auto 0;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(0, 222, 232, 0.6);
}
#modal-body p {
  font-size: clamp(0.95rem, 1vw, 1rem);
  margin-bottom: 1.5em;
  line-height: 1.7;
}

/* ==========================================================================
   03. HEADER & FOOTER
   ========================================================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: transparent;
  backdrop-filter: blur(5px);
  transition: background-color 0.4s ease, border-bottom 0.4s ease;
  z-index: 1000;
}
#main-header.scrolled {
  background-color: rgba(8, 16, 26, 0.9);
  border-bottom: 1px solid var(--secondary-accent-color);
}
#main-header.scrolled .nav-cta {
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 8px rgba(0, 222, 232, 0.6);
  transition: border var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}
#main-header.scrolled .nav-cta:hover {
  box-shadow: 0 0 15px rgba(0, 222, 232, 0.8), 0 0 25px rgba(0, 222, 232, 0.6);
}
.logo-wrapper img {
  height: 50px;
  vertical-align: middle;
}
nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}
nav ul li {
  margin-left: 30px;
  display: flex;
  align-items: center;
}
nav ul li a:not(.cta-button) {
  color: var(--primary-text-color);
  font-weight: 400;
  font-size: 1.1rem;
  padding: 5px 0;
  line-height: 1.5;
  position: relative;
  transition: color 0.2s ease;
}

nav ul li a:not(.cta-button)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

nav ul li a:not(.cta-button):hover {
  color: var(--accent-color);
}

nav ul li a:not(.cta-button):hover::after {
  width: 100%;
}
nav .nav-cta {
  padding: 10px 20px;
  font-size: 1rem;
}

main {
  padding-top: var(--dynamic-header-height);
}

/* --- Footer (for injected content) --- */
#main-footer-content {
  background-color: #040a12;
  border-top: 1px solid var(--secondary-accent-color);
  padding: 60px 20px;
  color: var(--primary-text-color);
}
.footer-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
}
.footer-top {
  text-align: center;
  margin-bottom: 50px;
}
.footer-logo-wrapper img {
  height: 45px;
  margin-bottom: 15px;
}
.footer-tagline {
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 222, 232, 0.4);
}
.footer-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
  text-align: left;
}
.footer-column h4 {
  color: var(--heading-text-color);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-column ul {
  list-style: none;
}
.footer-column li {
  margin-bottom: 12px;
}
.footer-column a {
  color: var(--primary-text-color);
}
.footer-column a:hover {
  color: var(--accent-color);
}
.footer-column .footer-cta-item {
  margin-top: 20px;
}
.footer-column .footer-cta-item a {
  font-weight: 700;
  color: var(--accent-color);
}
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--secondary-accent-color);
  font-size: 0.9rem;
  color: var(--secondary-accent-color);
}

#hamburger-menu-button,
#mobile-nav,
#nav-overlay {
  display: none;
}

/* ==========================================================================
   04. PAGE-SPECIFIC STYLES
   ========================================================================== */
/* --- #hero Section --- */
#hero {
  min-height: calc(
    100vh - var(--dynamic-header-height) - var(--peek-height-offset)
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at center,
    rgba(0, 222, 232, 0.05) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  opacity: 0.1;
  z-index: -1;
}
#hero h1 {
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(0, 222, 232, 0.4);
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeInUp 0.8s ease 0.2s forwards;
}
#hero h2 {
  color: var(--primary-text-color);
  margin-bottom: 60px;
  max-width: 700px;
  font-weight: 400;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeInUp 0.8s ease 0.5s forwards;
}
.hero-background-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(360px, 48vw, 720px);
  height: auto;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
  animation: pulsate-background-logo 6s infinite ease-in-out;
}
.scroll-down-indicator-wrapper {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 50;
  animation: bounce 1.5s infinite ease-in-out;
}
.scroll-down-indicator {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  opacity: 0.7;
  cursor: pointer;
  transform: rotate(45deg);
}

/* --- #problem-agitate Section --- */
#problem-agitate {
  padding-top: 0;
}
#problem-agitate h3:not(:first-of-type) {
  margin-top: 2em;
}
#problem-agitate p {
  margin-bottom: 1.5em;
}

/* --- #why-me Section --- */
#why-me .advantage-card h4 {
  text-align: left;
}
#why-me .advantage-card p {
  text-align: left;
  font-size: 1rem;
}

/* --- #pricing-note Section --- */
#pricing-note p {
  margin-bottom: 1.5em;
}

/* --- #final-cta Section --- */
#final-cta {
  background-color: rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--secondary-accent-color);
  border-bottom: 1px solid var(--secondary-accent-color);
}
#final-cta h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 25px;
}
#final-cta .container--narrow:not(.text-center) p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  margin-bottom: 1.5em;
  line-height: 1.7;
}

#final-cta .container--narrow.text-center p {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    margin-bottom: 40px;
}

.path-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}
.path-card {
  flex: 1 1 45%;
  max-width: 450px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--secondary-accent-color);
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-speed) ease,
    background-color var(--transition-speed) ease,
    transform var(--transition-speed) ease;
}
.path-card p {
  margin-bottom: 0.8em;
  font-size: 1rem;
  line-height: 1.5;
}
.path-card strong {
  display: block;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}
.path-card--negative {
  border-color: #6d6d6d;
  background-color: rgba(0, 0, 0, 0.3);
}
.path-card--negative::before {
  content: "☠️";
  color: #ff4d4d;
  opacity: 0.15;
  animation: pulse-dark 2s infinite ease-in-out alternate;
  font-family: sans-serif;
  font-size: 3em;
  position: absolute;
  top: 20px;
  right: 20px;
  line-height: 1;
}
.path-card--positive {
  border-color: var(--accent-color);
  background-color: rgba(0, 222, 232, 0.05);
}
.path-card--positive:hover {
  transform: translateY(-4px) scale(1.015);
  z-index: 2;
}
.path-card--positive::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 45%;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(0, 222, 232, 0.22) 0%,
    rgba(0, 222, 232, 0.13) 40%,
    rgba(0, 222, 232, 0.08) 70%,
    transparent 100%
  );
  filter: blur(48px);
  transition: opacity 1.2s cubic-bezier(0.4, 1.2, 0.6, 1);
  z-index: 0;
}
.path-card--positive:hover::before {
  opacity: 1;
  animation: path-glow-fade 3.5s ease-in-out infinite alternate;
}
.path-card--positive .path-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  height: 50px;
  opacity: 0.3;
  animation: pulse-light 2s infinite ease-in-out alternate;
  transition: opacity var(--transition-speed) ease;
}
.path-card--positive:hover .path-logo {
  opacity: 0.6;
}

/* --- Content Pages (About, Terms) --- */
.content-page .container--narrow {
  text-align: left;
}
.content-page .section-heading {
  text-align: center;
}

.about-me-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: flex-start;
}
.about-me-image-wrapper {
  position: sticky;
  top: calc(var(--dynamic-header-height) + 40px);
}
.about-me-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  border: 3px solid var(--accent-color);
  box-shadow: 0 5px 25px rgba(0, 222, 232, 0.25);
}
.about-me-text-wrapper h2 {
  text-align: left;
}
.about-me-text-wrapper h2::after {
  display: none;
}
.about-me-text-wrapper p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 1.5em;
}
.about-me-cta-wrapper {
  text-align: center;
  margin-top: 60px;
}
.about-me-cta-wrapper .cta-button {
  max-width: 450px;
  width: 100%;
}
.signature {
  margin-top: 40px;
}
.signature p {
  margin-bottom: 0;
  line-height: 1.5;
}
.signature .name {
  font-weight: 700;
  color: var(--heading-text-color);
  font-size: 1.1rem;
}
.signature .title {
  font-style: italic;
  color: var(--primary-text-color);
  font-size: 1rem;
}

/* ==========================================================================
   05. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes pulse-line {
  from {
    box-shadow: 0 0 10px rgba(0, 222, 232, 0.6);
  }
  to {
    box-shadow: 0 0 15px rgba(0, 222, 232, 0.8), 0 0 25px rgba(0, 222, 232, 0.5);
  }
}
@keyframes pulsate-background-logo {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.06;
    filter: blur(18px);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.03);
    opacity: 0.09;
    filter: blur(13px);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}
@keyframes spark-pulse {
  from {
    text-shadow: 0 0 8px rgba(0, 222, 232, 0.6), 0 0 12px rgba(0, 222, 232, 0.4);
  }
  to {
    text-shadow: 0 0 15px rgba(0, 222, 232, 0.8),
      0 0 25px rgba(0, 222, 232, 0.6), 0 0 35px rgba(0, 222, 232, 0.4);
  }
}
@keyframes modal-fade-in {
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes pulse-dark {
  from {
    filter: brightness(0.8);
  }
  to {
    filter: brightness(1.2);
  }
}
@keyframes path-glow-fade {
  0%,
  100% {
    opacity: 1;
  }
  60% {
    opacity: 0.7;
  }
}
@keyframes pulse-light {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.5);
  }
}

@keyframes heroFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   06. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  #main-header {
    padding: 15px 25px;
  }
  nav ul li {
    margin-left: 20px;
  }

  .card-grid,
  .card-grid--packages {
    grid-template-columns: 1fr;
  }

  .path-card {
    flex: 1 1 100%;
    max-width: none;
  }
  .cta-button {
    padding: 15px 25px;
  }

  .comparison-table {
    border: none;
    margin-top: 30px;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    border: 1px solid var(--secondary-accent-color);
    border-radius: var(--border-radius);
    overflow: hidden;
  }
  .comparison-table th,
  .comparison-table td {
    border: none;
    padding: 15px 20px;
    width: 100%;
  }
  .comparison-table td:first-child {
    font-weight: 700;
    color: var(--heading-text-color);
    background-color: rgba(75, 85, 99, 0.1);
    border-bottom: 1px solid var(--secondary-accent-color);
    font-size: 1.15em;
  }
  .comparison-table td:not(:first-child) {
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
  }
  .comparison-table tbody tr td:last-child {
    border-bottom: none;
  }
  .comparison-table td:not(:first-child)::before {
    content: attr(data-label) ": ";
    display: block;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .comparison-table .gamecatapult-column::before {
    display: inline-block;
    position: static;
  }

  .about-me-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-me-image-wrapper {
    position: static;
    max-width: 300px;
    margin: 0 auto;
  }
  .about-me-text-wrapper h2 {
    text-align: center;
  }
  .about-me-text-wrapper h2::after {
    display: block;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
  }
  h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }
  h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }
  h4 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* --- Mobile Header & Navigation --- */
  #main-header {
    justify-content: center; 
  }

  #main-header > nav {
    display: none;
  }

  /* Hamburger Menu Button: Fixed position, always on top */
  #hamburger-menu-button {
    display: flex; 
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3010; 
    position: fixed; 
    left: 25px;
    top: calc(
      var(--dynamic-header-height) / 2 - 15px
    ); 
  }

  #hamburger-menu-button .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary-text-color);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
  }

  /* Mobile Navigation Panel: Full screen, centered content */
  #mobile-nav {
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 16, 26, 0.95); 
    backdrop-filter: blur(10px);
    z-index: 3000; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px); 
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  #mobile-nav ul {
    flex-direction: column;
    align-items: center; 
    width: 100%;
  }

  #mobile-nav ul li {
    margin: 0 0 35px 0;
    width: 90%;
  }

  #mobile-nav ul li a:not(.cta-button) {
    font-size: 1.8rem;
    font-weight: 700;
  }

  #mobile-nav ul li .cta-button {
    width: 100%;
    max-width: 300px;
    padding: 18px 20px;
    font-size: 1.2rem;
    margin-top: 15px;
  }

  #nav-overlay {
    display: block; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2999; 
    opacity: 0; 
    visibility: hidden;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open #hamburger-menu-button .bar.top {
    transform: rotate(45deg) translate(8px, 8px);
  }

  body.mobile-nav-open #hamburger-menu-button .bar.middle {
    opacity: 0;
  }

  body.mobile-nav-open #hamburger-menu-button .bar.bottom {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  body.mobile-nav-open #mobile-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body.mobile-nav-open #nav-overlay {
    visibility: visible;
  }
}

@media (max-width: 480px) {
  :root {
    --peek-height-offset: 60px;
    --dynamic-header-height: 70px;
    --section-padding-y: 60px;
  }
  .section {
    padding: var(--section-padding-y) 15px;
  }

  #main-header {
    padding: 15px 15px;
  }
  .logo-wrapper img {
    height: 40px;
  }

  .cta-button {
    width: 100%;
    padding: 15px 20px;
    line-height: 1.4;
    white-space: normal;
  }
  .details-button {
    width: 100%;
    text-align: center;
  }

  #hero h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
  #hero h2 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  .modal-content {
    padding: 30px 20px;
  }

  #hamburger-menu-button {
    left: 15px;
  }
}