/* ================================================================
   style.css — The Subconscious Mind & Music
   Custom styles to complement Tailwind CSS
   ================================================================ */

/* ── Base ─────────────────────────────────────────────────────── */
body {
  background-color: #0B0F19;
  color: #F8FAFC;
  font-family: 'Inter', sans-serif;
}

/* ── Gradient noise overlay for hero ─────────────────────────── */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(168, 85, 247, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 10% 70%, rgba(99, 102, 241, 0.10) 0%, transparent 60%),
    #0B0F19;
}

/* ── Glassmorphism card ───────────────────────────────────────── */
.glass-card {
  background: rgba(22, 31, 48, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.18), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

/* ── Glow button ──────────────────────────────────────────────── */
.btn-glow {
  background: linear-gradient(135deg, #6366F1, #A855F7);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(168, 85, 247, 0.25);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 32px rgba(99, 102, 241, 0.75), 0 0 64px rgba(168, 85, 247, 0.45);
  transform: translateY(-2px) scale(1.03);
}

/* ── Accent gradient text ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #F8FAFC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Card icon glow ───────────────────────────────────────────── */
.icon-glow {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

/* ── Scroll fade-in (legacy helper) ──────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Animated background orb ─────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

/* ── Section divider line ─────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

/* ── Number badge on cards ────────────────────────────────────── */
.card-number {
  background: linear-gradient(135deg, #6366F1, #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ──────────────────────────────────────────────────────────────
   TAB COMPONENT
   ────────────────────────────────────────────────────────────── */

/* Inactive tab button */
.tab-btn {
  background: rgba(22, 31, 48, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.12);
  width: 100%;
}

.tab-btn .tab-icon {
  background: rgba(99, 102, 241, 0.08);
  color: #94A3B8;
}

.tab-btn .tab-label {
  color: #94A3B8;
}

.tab-btn .tab-sub {
  color: #475569;
}

/* Hover state */
.tab-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.tab-btn:hover .tab-label {
  color: #F8FAFC;
}

.tab-btn:hover .tab-icon {
  color: #6366F1;
  background: rgba(99, 102, 241, 0.15);
}

/* Active tab button */
.tab-btn.active-tab {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.10));
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.12), inset 0 0 12px rgba(168, 85, 247, 0.04);
}

.tab-btn.active-tab .tab-label {
  color: #F8FAFC;
}

.tab-btn.active-tab .tab-sub {
  color: #A855F7;
}

.tab-btn.active-tab .tab-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.2));
  color: #A855F7;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}

/* Tab panel fade-in animation */
.tab-panel {
  animation: tabFadeIn 0.35s ease forwards;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ──────────────────────────────────────────────────────────────
   ACCORDION COMPONENT
   ────────────────────────────────────────────────────────────── */

.accordion-trigger {
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-trigger:hover {
  background: rgba(99, 102, 241, 0.06);
}

/* Rotate chevron icon when open */
.accordion-trigger[aria-expanded="true"] .accordion-chevron svg {
  transform: rotate(180deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.08);
}

/* Glow border on active accordion item */
.accordion-item.is-open {
  border-color: rgba(168, 85, 247, 0.35) !important;
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.10);
}

/* ──────────────────────────────────────────────────────────────
   GLOBAL SCROLL-REVEAL
   ────────────────────────────────────────────────────────────── */

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance delays for sibling elements */
.reveal-up:nth-child(2) {
  transition-delay: 0.10s;
}

.reveal-up:nth-child(3) {
  transition-delay: 0.20s;
}

.reveal-up:nth-child(4) {
  transition-delay: 0.30s;
}

/* ──────────────────────────────────────────────────────────────
   FLOWCHART
   ────────────────────────────────────────────────────────────── */

.flowchart-step {
  position: relative;
}

/* ──────────────────────────────────────────────────────────────
   STICKY NAVIGATION BAR
   ────────────────────────────────────────────────────────────── */

#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#site-nav.scrolled {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(99, 102, 241, 0.15);
}

.nav-link {
  color: #94A3B8;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: #F8FAFC;
}