:root {
  --red: #c41f2b;
  --dark: #000000;
  /* Pure black for Matrix feel */
  --muted: #a3a3a3;
  /* Lighter gray for better contrast on black */
  --card: #121212;
  /* Very dark gray for cards */
  --radius: 0px;
  /* Sharper edges for Matrix feel */
  --max-width: 1400px;
  /* Wider layout */
  --glass: rgba(0, 0, 0, 0.7);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background-color: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px;
}

/* ---------------------------
   HEADER
---------------------------- */
/* ---------------------------
   HEADER
---------------------------- */
header {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  width: 100%;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

/* New logo styling */
.brand-logo-img {
  height: 60px;
  /* Reduced specific size for header */
  width: auto;
  object-fit: contain;
}

.brand-handwriting {
  font-size: 24px;
  /* Integrated into header line */
  font-weight: 700;
  color: #c41f2b !important;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  /* Optional: for stronger look */
  letter-spacing: 1px;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #fff;
  /* White text for contrast on black */
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--red);
}

/* ---------------------------
   HERO
---------------------------- */
/* ---------------------------
   HERO
---------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* Center vertically if needed, or flex-start */
  min-height: 500px;
  padding: 60px;
  margin-top: 20px;
  border-radius: 20px;
  /* If we want rounded corners for the whole hero block */
  overflow: hidden;
  background: url('assets/themeImage.png') no-repeat center center;
  background-size: cover;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Left blurred overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  /* Covers left side */
  background: rgba(0, 0, 0, 0.4);
  /* Semi-transparent black */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  mask-image: linear-gradient(to right, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 45%;
  /* Matches the overlay width roughly */
  padding-right: 20px;
}

h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Matrix Quote Style */
.matrix-quote {
  color: var(--red);
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
  font-family: 'Courier New', Courier, monospace;
  /* Matrix code feel */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.matrix-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  font-style: normal;
  font-family: Inter, sans-serif;
}

p.lead {
  color: #ccc;
  margin-top: 12px;
  font-size: 16px;
}

.cta-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

/* ---------------------------
   BUTTONS
---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(196, 31, 43, 0.16);
}

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(15, 23, 36, 0.06);
  color: var(--dark);
}

/* ---------------------------
   FEATURES
---------------------------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: var(--glass);
}

.feature .dot {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--red);
  box-shadow: 0 4px 12px rgba(15, 23, 36, 0.04)
}

/* ---------------------------
   RIGHT CARD (STATS)
---------------------------- */
.right-card {
  background: #fff;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 36, 0.03)
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px
}

.stat .num {
  font-size: 22px;
  font-weight: 800
}

/* ---------------------------
   SERVICES
---------------------------- */
/* ---------------------------
   NEW HEADER IMAGE
---------------------------- */
/* ---------------------------
   NEW HEADER IMAGE
---------------------------- */
.brand-logo-img {
  height: 249px;
  width: 250px;
  object-fit: contain;
}

.brand-handwriting {
  font-size: 80px;
  line-height: 0.85;
  font-weight: 800;
  color: #c41f2b !important;
  margin-bottom: 2px;
  display: block;
  /* Ensure height aligns if needed, or let content dictate */
  height: auto;
  min-height: 100px;
  white-space: nowrap;
}

/* ---------------------------
   SERVICES WHEEL (CAROUSEL)
---------------------------- */
.services {
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  /* For arrows */
}

.carousel-container {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 100%;
}

.services-grid {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 40px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: stretch;
  flex: 1;
  scroll-behavior: smooth;
}

.services-grid::-webkit-scrollbar {
  display: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 320px;
  min-width: 280px;
  scroll-snap-align: center;
  padding: 24px;
  border-radius: 14px;
  background: var(--card);
  /* Fix for dark mode bg */
  border: 1px solid rgba(15, 23, 36, 0.04);

  transition: all 0.4s ease;
  opacity: 0.5;
  /* Increased visibility per request */
  transform: scale(0.9);
  /* Removed blur per request */
}

.service-card.active {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  /* Lifted effect */
  border-color: rgba(196, 31, 43, 0.3);
  z-index: 10;
}

