
/* === Fancy overlay styles (non-destructive) ===
   Adds a modern gradient, glassy header, animated accents, and refined buttons/cards.
   Safe to remove without breaking base theme.
*/

:root{
  
  
  
  
  
  
  
  
  
  

    --bg: #0a0f0a;
    --bg-2: #0b130e;
    --fg: #f1fff7;
    --muted: #cfead8;
    --brand: #0a0a0a;           /* black */
    --brand-2: #16a34a;         /* emerald */
    --accent: #22c55e;          /* lighter emerald */
    --card: rgba(255,255,255,0.06);
    --stroke: rgba(255,255,255,0.12);
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

html, body{
  background: radial-gradient(1200px 600px at 10% -10%, rgba(34,197,94,0.18), transparent 60%),
              radial-gradient(800px 400px at 110% 10%, rgba(16,185,129,0.18), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--fg);
}

body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1,"calt" 1;
  text-rendering: optimizeLegibility;
}

/* Glassy header / nav */
.site-header, header.site-header, .gh-head, .site-nav, .nav {
  background: linear-gradient(180deg, rgba(13,16,24,0.75), rgba(13,16,24,0.35));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

/* Links with animated underline */
a{
  color: var(--fg);
  text-decoration: none;
  position: relative;
  transition: opacity .2s ease, color .2s ease, transform .2s ease;
}
a:hover{ color: #fff; }
a:not(.btn, .button)::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:1.5px;
  background: linear-gradient(90deg, #0a0a0a, #16a34a, #22c55e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
a:not(.btn, .button):hover::after{ transform: scaleX(1); }

/* Buttons */
button:not(.nav-toggle), .btn, .button, a.button, .gh-btn{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-weight:700;
  padding:.8rem 1.1rem;
  border-radius:999px;
  border:1px solid transparent;
  box-shadow: 0 6px 18px rgba(124,92,255,.35);
  transition: transform .15s ease, box-shadow .2s ease;
}
button:hover, .btn:hover, .button:hover, a.button:hover, .gh-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(34,211,238,.32);
}
/* Outline variant (auto by attr/class) */
.btn.outline, .button.outline, [data-variant="outline"]{
  background: transparent;
  color: var(--fg);
  border-color: var(--stroke);
  box-shadow:none;
}
.btn.outline:hover{ border-color: var(--brand-2); }

/* Cards */
.card, .post-card, .principal-card, article, .kg-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.card:hover, .post-card:hover, .principal-card:hover, article:hover, .kg-card:hover{
  transform: translateY(-2px);
  transition: transform .18s ease;
}

/* Headings with gradient text accent */
h1, h2, h3, .post-card-title{
  line-height:1.1;
  letter-spacing:-.02em;
}
h1 .accent, h2 .accent, .gradient, .brand {
  background: linear-gradient(90deg, #0a0a0a, #16a34a, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Subtle content fade-up on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.post-card, .principal-card, .kg-card, main, section{
  animation: fadeUp .5s ease both;
}

/* Fancy hr divider */
hr{
  border:0;
  height:1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
  margin: 2rem 0;
}

/* Footer polish */
footer, .site-footer {
  border-top: 1px solid var(--stroke);
  background: linear-gradient(0deg, rgba(13,16,24,0.55), rgba(13,16,24,0.25));
  backdrop-filter: blur(6px);
}
/* Tables */
table{
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border:1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}
th, td{ padding:.8rem 1rem; }
thead th{
  background: linear-gradient(180deg, rgba(124,92,255,0.10), transparent);
}
tbody tr + tr td{ border-top:1px solid var(--stroke); }

/* Images */
img{
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Inputs */
input, select, textarea{
  background: rgba(255,255,255,0.06);
  border:1px solid var(--stroke);
  color: var(--fg);
  border-radius: 12px;
  padding:.8rem 1rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus{
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.18);
}





/* === Fancy v3: Parallax + Reveal + Animated Borders === */

/* Animated gradient border for buttons (outline variant) */
.btn.outline, .button.outline, [data-variant="outline"]{
  position: relative;
  background: transparent;
  color: var(--fg);
  border: none;
  z-index: 0;
}
.btn.outline::before{
  content:"";
  position:absolute; inset:0;
  padding: 1px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, #0a0a0a, #16a34a, #22c55e, #0a0a0a);
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin 6s linear infinite;
  z-index: -1;
}
@keyframes spin { to { transform: rotate(1turn); } }

/* Scroll reveal baseline */
.reveal { 
  opacity: 0; 
  transform: translateY(10px) scale(0.98); 
  transition: opacity .5s ease, transform .5s ease; 
}
.reveal.is-visible{ 
  opacity: 1; 
  transform: translateY(0) scale(1); 
}

/* Apply reveal to common blocks without editing templates */
.post-card, .principal-card, .card, .kg-card, section.section { 
  will-change: transform, opacity; 
}

/* Parallax blob in hero using pseudo-element */
.hero::before{
  content:"";
  position:absolute;
  top:-20vh; left:-10vw;
  width: 60vmax; height: 60vmax;
  background: radial-gradient(closest-side, rgba(34,197,94,.18), transparent 70%);
  transform: translate3d(var(--px,0), calc(var(--py,0) * 0.6), 0);
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}
.hero { position: relative; overflow: hidden; }
.hero .hero-inner, .hero .cta-row { position: relative; z-index: 1; }


/* Keep hamburger clean (undo generic button styles) */
.nav-toggle{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: .5rem .25rem !important;
  width: auto;
  height: auto;
}
.nav-toggle span{
  display:block;
  width: 22px; height: 2px;
  background: var(--fg);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* Core Areas symmetry: 2×2 grid */
.section.pillars .card-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 700px){
  .section.pillars .card-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.section.pillars .card{
  display:flex;
  flex-direction: column;
}
.section.pillars .card .pill-link{ margin-top:auto; font-weight:700; }


/* === Contrast boost === */
body, p, li, .content, .content p, .content li { color: var(--fg); }
h1, h2, h3, h4, h5, h6 { color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.25); }
a { color: #eafff3; }
a:hover { color: #ffffff; }
.pill-link, .pill-link:hover { color: #a7f3d0; }
.section.pillars .card h3 { color: #ffffff; }
.section.pillars .card p { color: var(--fg); opacity: 0.96; }
.hero .hero-inner p { color: #eafff3; }
/* Buttons */
button:not(.nav-toggle), .btn, .button, a.button, .gh-btn { color: #ffffff; }
.btn.outline { color: #eafff3; }


/* === Bottom CTA button visibility fix === */
.section.cta .btn,
.section.cta a.btn {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 0 20px rgba(34,197,94,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.section.cta .btn:hover,
.section.cta a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(34,197,94,0.55);
}



/* === Logo integrations === */
/* Accessible visual-hide */
.sr-only {
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Hero banner as subtle watermark */
.hero .hero-banner {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 0;
}

.hero .hero-banner img {
  width: min(90vw, 1000px);
  height: auto;
  opacity: 0.08; /* makes it soft */
  filter: blur(1px) drop-shadow(0 0 20px rgba(0,0,0,0.6));
}

/* Keep text on top of banner */
.hero .hero-inner {
  position: relative;
  z-index: 1;
}

/* Brand stamp */
.section.brand-stamp{ padding: 2rem 0 1rem; }
.section.brand-stamp .container{ display:flex; justify-content:center; }
.section.brand-stamp img{
  width: clamp(160px, 22vw, 360px);
  height:auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
  opacity:.95;
}


/* Card icons */
.card-icon{
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(10,10,10,.35), rgba(34,197,94,.12));
  display:grid; place-items:center;
  margin-bottom:.65rem;
  box-shadow: var(--shadow);
}
.card-icon img{ width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }



/* === CLEAN HERO (no watermark, no blend lines) === */
.hero { 
  position: relative;
  min-height: clamp(48vh, 58vh, 66vh);
  background: transparent;  /* inherit page bg */
  border: none;
  overflow: hidden;
}
/* Disable any previous overlay/vignette/watermark */
.hero::before { content: none !important; background: none !important; }
.hero .hero-banner { display: none !important; }

/* Brand banner as a normal element below the paragraph */
.hero .hero-brand{
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 1rem auto 0;
}
.hero .hero-brand img{
  width: min(88vw, 960px);
  height: auto;
  opacity: .95;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,.35));
}

/* Keep hero text crisp */
.hero h1, .hero p, .hero .btn { text-shadow: 0 2px 10px rgba(0,0,0,.30); }


/* === Slim Pages polish === */
.page.container { max-width: 980px; }
.page-header { margin: .25rem 0 1rem; }
.page-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .25rem; }
.page-excerpt { color: var(--muted); margin: 0 0 .75rem; }
.page-image { margin: .5rem 0 1rem; }
.page-image img { border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); width: 100%; height: auto; }
.article-content { font-size: 1.06rem; line-height: 1.7; }
.article-content h2 { margin: 1.6rem 0 .6rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); border-bottom: 1px solid var(--stroke); padding-bottom: .35rem; }
.article-content h3 { margin: 1.1rem 0 .4rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.article-content p + p { margin-top: .65rem; }
