/* style.css - Enhanced with Numerology by Devendra Theme */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");

:root {
  /* Numerology by Devendra Theme */
  --primary-color: #a03e99;
  --primary-dark: #67256a; /* Secondary (Darker Primary) */
  --primary-soft: #b45fb0; /* Lighter shade for gradients/accents */
  --primary-light: #c980c6; /* Even lighter shade */
  --highlight-color: #fec10e; /* Buttons & Highlights */
  --highlight-dark: #e0ac00; /* Darker highlight for gradients */

  --text-primary: #381f33; /* Text */
  --text-secondary: #5e4259; /* Muted/secondary text */
  --text-on-primary: #ffffff;
  --text-on-highlight: #381f33; /* Dark text for yellow buttons */
  --celestial-dark: #1a1026;
  --celestial-mid: #4a2f5c;
  --celestial-light: #8a6a8f;
  --celestial-accent: #d4b7e0;
  --background-main: #fdf9fd; /* Very light purple tint */
  --background-container: rgba(
    253,
    249,
    253,
    0.95
  ); /* Matching main bg with opacity */
  --secondary-color: #f6eff5; /* Pale Purple White - for cards, accents */
  --secondary-color-inline: #f6eff5; /* Kept for inline compatibility */

  --border-color: #d1c4d0; /* Themed border color */
  --border-medium: #b8a9b7; /* Themed medium border */
  --border-light: #eadfed; /* Themed light border */

  --primary-color-rgb: 160, 62, 153; /* RGB for new primary */

  /* Button Specific */
  --button-secondary-bg: #e9e1e8; /* Lighter purple-tinted grey */
  --button-secondary-text: var(--text-primary);
  --button-secondary-hover-bg: #dcd3da;
  --button-gradient: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  --button-highlight-gradient: linear-gradient(
    135deg,
    var(--highlight-color) 0%,
    var(--highlight-dark) 100%
  );

  /* Font & Layout */
  --font-family: "Poppins", sans-serif;
  --font-secondary: "Open Sans", sans-serif;
  --base-font-size: 16px;
  --line-height-base: 1.6;
  --border-radius: 10px;
  --card-padding: 25px;
  --input-padding: 12px 15px;
  --control-gap: 15px;
  --transition: 0.3s ease;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;

  /* Shadows */
  --shadow-color-rgb: 56, 31, 51; /* Derived from text-primary for subtle themed shadow */
  --shadow-sm: 0 2px 4px rgba(var(--shadow-color-rgb), 0.07);
  --shadow-md: 0 4px 8px rgba(var(--shadow-color-rgb), 0.1);
  --shadow-lg: 0 10px 20px rgba(var(--shadow-color-rgb), 0.15);
}

/* Global Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Body Styles */
body {
  padding: 30px 10%;
  font-size: var(--base-font-size);
  font-family: var(--font-family);
  color: var(--text-primary);
  background: linear-gradient(
		150deg,
		var(--celestial-dark) 0%,
		var(--celestial-mid) 30%,
		var(--celestial-light) 70%,
		var(--celestial-accent) 100%
	);
  background-attachment: fixed;
  transition: background var(--transition), color var(--transition);
  line-height: var(--line-height-base);
  min-height: 100vh;
}

/* Responsive adjustments for body padding */
@media (max-width: 1200px) {
  body {
    padding: 25px 5%;
  }
}

@media (max-width: 768px) {
  body {
    padding: 15px 4%;
  }
}

@media (max-width: 576px) {
  body {
    padding: 10px 3%;
    font-size: calc(var(--base-font-size) * 0.95);
  }
}

/* =========================
      Navigation
      ========================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--background-container);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 25px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 15px;
  left: 5%; /* Align with body padding */
  right: 5%;
  width: 90%; /* Match body padding */
  z-index: 1000;
  transition: all var(--transition-medium);
  border-radius: var(--border-radius);
  margin: 0 auto 30px auto;
  border: 1px solid rgba(var(--primary-color-rgb), 0.15);
}