/* Navigation Arrows */
.carousel-btn {
  background: var(--card);
  /* Matches card bg */
  border: 1px solid rgba(15, 23, 36, 0.1);
  color: var(--dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: absolute;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.carousel-btn:hover {
  transform: scale(1.1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Hide arrows on mobile if desired, or keep them */
@media (max-width: 768px) {
  .carousel-btn {
    width: 32px;
    height: 32px;
  }
}

/* Make sure buttons inside are clickable */
.service-card button {
  pointer-events: auto;
}

/* ---------------------------
   BLOG & MERCH
---------------------------- */
/* ---------------------------
   BLOG & MERCH
---------------------------- */
/* ---------------------------
   BLOG & MERCH
---------------------------- */
.blog {
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  margin-top: 18px;
}

.merch {
  margin-top: 18px;
  display: grid;
  gap: 12px
}

.blog-grid {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 40px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: stretch;
  flex: 1;
  scroll-behavior: smooth;
}

.blog-grid::-webkit-scrollbar {
  display: none;
}

/* Reusing services-grid behavior for blog-list if we want horizontal scroll, 
   or we can just reuse the class directly in HTML. 
   But let's make .blog-card match .service-card dimensions. */

.blog-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 320px;
  /* Match service-card flex basis */
  min-width: 280px;
  /* Match service-card min-width */
  height: 400px;
  /* Fixed height for uniformity */
  scroll-snap-align: center;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 36, 0.04);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

[data-theme="dark"] .blog-card {
  border-color: rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(196, 31, 43, 0.3);
  z-index: 10;
}

.blog-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 240px;
  /* Fixed uniform height to match the largest post */
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------------------------
   FOOTER
---------------------------- */
footer {
  margin-top: 40px;
  padding: 20px 0;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------------------------
   MODAL
---------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  display: none;
  place-items: center;
  padding: 24px;
  z-index: 1200
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  padding: 20px
}

.close-btn {
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e6e8eb;
  font-size: 14px;
}

label {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(196, 31, 43, 0.08);
  color: var(--red);
  font-weight: 700;
}

/* ---------------------------
   RESPONSIVE
---------------------------- */
@media (max-width:980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  nav {
    display: none
  }

  /* Note: In a real app we'd want a hamburger menu, but for now we hide it as per original template behavior */
}

@media (max-width:520px) {
  h1 {
    font-size: 28px
  }

  .cta-row {
    flex-direction: column
  }

  .services-grid {
    grid-template-columns: 1fr
  }
}

/* ---------------------------
   DARK MODE
---------------------------- */
[data-theme="dark"] {
  --red: #ff4d5a;
  /* Slightly lighter red for dark mode */
  --dark: #f9fafb;
  --muted: #9ca3af;
  --card: #1f2937;
  --glass: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] body {
  background: linear-gradient(180deg, #111827 0%, #030712 100%);
}

[data-theme="dark"] .hero-card,
[data-theme="dark"] .right-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .post,
[data-theme="dark"] .merch>div,
[data-theme="dark"] .modal {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.05);
  color: #f9fafb;
}

[data-theme="dark"] .feature .dot {
  background: #374151;
  color: var(--red);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

/* ---------------------------
   NEW ELEMENTS
---------------------------- */


.theme-toggle {
  background: transparent;
  border: none;
  color: var(--dark);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-left: 12px;
  transition: background 0.2s;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  margin-top: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------------------------
   PODCAST PAGE
---------------------------- */
.podcast-hero {
  padding: 80px 40px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/themeImage.png') no-repeat center center;
  background-size: cover;
  border-radius: 20px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.podcast-hero-content {
  position: relative;
  z-index: 2;
}

.platform-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff;
}

.platform-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.platform-btn.twitch {
  background: #9146FF;
  /* Twitch Purple */
}

.platform-btn.youtube {
  background: #FF0000;
  /* YouTube Red */
}

.view-all-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: var(--red);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.episode-card {
  background: var(--card);
  border: 1px solid rgba(15, 23, 36, 0.04);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.episode-card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 31, 43, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.episode-thumbnail {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-overlay {
  width: 50px;
  height: 50px;
  background: rgba(196, 31, 43, 0.9);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.episode-card:hover .play-overlay {
  opacity: 1;
  transform: scale(1.1);
}

.episode-content {
  padding: 20px;
}

.episode-content h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
}

.btn-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

[data-theme="dark"] .podcast-hero {
  border: 1px solid rgba(255, 255, 255, 0.05);
}