:root {
  /* Yin-Yang Core Palette — balanced, glowing, soft but sharp */
  --dark-core: #121212;          /* Deep, rich black — not flat */
  --light-core: #F8F9FA;         /* Soft luminous white — not harsh */
  --hue-dark: #2A2A40;           /* Cool blue‑hued dark — glow base */
  --hue-light: #E2E8F0;          /* Soft pearl glow — luminous edge */
  --accent-balance: #7B61FF;     /* Purple/indigo — balance & harmony */
  --accent-glow: #A78BFA;        /* Soft glow highlight */
  --text-dark: #1F2937;
  --text-light: #F3F4F6;
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 25px rgba(123, 97, 255, 0.15);
  --border-soft: 1px solid rgba(255,255,255,0.1);
  --border-sharp: 1px solid rgba(0,0,0,0.05);

  /* Logo positioning variables — matches your ⅔‑up offset */

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

body {
  background: var(--light-core);
  color: var(--text-dark);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

/* ✅ OURGANI YIN-YANG BACKGROUND — ALWAYS PRESENT, SUBTLE */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url(../assets/images/OurganiYinYang-logo[1.0].png);
  background-size: 60vmin;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.04;
  filter: grayscale(20%) brightness(1.1);
  pointer-events: none;
}

/* ✅ FIXED CORNER LOGO — HOME PAGE ONLY */

/* --- HEADER — Yin-Yang Balance Style --- */
header {
  padding: 4rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-public {
  background: linear-gradient(135deg, var(--dark-core) 0%, var(--hue-dark) 100%);
  color: var(--text-light);
  border-bottom: var(--border-soft);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

/* ✅ Large logo BEHIND header text, centered, scaled */
.header-public::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-image: url(../assets/images/OurganiYinYang-logo[1.0].png);
  background-size: 60vmin;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

/* ✅ Bring text ABOVE logo */
.header-public h1,
.header-public .tagline {
  position: relative;
  z-index: 2;
}

.header-public::before,
.header-public::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.12;
  filter: blur(40px);
}

.header-public::before {
  top: -100px;
  left: -100px;
}

.header-public::after {
  bottom: -100px;
  right: -100px;
}

header h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  margin-top: 1rem; /* ↓ lowers text to sit nicely with logo */
  position: relative;
}

.tagline {
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 300;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* --- NAVIGATION — Sharp, Clean, Glow Hover --- */
.nav-main {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  padding: 1.2rem 5%;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: var(--border-sharp);
}

.nav-main ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-main a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--accent-balance);
}

.nav-main a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-balance), var(--accent-glow));
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-main a:hover::after,
.nav-main a.active::after {
  width: 100%;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* --- MAIN CONTENT — Clean, Spacious, Luminous Cards --- */
.section-content {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

h2 {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--dark-core);
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--accent-balance), transparent) 1;
}

h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--hue-dark);
  margin: 2rem 0 1rem;
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  max-width: 900px;
}

/* --- Architecture Blocks — The "Yin-Yang" Card Style --- */
.architecture-block {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 
    var(--shadow-soft),
    inset 0 1px 0 rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  border: var(--border-sharp);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle logo inside cards too — very faint */
.architecture-block::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 32px;
  height: 32px;
  background-image: url(../assets/images/OurganiYinYang-logo[1.0].png);
  background-size: 200%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.02;
  z-index: 0;
  pointer-events: none;
}

.architecture-block:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 30px rgba(0,0,0,0.1),
    0 0 20px rgba(123, 97, 255, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.architecture-block a {
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

/* --- LISTS — Clean, ordered, balanced --- */
.principles-list {
  margin: 1rem 0 1rem 1.8rem;
}

.principles-list li {
  margin-bottom: 0.6rem;
  position: relative;
}

.principles-list li::marker {
  color: var(--accent-balance);
}

/* --- CTA BLOCK — Glowing Accent --- */
.cta-block {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.05) 0%, rgba(167, 139, 250, 0.08) 100%);
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(123, 97, 255, 0.1);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--accent-balance) 0%, var(--accent-glow) 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(123, 97, 255, 0.2);
  position: relative;
  z-index: 2;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(123, 97, 255, 0.3);
}

/* --- FOOTER — Dark, Glowing Edge --- */
footer {
  background: linear-gradient(135deg, var(--dark-core) 0%, var(--hue-dark) 100%);
  color: var(--text-light);
  text-align: center;
  padding: 2rem 5%;
  margin-top: 4rem;
  border-top: var(--border-soft);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  position: relative;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  header h1 { font-size: 2rem; }
  .nav-main ul { gap: 1.5rem; }
  .section-content { padding: 2rem 5%; }
  .cta-block { padding: 1.5rem; }
  body.home-page::after { width: 60px; height: 60px; top: 1rem; right: 1rem; }
  body::before { background-size: 80vmin; }
}

/* --- FIX: Remove underlines from clickable blocks --- */
.block-link,
.block-link:visited,
.block-link:hover,
.block-link:active {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  color: inherit;
}
.block-link h3,
.block-link p {
  text-decoration: none !important;
}

/* --- DROPDOWN NAV — SIDE-BY-SIDE, SLIM BANNER --- */
.nav-main ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  flex-wrap: nowrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
}

.nav-main li {
  position: relative;
}

/* ✅ Arrow ONLY on items with dropdown */
.nav-main .has-dropdown > a::after {
  content: " ▾";
  font-size: 0.75rem;
  opacity: 0.65;
  margin-left: 0.3rem;
  transition: transform 0.25s ease;
}
.nav-main .has-dropdown.open > a::after {
  transform: rotate(180deg);
}

/* ✅ Hide dropdown by default */
.nav-main .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  min-width: 220px;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 9999;
}

/* Dropdown links style */
.nav-main .dropdown-menu li {
  width: 100%;
}
.nav-main .dropdown-menu a {
  display: block;
  padding: 0.8rem 1.4rem;
  color: var(--text-dark);
  text-decoration: none !important;
  transition: all 0.25s ease;
  border-bottom: none !important;
  font-weight: 400;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-main .dropdown-menu a:hover {
  background: rgba(123, 97, 255, 0.08);
  color: var(--accent-balance);
  padding-left: 1.8rem;
}

/* ✅ DESKTOP: Hover = open, leave = close */
@media (min-width: 993px) {
  .nav-main .has-dropdown:hover > .dropdown-menu {
    display: block;
  }
  .nav-main .has-dropdown:hover > a::after {
    transform: rotate(180deg);
  }
  /* No forced open class on desktop hover */
}

/* ✅ MOBILE: Tap = toggle, no hover */
@media (max-width: 992px) {
  .nav-main .has-dropdown.open > .dropdown-menu {
    display: block;
  }
}

/* ✅ Mobile: keep side-by-side until small screen */
@media (max-width: 768px) {
  .nav-main ul {
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }
}