.navbar:hover {
  box-shadow: var(--shadow-lg);
}

.navbar .logo img {
  width: 220px; /* Adjust if new logo has different aspect ratio */
  transition: transform var(--transition-medium);
  vertical-align: middle;
}

.navbar .logo img:hover {
  transform: scale(1.05);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar ul li {
  position: relative;
}

.navbar ul li a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9em;
  font-weight: 500;
  text-transform: uppercase;
  padding: 8px 0;
  transition: color var(--transition-medium);
  position: relative;
  letter-spacing: 0.5px;
}

.navbar ul li a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  left: 0;
  bottom: -3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.navbar ul li a:hover,
.navbar ul li a:focus {
  color: var(--primary-color);
  outline: none;
}

.navbar ul li a:hover::after,
.navbar ul li a:focus::after {
  transform: scaleX(1);
}

.navbar .get-report {
  background-image: var(--button-highlight-gradient); /* UPDATED to use highlight gradient */
  padding: 10px 25px;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.4s ease;
  color: var(--text-on-highlight) !important; /* UPDATED */
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius);
  margin-left: 15px;
  white-space: nowrap;
  font-size: 0.85em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  letter-spacing: 0.7px;
}

.navbar .get-report:hover,
.navbar .get-report:focus {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  outline: none;
}

.navbar .get-report::after {
  display: none;
}

.navbar .hamburger {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
  color: var(--primary-color);
  padding: 5px;
  background: none;
  border: none;
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .navbar {
    top: 10px;
    left: 2.5%;
    right: 2.5%;
    width: 95%;
    padding: 10px 15px;
    margin-bottom: 20px;
  }
  .navbar .logo img {
    width: 180px; /* Adjust if new logo has different aspect ratio */
  }
  .navbar .hamburger {
    display: block;
  }
  .navbar ul {
    display: none;
    flex-direction: column;
    background-color: var(--background-container);
    backdrop-filter: blur(5px);
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    width: 100%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 10px 0;
    z-index: 999;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    border-top: 1px solid var(--border-light);
  }
  .navbar ul.active {
    display: flex;
  }
  .navbar ul li {
    text-align: center;
    margin: 0;
    width: 100%;
  }
  .navbar ul li a:not(.get-report) {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
  }
  .navbar ul li a:not(.get-report):hover,
  .navbar ul li a:not(.get-report):focus {
    color: var(--primary-color);
    background-color: rgba(var(--shadow-color-rgb), 0.03);
  }
  .navbar ul li a:not(.get-report)::after {
    display: none;
  }
  .navbar ul.active li:has(a.get-report) {
    padding: 15px 20px;
    border-bottom: none;
  }
  .navbar ul.active li a.get-report {
    display: block;
    width: auto;
    margin: 0 auto;
    padding: 12px 30px;
  }
  .navbar ul li:last-child a:not(.get-report) {
    border-bottom: none;
  }
}

/* =========================
      Common Page Elements
      ========================= */
.container {
  background: var(--background-container);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  padding: var(--card-padding);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--transition);
}
.container:hover {
  box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.08);
}

/* General Headings */
h1,
h2,
h3,
h4 {
  color: var(--primary-color);
  font-family: var(--font-family);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
h1 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 1em;
  margin-top: 0;
}
h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-soft);
  margin: 0.5em auto 0;
  border-radius: 3px;
}

/* General Form Styles */
.input-container {
  position: relative;
  margin-bottom: 20px;
}
.input-container label h3 {
  margin-bottom: 8px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary-dark);
}
.input-container label p {
  margin-top: -5px;
  margin-bottom: 12px;
  font-size: 0.9em;
  color: var(--text-secondary);
}
.input-field {
  width: 100%;
  padding: var(--input-padding);
  font-size: 1.05em;
  font-family: var(--font-family);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius);
  background-color: var(--background-main);
  color: var(--text-primary);
  box-sizing: border-box;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.input-field:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
  outline: none;
}

