html {
  scroll-behavior: smooth;
}

:root {
  /* Define fallback font stacks as custom properties for consistency */
  --font-fallback-sans-serif: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  --font-fallback-serif: Georgia, "Times New Roman", Times, serif;

  /* NEW: Header heights and main padding variables */
  --header-height-desktop: 80px;
  --header-height-mobile: 55px; /* Based on existing body padding-top for mobile */
  --main-padding-x-desktop: 40px;
  --main-padding-x-mobile: 15px;

  /* NEW: Section vertical padding variables */
  --section-padding-y-large-desktop: clamp(
    60px,
    10vh,
    100px
  ); /* For hero-like sections */
  --section-padding-y-large-mobile: clamp(
    40px,
    8vh,
    70px
  ); /* For hero-like sections on mobile */
  --section-padding-y-standard: clamp(
    40px,
    6vh,
    60px
  ); /* For regular content sections */
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, var(--font-fallback-sans-serif);
  background-color: #4a2a4d;
  color: #eae6f0;
  line-height: 1.6;
  /* MODIFIED: Use CSS variable for header height */
  padding-top: var(--header-height-desktop);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* MODIFIED: Use CSS variable for main horizontal padding */
  padding: 20px var(--main-padding-x-desktop);
  background-color: #4a2a4d;
  border-bottom: 1px solid #5a3a5d;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: padding 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
}

header.scrolled {
  /* MODIFIED: Use CSS variable for main horizontal padding */
  padding: 10px var(--main-padding-x-desktop);
  background-color: #402543;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header.scrolled .logo span {
  font-size: 1.3em;
}

header.scrolled .logo-image {
  height: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #eae6f0;
  text-decoration: none;
}

.logo span {
  font-size: 1.5em;
  transition: font-size 0.3s ease;
}

.logo-image {
  height: 40px;
  width: auto;
  transition: height 0.3s ease;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: #eae6f0;
  font-size: 1.5em;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  z-index: 1001;
}

.hamburger-menu .fa-times {
  display: none;
}

.hamburger-menu.is-active .fa-bars {
  display: none;
}

.hamburger-menu.is-active .fa-times {
  display: block;
}

nav {
  /* No specific styles needed here */
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
}

.nav-links li {
  margin-left: 25px;
  margin-top: 0;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #eae6f0;
  font-weight: 500;
  padding: 5px 0;
  padding-bottom: 5px;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease, font-size 0.3s ease,
    text-shadow 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 1.5px;
  background-color: #ffffff;
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover,
.nav-links a:focus {
  color: #ffffff;
  transform: translateY(-3px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

/* Main Content */
main {
  /* MODIFIED: Use CSS variable for horizontal padding, 0 vertical padding */
  padding: 0 var(--main-padding-x-desktop);
}

/* === HERO SECTION STYLES START === */
@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 4vw, 50px);
  min-height: calc(100vh - var(--header-height-desktop));
  padding: var(--section-padding-y-large-desktop) 0; /* Vertical padding only, horizontal comes from <main> */
  box-sizing: border-box;
  background-color: #4a2a4d;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 0
  );
  background-size: 20px 20px;
  border-radius: 12px;
  margin-bottom: var(--section-padding-y-standard);
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding-left: clamp(40px, 7vw, 100px);
  padding-right: clamp(15px, 3vw, 40px);
}

