/* ------------------- */
/* GLOBAL RESET & SETUP */
/* ------------------- */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: var(--header-height);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* FIX: Lock scrolling on the root element when mobile nav is open */
html.nav-open {
  overflow: hidden;
}

/* ------------------- */
/* THEME VARIABLES     */
/* ------------------- */
:root {
  --primary-color: #ff4500;
  --secondary-color: #4f46e5;
  --gradient-start-color: #ff702a;
  --background-color-rgb: 12, 16, 20;
  --background-color: rgb(var(--background-color-rgb));
  --card-background: #1a1d22;
  --text-color: #f5f5f5;
  --text-muted: #b0b8c4;
  --heading-color: #ffffff;
  --border-color: #2a2e37;
  --font-family: "Inter", sans-serif;
  --header-height: 75px;
}

:root[data-theme="light"] {
  --background-color-rgb: 255, 255, 255;
  --background-color: rgb(var(--background-color-rgb));
  --card-background: #ffffff;
  --text-color: #212529;
  --text-muted: #5a6169;
  --heading-color: #000000;
  --border-color: #dee2e6;
}

/* ------------------- */
/* UTILITY CLASSES     */
/* ------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-auto {
  margin-top: auto;
}

/* ------------------- */
/* ACCESSIBILITY FIXES */
/* ------------------- */
/* Add a visible focus state for keyboard navigators for better accessibility. */
/* This style will only appear for users navigating with a keyboard (e.g., Tab key). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
  border-radius: 4px;
  transition: outline 0.1s ease-in-out;
}

/* For theme switcher buttons, adjust the outline to fit the circular shape */
.theme-switcher button:focus-visible {
  outline-offset: 3px;
}

/* ------------------- */
/* GENERAL STYLES      */
/* ------------------- */
body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* FIX: Add padding to body for all non-home pages */
  padding-top: var(--header-height);
}

/* FIX: Remove top padding on the homepage body to allow hero to be full screen */
html.is-home body {
  padding-top: 0;
}

body.nav-open {
  /* REMOVED: Scroll lock is now handled by html.nav-open */
}

.container {
  width: 90%;
  max-width: 1152px;
  margin: 0 auto;
}

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

/* ------------------- */
/* HEADER & NAVIGATION */
/* ------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  width: 100%;
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, box-shadow 0.4s ease,
    transform 0.3s ease-in-out;
  background-color: var(--card-background);
  border-bottom: 1px solid var(--border-color);
}

.header-hidden {
  transform: translateY(-100%);
}

.is-home .header {
  background-color: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.header.scrolled {
  background-color: rgba(var(--background-color-rgb), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
  flex-shrink: 0;
  z-index: 2001;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-switcher {
  display: flex;
  align-items: center;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px;
}

.theme-switcher button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.3s, background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-switcher button:hover {
  color: var(--primary-color);
}

.theme-switcher button.active {
  background-color: var(--secondary-color);
  color: white;
}

.theme-switcher button svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.5;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 2001;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-color);
  cursor: pointer;
}

.btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

/* ------------------- */
/* HERO SECTION        */
/* ------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
}

:root[data-theme="light"] .hero-section,
:root[data-theme="light"] .cta-section {
  background-color: #f5f3ff;
}

.hero-section::before,
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(
      ellipse 80% 90% at 15% 40%,
      hsla(24, 100%, 50%, 0.9),
      transparent 70%
    ),
    radial-gradient(
      ellipse 80% 90% at 90% 60%,
      hsla(262, 90%, 55%, 0.9),
      transparent 70%
    );
  filter: blur(180px);
  opacity: 0.9;
}

:root[data-theme="light"] .hero-section::before,
:root[data-theme="light"] .cta-section::before {
  background: radial-gradient(
      ellipse 80% 90% at 15% 40%,
      hsla(22, 100%, 62%, 0.95),
      transparent 70%
    ),
    radial-gradient(
      ellipse 80% 90% at 90% 60%,
      hsla(262, 95%, 70%, 0.95),
      transparent 70%
    );
}

.hero-content,
.cta-content {
  position: relative;
  z-index: 3;
  background: none;
}

.hero-content {
  margin-bottom: 8vh;
  padding-top: var(
    --header-height
  ); /* Add padding to content to avoid header overlap */
}