/* General Button Styles */
.button-container {
  display: flex;
  justify-content: center;
  gap: var(--control-gap);
  margin: 30px 0;
  flex-wrap: wrap;
}
.btn-grad,
.btn-secondary {
  padding: 12px 30px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.btn-grad:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-grad {
  background-image: var(--button-highlight-gradient); /* APPLYING HIGHLIGHT TO .btn-grad */
  color: var(--text-on-highlight); /* UPDATED text color for highlight */
}
.btn-secondary {
  background-color: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  border: 1px solid var(--border-medium);
}
.btn-secondary:hover {
  background-color: var(--button-secondary-hover-bg);
}

/* =========================
      Common Result & Analysis Styles
      ========================= */
.result-card {
  background: var(--background-main);
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  margin: 25px 0;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary-color);
  transition: transform var(--transition), box-shadow var(--transition);
}
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.number-display {
  font-size: 2em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin: 15px 0 20px 0;
}
.meaning-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
}
.meaning-title {
  font-size: 1.15em;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: 600;
}
.number-frequency {
  text-align: center;
  margin: 20px 0 25px 0;
  color: var(--text-secondary);
  font-size: 0.9em;
  line-height: 1.8;
}
.frequency-item {
  display: inline-block;
  background-color: var(--secondary-color-inline);
  color: var(--primary-dark);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.85em;
  margin: 2px 3px;
  border: 1px solid var(--primary-light);
  font-weight: 500;
}

/* =========================
      Common Mandala Base Styles
      ========================= */
.mandala-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 380px;
  margin: 30px auto 40px auto;
}
.mandala-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-primary);
  font-size: 2em;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: all var(--transition);
  cursor: pointer;
}
.mandala-center:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
}
.mandala-center.highlighted {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: var(--shadow-lg);
}
.mandala-connection {
  position: absolute;
  background: var(--primary-light);
  height: 1px;
  transform-origin: 0 50%;
  z-index: 1;
  transition: all var(--transition);
  pointer-events: none;
  opacity: 0;
}
.mandala-connection.active {
  opacity: 0.6;
}
.mandala-connection.highlighted {
  background: var(--primary-color);
  height: 2px;
  opacity: 1 !important;
}
.mandala-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed var(--primary-light);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
.mandala-rings.active {
  opacity: 1;
}

/* =========================
      Common Modal Styles
      ========================= */
  .modal {
      display: none;
      position: fixed;
      z-index: 2000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      /* Changed to a standard dark grey */
      background-color: rgba(26, 26, 26, 0.7); /* A deep charcoal grey */
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      opacity: 0;
      transition: opacity 0.3s ease;
      animation: fadeInModalBg 0.3s forwards;
    }
	
@keyframes fadeInModalBg {
  to {
    opacity: 1;
  }
}
.modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background-color: var(--background-main);
  color: var(--text-primary);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-width: 550px;
  width: 90%;
  position: relative;
  transform: scale(0.9) translateY(-20px);
  opacity: 0;
  border: 1px solid var(--border-color);
  animation: slideInModal 0.3s 0.1s forwards;
  max-height: 85vh;
  overflow-y: auto;
}
@keyframes slideInModal {
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.close-button {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition), transform 0.2s ease;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
}
.close-button:hover {
  color: var(--primary-color);
  background-color: rgba(var(--primary-color-rgb), 0.1);
  transform: rotate(90deg);
}

/* =========================
      Blog Section Styles
      ========================= */
.blog-section {
  background: var(--background-container);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--primary-color-rgb), 0.15);
  max-width: 900px;
  margin: 40px auto;
  padding: calc(var(--card-padding) + 10px); /* Slightly more padding */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}