.hero-title {
  font-family: "Geist Sans", var(--font-fallback-sans-serif);
  font-size: clamp(1.7em, 3.5vw, 4em);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.hero-quote {
  font-family: "Helvetica Neue", Arial, var(--font-fallback-sans-serif);
  font-size: clamp(1em, 2.2vw, 1.3em);
  line-height: 1.6;
  color: #e0d8e3;
  max-width: 55ch;
  margin-bottom: 1.5em;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  background-color: #eae6f0;
  color: #4a2a4d;
  font-family: "Helvetica Neue", Arial, var(--font-fallback-sans-serif);
  font-size: clamp(0.9em, 1.8vw, 1.1em);
  font-weight: bold;
  text-decoration: none;
  padding: clamp(12px, 2vh, 18px) clamp(24px, 3vw, 36px);
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-cta:hover,
.hero-cta:focus {
  background-color: #ffffff;
  color: #3c223f;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  outline: 2px solid transparent;
}
.hero-cta:focus-visible {
  outline: 3px solid #f0e5f0;
  outline-offset: 3px;
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.hero-logo-visual {
  width: clamp(180px, 28vw, 300px);
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(234, 230, 240, 0.2),
    0 0 60px rgba(234, 230, 240, 0.15);
  animation: floatAnimation 6s ease-in-out infinite;
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.hero-logo-visual:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 40px rgba(234, 230, 240, 0.3),
    0 0 70px rgba(234, 230, 240, 0.2);
  animation-play-state: paused;
}
/* === HERO SECTION STYLES END === */

/* Other Sections */
.content-wrapper {
  padding-top: var(--section-padding-y-standard);
  margin-bottom: var(--section-padding-y-standard);
}

.about-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.about-section p {
  font-size: 1.1em;
  margin-bottom: 20px;
}
.about-section p:last-child {
  margin-bottom: 0;
}

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

.cta-button {
  background-color: #eae6f0;
  color: #4a2a4d;
  border: none;
  padding: 15px 30px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover,
.cta-button:focus {
  background-color: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  outline: 2px solid #4a2a4d;
  outline-offset: 2px;
}

.placeholder-section {
  padding: var(--section-padding-y-standard) 0;
  text-align: center;
  border-top: 1px solid #5a3a5d;
  background-color: #523055;
  border-radius: 8px;
  margin-bottom: var(--section-padding-y-standard);
}

#readings.placeholder-section {
  /* No specific overrides needed currently */
}

.placeholder-section + .placeholder-section {
  /* This rule was present but might not be strictly necessary if margin-bottom on all .placeholder-section is consistent */
  /* margin-top: var(--section-padding-y-standard); */ /* Can be removed if margin-bottom handles spacing */
}

.placeholder-section h2 {
  font-family: "Geist Sans", var(--font-fallback-sans-serif);
  font-weight: 700;
  font-size: 2.2em;
  margin-bottom: 25px;
  color: #f0e5f0;
}

.placeholder-section-image {
  max-width: 400px;
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: #6a4a6d;
}

.placeholder-section p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #eae6f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Fade-in Animation */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
#socialFooter {
  text-align: center;
  padding: var(--section-padding-y-standard) var(--main-padding-x-desktop);
  background-color: #402543;
  border-top: 1px solid #5a3a5d;
  box-sizing: border-box;
  width: 100%;
}

.social-icons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #eae6f0;
  background-color: #5a3a5d;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover,
.social-icon:focus {
  transform: translateY(-3px) scale(1.05);
  outline: 2px solid #f0e5f0;
  outline-offset: 2px;
}

.social-icon.tiktok:hover,
.social-icon.tiktok:focus {
  background-color: #000000;
  color: #ffffff;
}
.social-icon.instagram:hover,
.social-icon.instagram:focus {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  color: #ffffff;
}
.social-icon.youtube:hover,
.social-icon.youtube:focus {
  background-color: #ff0000;
  color: #ffffff;
}

.footer-copyright {
  font-size: 0.85em;
  color: #c0b8cc;
  margin: 0;
}

/* ========================================================================== */
/* ============================ MOBILE STYLES =============================== */
/* ========================================================================== */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-mobile);
  }

  header {
    padding: 8px var(--main-padding-x-mobile);
    display: flex;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  header.scrolled {
    padding: 6px var(--main-padding-x-mobile);
  }
  header.scrolled .logo span {
    font-size: 1.1em;
  }
  header.scrolled .logo-image {
    height: 25px;
  }

  .logo {
    gap: 8px;
    margin-bottom: 0;
  }

  .logo span {
    font-size: 1.2em;
  }

  .logo-image {
    height: 30px;
  }

  .hamburger-menu {
    display: block !important;
    font-size: 1.4em;
    order: 2;
  }

  .nav-links {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #402543;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    z-index: 999;
    padding: 10px 0;
    margin: 0;
    flex-direction: column !important;
    align-items: center !important;
  }

  .nav-links.nav-active {
    display: flex !important;
  }

  .nav-links li {
    margin: 0 !important;
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block !important;
    padding: 14px 20px !important;
    font-size: 1em !important;
    color: #eae6f0;
    border-bottom: 1px solid #5a3a5d;
    transform: none !important;
    text-shadow: none !important;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    background-color: #5a3a5d;
    color: #ffffff;
  }

  main {
    padding: 0 var(--main-padding-x-mobile);
  }

  /* === HERO SECTION MOBILE STYLES START === */
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: calc(100vh - var(--header-height-mobile));
    padding: var(--section-padding-y-large-mobile) 0;
    gap: 30px;
  }

  .hero-text-content {
    align-items: center;
    order: 2;
    /* MODIFIED: Reset horizontal padding to allow true centering on mobile */
    padding-left: 0;
    padding-right: 0;
    width: 100%; /* Ensure it can use the full width available for its content alignment */
    box-sizing: border-box; /* Include padding in width calculation if any inner padding is added */
  }

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

  .hero-quote {
    font-size: clamp(0.9em, 4vw, 1.1em);
    max-width: 90%; /* Relative to .hero-text-content's width */
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    font-size: clamp(0.85em, 3.5vw, 1em);
    padding: clamp(10px, 1.8vh, 15px) clamp(20px, 2.5vw, 30px);
  }

  .hero-image-wrapper {
    order: 1;
    width: 100%; /* Ensure image wrapper can center its content properly */
  }

  .hero-logo-visual {
    width: clamp(120px, 35vw, 180px);
    animation-duration: 7s;
    margin-left: auto; /* Helps center if wrapper is wider */
    margin-right: auto; /* Helps center if wrapper is wider */
  }
  /* === HERO SECTION MOBILE STYLES END === */

  .about-section p {
    font-size: 1em;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }

  .placeholder-section {
    padding: var(--section-padding-y-standard) 0;
    margin-bottom: var(--section-padding-y-standard);
  }

  .placeholder-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .placeholder-section-image {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    height: 200px;
    margin-bottom: 20px;
  }

  .placeholder-section p {
    font-size: 1em;
  }

  #socialFooter {
    padding: var(--section-padding-y-standard) var(--main-padding-x-mobile);
  }

  .social-icons-container {
    gap: 20px;
    margin-bottom: 15px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1em;
  }

  .footer-copyright {
    font-size: 0.8em;
  }
}