.hero-subtitle {
  display: inline-block;
  position: relative;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  padding: 8px 20px;
  color: #ffffff;
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.hero-subtitle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  z-index: -1;
  transform-origin: left;
  transform: scaleX(0);
  border-radius: 8px;
  animation: brush-reveal 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

@keyframes brush-reveal {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--heading-color);
  margin: 1rem 0;
  line-height: 1.2;
}

.highlight-text {
  background-image: linear-gradient(90deg, #d93d00, #443cbb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 15px rgba(255, 69, 0, 0.2);
}

:root[data-theme="dark"] .highlight-text {
  background-image: linear-gradient(90deg, #ff6a00, #e805a3);
  text-shadow: 0 0 25px rgba(255, 87, 0, 0.55);
}

.hero-intro-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4a5568;
  margin: 2rem auto;
  max-width: 680px;
  line-height: 1.6;
}

:root[data-theme="dark"] .hero-intro-text {
  color: #cbd5e0;
}

.hero-features {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem auto;
  max-width: 1000px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(var(--background-color-rgb), 0.6);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.feature-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.feature-pill svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  stroke-width: 2.5px;
}

.btn-primary-hero {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary-hero:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  box-shadow: 0 6px 25px rgba(79, 70, 229, 0.4);
  transform: translateY(-2px);
}

/* ------------------- */
/* TESTIMONIALS SECTION */
/* ------------------- */
.testimonials-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card.featured {
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem;
}

.featured-author-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.featured-content-panel {
  text-align: left;
}

.testimonial-card:not(.featured)::before {
  content: "“";
  position: absolute;
  top: 5px;
  left: 15px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(128, 128, 128, 0.08);
  z-index: 0;
  line-height: 1;
}

.star-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.star-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  fill: var(--primary-color);
  stroke-width: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  position: relative;
  z-index: 1;
  flex-grow: 1;
  margin: 0 0 2rem 0;
}

.testimonial-card.featured .testimonial-text {
  font-size: 1.4rem;
  font-weight: 500;
  flex-grow: 0;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.testimonial-card.featured .author-avatar {
  width: 100px;
  height: 100px;
}

.author-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.testimonial-card.featured .author-info {
  text-align: center;
}

.author-name {
  font-weight: 700;
  color: var(--heading-color);
}

.author-title {
  color: var(--text-muted);
}

/* --------------------------------- */
/* WHY REDDIT SECTION OVERHAUL       */
/* --------------------------------- */
.why-reddit-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2rem;
}

.stats-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-block {
  background-color: var(--card-background);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.why-reddit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
}

.why-reddit-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.why-reddit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-reddit-card:nth-child(1),
.why-reddit-card:nth-child(2) {
  grid-column: span 3;
}
.why-reddit-card:nth-child(3),
.why-reddit-card:nth-child(4),
.why-reddit-card:nth-child(5) {
  grid-column: span 2;
}

