/* ===============================================================
   shared.css – Ortak stiller (navbar, footer, cosmic bg, utils)
   =============================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:        #080414;
  --c-bg2:       #0f0621;
  --c-purple:    #7c3aed;
  --c-purple-l:  #a855f7;
  --c-purple-d:  #4a1f8a;
  --c-gold:      #f5c842;
  --c-gold-l:    #fde68a;
  --c-gold-d:    #d4a017;
  --c-white:     #ffffff;
  --c-w80:       rgba(255,255,255,.8);
  --c-w60:       rgba(255,255,255,.6);
  --c-w30:       rgba(255,255,255,.3);
  --c-w15:       rgba(255,255,255,.15);
  --c-w08:       rgba(255,255,255,.08);
  --c-w04:       rgba(255,255,255,.04);

  --grad-purple: linear-gradient(135deg,#7c3aed,#a855f7);
  --grad-gold:   linear-gradient(135deg,#f5c842,#fbbf24,#f59e0b);
  --grad-card:   linear-gradient(145deg,rgba(124,58,237,.18),rgba(168,85,247,.06));
  --grad-hero:   linear-gradient(145deg,#080414 0%,#140830 50%,#080414 100%);

  --ff-title: 'Cinzel', serif;
  --ff-body:  'Inter', sans-serif;
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-xl: 40px;
  --trans: .3s cubic-bezier(.4,0,.2,1);
  --shadow-card: 0 8px 48px rgba(0,0,0,.5);
  --glow-purple: 0 0 40px rgba(124,58,237,.45);
  --glow-gold:   0 0 40px rgba(245,200,66,.3);
}

html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); background: var(--c-bg); color: var(--c-white); overflow-x: hidden; line-height: 1.65; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-purple-d); border-radius: 3px; }

/* ── Cosmic background ── */
.cosmic-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at 20% 20%, #180a38 0%, #080414 60%);
}
.stars-layer {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 20%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 80%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 70%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 75% 10%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 5% 55%, rgba(255,255,255,.2) 0%, transparent 100%);
  background-size: 400px 400px;
  animation: starsTwinkle 8s ease-in-out infinite alternate;
}
@keyframes starsTwinkle { 0% { opacity:.7; } 100% { opacity:1; } }
.nebula-layer {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(124,58,237,.12), transparent),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(74,31,138,.1), transparent),
    radial-gradient(ellipse 40% 30% at 50% 10%, rgba(245,200,66,.04), transparent);
  animation: nebulaDrift 15s ease-in-out infinite alternate;
}
@keyframes nebulaDrift { 0% { transform: scale(1) rotate(0deg); } 100% { transform: scale(1.05) rotate(2deg); } }

/* ── Common utilities ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.section { padding: 100px 0; position: relative; z-index: 2; }
.sec-head { text-align: center; margin-bottom: 64px; }
.sec-badge {
  display: inline-block; font-family: var(--ff-title); font-size: .75rem;
  letter-spacing: .22em; color: var(--c-gold); margin-bottom: 14px; text-transform: uppercase;
}
.sec-title {
  font-family: var(--ff-title); font-size: clamp(2rem,5vw,3.2rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 16px;
}
.sec-desc { color: var(--c-w80); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.shine-text {
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.italic-gold { font-style: italic; }
.italic-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════ NAVBAR ══════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background var(--trans), box-shadow var(--trans);
}
.navbar.scrolled {
  background: rgba(8,4,20,.93);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(124,58,237,.25), 0 4px 30px rgba(0,0,0,.5);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 32px;
  transition: padding var(--trans);
}
.navbar.scrolled .nav-inner { padding: 12px 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 16px rgba(124,58,237,.5); }
.logo-text {
  font-family: var(--ff-title); font-size: 1.35rem; font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; list-style: none; gap: 28px; margin-left: auto; }
.nav-link {
  color: var(--c-w80); text-decoration: none; font-size: .92rem; font-weight: 400;
  transition: color var(--trans); position: relative; padding-bottom: 2px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--grad-gold); border-radius: 1px;
  transform: scaleX(0); transition: transform var(--trans); transform-origin: center;
}
.nav-link:hover, .nav-link.active { color: var(--c-white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta {
  display: flex; align-items: center; gap: 7px;
  background: var(--grad-purple); color: var(--c-white);
  padding: 9px 22px; border-radius: 50px; font-size: .88rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 20px rgba(124,58,237,.45);
  transition: transform var(--trans), box-shadow var(--trans);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 30px rgba(124,58,237,.7); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--c-white); border-radius: 2px; transition: all var(--trans); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  background: rgba(8,4,20,.97); padding: 12px 24px 24px;
  border-top: 1px solid var(--c-w08);
  backdrop-filter: blur(20px);
}
.mobile-menu.open { display: flex; }
.mob-link { color: var(--c-w80); text-decoration: none; font-size: 1rem; padding: 12px 0; border-bottom: 1px solid var(--c-w04); }
.mob-link:hover { color: var(--c-white); }
.mob-cta {
  margin-top: 12px; text-align: center; padding: 14px;
  background: var(--grad-purple); border-radius: var(--r-md);
  color: var(--c-white); font-weight: 600; text-decoration: none;
}

/* ══════ FOOTER ══════ */
.footer {
  background: var(--c-bg); border-top: 1px solid var(--c-w08);
  padding: 0; position: relative; z-index: 2;
}
.footer-top {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 40px; padding: 60px 0 40px; border-bottom: 1px solid var(--c-w04);
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.footer-brand-name { font-family: var(--ff-title); font-size: 1.2rem; color: var(--c-gold); font-weight: 700; }
.footer-brand-sub { font-size: .82rem; color: var(--c-w60); }
.footer-nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.fn-col { display: flex; flex-direction: column; gap: 10px; }
.fn-col h4 { font-family: var(--ff-title); font-size: .8rem; color: var(--c-gold); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.fn-col a { color: var(--c-w60); text-decoration: none; font-size: .88rem; transition: color var(--trans); }
.fn-col a:hover { color: var(--c-purple-l); }
.footer-bottom {
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--c-w30); flex-wrap: wrap; gap: 12px;
}
.footer-links-row { display: flex; gap: 20px; }
.footer-links-row a { color: var(--c-w30); text-decoration: none; transition: color var(--trans); }
.footer-links-row a:hover { color: var(--c-w80); }

/* Buttons */
.btn-outline-gold {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--c-gold); color: var(--c-gold);
  padding: 14px 28px; border-radius: 50px; font-size: .95rem; font-weight: 600;
  text-decoration: none; transition: all var(--trans);
}
.btn-outline-gold:hover { background: var(--grad-gold); color: #1a1000; border-color: transparent; box-shadow: var(--glow-gold); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; }
}