.blog-section h2,
.blog-section h3,
.blog-section h4 {
  color: var(--primary-color);
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  font-weight: 700; /* Bolder for blog titles */
}
.blog-section h2 {
  font-size: 1.8em;
  text-align: center;
}
.blog-section h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 2.5px;
  background: var(--primary-soft);
  margin: 0.4em auto 0.8em;
  border-radius: 3px;
}
.blog-section h3 {
  font-size: 1.4em;
}
.blog-section h4 {
  font-size: 1.2em;
  color: var(--primary-dark);
}
.blog-section p,
.blog-section li {
  color: var(--text-secondary);
  line-height: var(--line-height-base);
  margin-bottom: 1em; /* Increased spacing for readability */
  font-size: 0.95rem;
}
.blog-section ul,
.blog-section ol {
  margin-left: 25px;
  margin-bottom: 1.2em;
}
.blog-section ul li {
  list-style-type: disc; /* Default disc */
}
.blog-section ol li {
  list-style-type: decimal; /* Default decimal */
}
.blog-section ul.linespace li, /* Targeting specific class if used */
.blog-section ol.linespace li {
  margin-bottom: 0.6em;
}
.blog-section .conversion-buttons {
  display: flex;
  gap: 20px; /* Increased gap */
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 40px; /* More space after buttons */
  flex-wrap: wrap;
}
.blog-section strong {
  color: var(--text-primary);
  font-weight: 600;
}
.blog-section a {
  text-decoration: none;
  font-weight: 500;
}
.blog-section a:hover {
  text-decoration: underline;
}
.fl {
  margin-top: 25px;
  padding: 20px;
  background-color: var(--secondary-color-inline);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
}
.fl p {
  margin-top: 0;
  font-weight: 600;
  color: var(--primary-dark);
}

/* =========================
      Footer
      ========================= */
footer.copy {
  color: var(--text-secondary);
  font-size: 0.85em;
  text-align: center;
  line-height: var(--line-height-base);  
  background: var(--background-container);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  padding: var(--card-padding);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--transition);
}
footer .evo-footer {
  margin-top: 15px;
  margin-bottom: 15px;
  font-weight: 500;
}
footer .evo-footer a,
footer.copy a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 600;
}
footer .evo-footer a:hover,
footer.copy a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
footer .heart {
  font-size: 1.2em;
  position: relative;
  top: 3px;
  color: #d15a6e; /* Themed heart */
  transition: color 1s, transform 0.35s;
}
footer.copy:hover .heart {
  color: var(--primary-color); /* Darker on hover */
  animation: beat 0.35s infinite alternate;
}
@keyframes beat {
  to {
    transform: scale(1.4);
  }
}
footer .disclaimer {
  font-size: 0.9em;
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  opacity: 0.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
footer .disclaimer p {
  margin-bottom: 10px;
}

/* =========================
      Utilities & Media Queries
      ========================= */
/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--secondary-color);
  border-radius: var(--border-radius);
}
::-webkit-scrollbar-thumb {
  background-color: var(--primary-soft);
  border-radius: var(--border-radius);
  border: 2px solid var(--secondary-color);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color);
}

/* Responsive Overrides for general elements */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  .mandala-container {
    max-width: 340px;
    height: 340px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8em;
  }
  .container {
    padding: 15px;
  }
  .button-container {
    flex-direction: column;
    gap: 10px;
  }
  .btn-grad,
  .btn-secondary {
    width: 100%;
    margin-top: 10px;
    padding: 12px 20px;
  }
  .mandala-container {
    max-width: 280px;
    height: 280px;
  }
  .mandala-center {
    width: 50px;
    height: 50px;
    font-size: 1.6em;
  }
  .result-card {
    padding: 15px;
  }
  .number-display {
    font-size: 1.8em;
  }
  .meaning-title {
    font-size: 1.05em;
  }
  .modal-content {
    padding: 20px;
  }
  .blog-section {
    padding: var(--card-padding);
  }
}