.card-visual {
  width: 100%;
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.why-reddit-card .card-visual {
  background: radial-gradient(
      ellipse at 40% 30%,
      hsla(24, 100%, 50%, 0.1),
      transparent 80%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      hsla(262, 90%, 55%, 0.15),
      transparent 80%
    );
}
:root[data-theme="light"] .why-reddit-card .card-visual {
  background: radial-gradient(
      ellipse at 40% 30%,
      hsla(24, 100%, 70%, 0.2),
      transparent 80%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      hsla(262, 90%, 75%, 0.25),
      transparent 80%
    );
}

.gradient-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  stroke: url(#icon-grad1);
  fill: none;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-reddit-card .gradient-icon {
  width: 110px;
  height: 110px;
}
.why-reddit-card:nth-child(3) .gradient-icon,
.why-reddit-card:nth-child(4) .gradient-icon,
.why-reddit-card:nth-child(5) .gradient-icon {
  width: 80px;
  height: 80px;
}

.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.why-reddit-card p {
  color: #e2e8f0;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}
:root[data-theme="light"] .why-reddit-card p {
  color: #2d3748;
}

/* --------------------------------- */
/* "WILD WEST" / CHALLENGES SECTION  */
/* --------------------------------- */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.challenge-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.challenge-card .card-visual {
  width: 60px;
  height: 60px;
  padding-top: 0;
  border-radius: 12px;
  margin-right: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 69, 0, 0.1);
  position: static;
  transform: none;
}

.challenge-icon {
  width: 30px;
  height: 30px;
  stroke: var(--primary-color);
  position: static;
  transform: none;
  fill: none;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.challenge-card h3 {
  font-size: 1.1rem;
  color: var(--heading-color);
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

/* ------------------- */
/* WHY ME SECTION (THE DERANGEDWOLF DIFFERENCE) */
/* ------------------- */
.why-me-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-me-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.why-me-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-me-card .card-visual {
  width: 100%;
  height: 180px;
  position: relative;
  padding-top: 0;
  background: radial-gradient(
      ellipse at 40% 30%,
      hsla(24, 100%, 50%, 0.1),
      transparent 80%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      hsla(262, 90%, 55%, 0.15),
      transparent 80%
    );
}

:root[data-theme="light"] .why-me-card .card-visual {
  background: radial-gradient(
      ellipse at 40% 30%,
      hsla(24, 100%, 70%, 0.2),
      transparent 80%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      hsla(262, 90%, 75%, 0.25),
      transparent 80%
    );
}

.why-me-card .gradient-icon {
  width: 90px;
  height: 90px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  stroke: url(#icon-grad1);
  fill: none;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-me-card .card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.why-me-card h3 {
  font-size: 1.25rem;
  color: var(--heading-color);
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------- */
/* CONTENT SECTIONS    */
/* ------------------- */
.content-section {
  padding: 6rem 0;
  background-color: var(--background-color);
  transition: background-color 0.3s ease;
}

.page-hero {
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

.page-hero-subtitle {
  margin-top: 1rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 1.5rem 0;
  position: relative;
  display: inline-block;
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ------------------- */
/* LEGAL & INFO PAGES   */
/* ------------------- */
.legal-section,
.about-me-section,
.contact-section {
  padding-top: 2rem;
}

.legal-container {
  max-width: 800px;
}

.page-meta {
  text-align: center;
  color: var(--text-muted);
}

.legal-section h3 {
  margin-top: 2.5rem;
}

.legal-section ul {
  padding-left: 20px;
}

.legal-section ul li {
  margin-bottom: 0.75rem;
}

.about-me-grid {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 3rem;
  align-items: start;
}

.about-me-image-container {
  max-width: 300px;
  margin: 0 auto;
}

.about-me-profile-pic {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-me-content h2 {
  font-size: 2rem;
  color: var(--heading-color);
  margin-top: 0;
}

.about-me-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ------------------- */
/* SERVICES SECTION Revamp */
/* ------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.service-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.service-card.featured {
  border-color: var(--secondary-color);
  box-shadow: 0 0 25px rgba(79, 70, 229, 0.2);
}

.badge {
  position: absolute;
  top: 0;
  right: -1px;
  background: var(--secondary-color);
  color: white;
  padding: 6px 20px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 0 15px 0 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.service-icon {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
  stroke-width: 2;
  flex-shrink: 0;
}

.service-title {
  font-size: 1.3rem;
  color: var(--heading-color);
  margin: 0;
}

.service-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-color);
}

.service-features li i {
  color: var(--secondary-color);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.service-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
:root[data-theme="light"] .service-footer {
  color: var(--secondary-color);
}

/* ------------------- */
/* HOW IT WORKS Revamp */
/* ------------------- */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  background-color: var(--card-background);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.timeline-icon i {
  color: var(--secondary-color);
  width: 24px;
  height: 24px;
}

.timeline-content {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 12px;
  flex-grow: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-step {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-title {
  font-size: 1.4rem;
  color: var(--heading-color);
  margin: 0 0 0.75rem 0;
}

.timeline-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Section */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-size: 1.2rem;
  color: var(--heading-color);
  margin: 0;
}
.faq-answer {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s;
}

.faq-answer a:hover {
  color: var(--secondary-color);
}

/* ------------------- */
/* CTA & FOOTER        */
/* ------------------- */
.cta-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background-color: var(--background-color);
}

.cta-title {
  font-size: 2.8rem;
  color: var(--heading-color);
  font-weight: 700;
  margin: 0;
}

.cta-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 1rem auto 2rem;
}

.btn-cta {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(79, 70, 229, 0.4);
}

.footer {
  padding: 2rem 0;
  background-color: var(--background-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright-text,
.footer-links a {
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap; /* FIX: Ensure links can wrap on small screens */
  justify-content: center; /* FIX: Center the links when they are stacked or wrapped */
  gap: 1rem 1.5rem; /* FIX: Add vertical and horizontal gap */
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* ------------------- */
/* CONTACT PAGE STYLES */
/* ------------------- */
.contact-section {
  padding-top: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-card.primary {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.15);
}

.contact-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
}

.contact-title {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin: 0;
}

.contact-description {
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 2rem;
}

.email-display {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-family: monospace;
  font-size: 1rem;
  word-break: break-all;
}

.email-display p {
  margin: 0;
}

.email-at,
.email-dot {
  color: var(--primary-color);
  font-weight: 700;
}

.copy-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

#copy-email-btn.copied {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.address-container {
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.legal-address {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.legal-address strong {
  color: var(--text-color);
}

/* ------------------- */
/* SCROLL TO TOP BUTTON */
/* ------------------- */
#scroll-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;

  /* Styling */
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

  /* Initial State: Hidden */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-to-top-btn:hover {
  background-color: var(--secondary-color);
}

#scroll-to-top-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}

/* ------------------- */
/* RESPONSIVENESS      */
/* ------------------- */
@media (max-width: 1024px) {
  .nav-controls {
    order: 3;
  }

  .nav-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--background-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2000;
  }

  html.nav-open .nav-content {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    width: 100%;
    order: 1;
  }

  .nav-link {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .nav-contact-btn {
    display: none;
  }

  .nav-content .nav-contact-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    order: 2;
  }

  .nav-content .theme-switcher {
    order: 3;
  }

  .hamburger-btn {
    display: flex;
  }

  html.nav-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  html.nav-open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  html.nav-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card.featured {
    flex-direction: column;
    text-align: center;
  }
  .testimonial-card.featured .featured-content-panel {
    text-align: center;
  }
  .testimonial-card.featured .star-rating {
    justify-content: center;
  }
  .why-reddit-grid {
    grid-template-columns: 1fr;
  }
  .why-reddit-card:nth-child(n) {
    grid-column: span 1;
  }
  .challenges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-me-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .page-title {
    font-size: 2.5rem;
  }
  .about-me-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-me-image-container {
    display: none;
  }
}

@media (max-width: 768px) {
  .stats-grid,
  .process-timeline,
  .testimonials-grid,
  .challenges-grid,
  .why-me-grid,
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .process-timeline::before {
    left: 25px;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-features {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .feature-pill {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .page-title {
    font-size: 2.2rem;
  }
  .logo-img {
    height: 34px;
  }
  .hero-subtitle {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  #scroll-to-top-btn {
    width: 45px;
    height: 45px;
    right: 15px;
    bottom: 15px;
  }
}

@media (max-width: 400px) {
}
