/* Alumni Alsemat — Sacred design system */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body { background-color: #050505; color: #eae1d4; overflow-x: hidden; min-height: 100vh; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #BF953F, #AA771C); border-radius: 4px; }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* Glassmorphism cards */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(242, 202, 80, 0.1);
  box-shadow: inset 0 0 20px rgba(242, 202, 80, 0.02), 0 8px 32px rgba(0,0,0,0.4);
}
.glass-card-strong {
  background: rgba(35, 31, 23, 0.6);
  backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glows */
.gold-glow { box-shadow: 0 0 60px rgba(242, 202, 80, 0.15); }
.gold-glow-sm { box-shadow: 0 0 20px rgba(242, 202, 80, 0.2); }
.gold-glow-strong { box-shadow: 0 0 80px rgba(242, 202, 80, 0.35); }

/* Gold gradient text */
.text-gradient-gold {
  background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 30%, #B38728 50%, #FBF5B7 70%, #AA771C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Particle overlay */
.particle-overlay {
  background-image: radial-gradient(circle, rgba(242, 202, 80, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Volumetric light */
.volumetric-light {
  background: radial-gradient(circle at 50% -20%, rgba(242, 202, 80, 0.18) 0%, transparent 70%);
}
.ethereal-blur { filter: blur(120px); }

/* Arched container */
.arch-container { border-radius: 500px 500px 24px 24px; }

/* Logo fragments wrapper */
.logo-main-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

/* Gold metallic button */
.btn-gold {
  background: linear-gradient(135deg, #f2ca50 0%, #e9c349 50%, #BF953F 100%);
  color: #3c2f00;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 20px rgba(242,202,80,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(242,202,80,0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-gold:active { transform: scale(0.97); }

.btn-outline-gold {
  border: 1px solid rgba(242, 202, 80, 0.4);
  color: #f2ca50;
  background: transparent;
  transition: all 0.3s ease;
}
.btn-outline-gold:hover { background: rgba(242,202,80,0.1); border-color: #f2ca50; }

/* Sacred divider */
.sacred-divider {
  display: flex; align-items: center; gap: 1rem; justify-content: center;
}
.sacred-divider::before, .sacred-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,202,80,0.5), transparent);
  max-width: 120px;
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* 3D tilt card */
.tilt-card { transform-style: preserve-3d; transition: transform 0.4s ease-out; }

/* Sacred ornaments */
.cross-mini {
  width: 1px; height: 16px; background: linear-gradient(180deg, transparent, #f2ca50, transparent);
  position: relative;
}
.cross-mini::before {
  content: ''; position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  width: 10px; height: 1px; background: #f2ca50;
}

/* Stat card */
.stat-card {
  background: linear-gradient(160deg, rgba(242,202,80,0.05) 0%, rgba(0,0,0,0) 100%);
  border: 1px solid rgba(242,202,80,0.15);
  border-radius: 12px;
  transition: all 0.3s;
}
.stat-card:hover { border-color: rgba(242,202,80,0.4); transform: translateY(-4px); }

/* Table */
.table-sacred { width: 100%; border-collapse: collapse; }
.table-sacred th { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #f2ca50; padding: 16px; text-align: left; border-bottom: 1px solid rgba(242,202,80,0.2); }
.table-sacred td { padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; color: #d0c5af; }
.table-sacred tr:hover td { background: rgba(242,202,80,0.03); }

/* Form */
.input-sacred {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(242,202,80,0.2);
  padding: 12px 16px; border-radius: 8px; color: #eae1d4; font-size: 15px; transition: all 0.3s;
}
.input-sacred:focus { outline: none; border-color: #f2ca50; background: rgba(242,202,80,0.05); box-shadow: 0 0 0 3px rgba(242,202,80,0.15); }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 4px 10px;
  border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600;
}
.badge-gold { background: rgba(242,202,80,0.15); color: #f2ca50; border: 1px solid rgba(242,202,80,0.3); }
.badge-green { background: rgba(58,138,77,0.15); color: #6dcb84; border: 1px solid rgba(58,138,77,0.3); }
.badge-red { background: rgba(200,48,42,0.15); color: #ff8b85; border: 1px solid rgba(200,48,42,0.3); }
.badge-blue { background: rgba(56,189,248,0.15); color: #38BDF8; border: 1px solid rgba(56,189,248,0.3); }

/* Hover lift */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px rgba(242,202,80,0.1); }

/* Page transition */
main { animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Loader */
.loader {
  width: 40px; height: 40px;
  border: 3px solid rgba(242,202,80,0.15);
  border-top-color: #f2ca50;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Sacred geometry SVG flourishes */
.flourish-line {
  background: linear-gradient(90deg, transparent, #f2ca50, transparent);
  height: 1px;
}

/* Three.js canvas backdrop */
#three-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
}

/* Hero logo container */
.hero-logo-stage {
  position: relative; width: min(560px, 90vw); height: min(560px, 90vw);
  margin: 0 auto;
}

/* Pulsing halo ring */
.halo-ring {
  position: absolute;
  inset: -15%;
  border: 2px solid rgba(242, 202, 80, 0.1);
  border-radius: 50%;
  animation: pulse-halo-ring 4s ease-in-out infinite;
  z-index: 5;
}
@keyframes pulse-halo-ring {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0.6; box-shadow: 0 0 50px rgba(242, 202, 80, 0.2); }
}

/* Explosion light effect */
.logo-glow-explosion {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #FCF6BA 0%, #f2ca50 40%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  z-index: 15;
  filter: blur(20px);
}

/* Page hero spacing */
.page-hero { padding-top: 8rem; padding-bottom: 4rem; }

/* Responsive headings */
@media (max-width: 768px) {
  .text-display-hero { font-size: 44px !important; }
  .text-headline-lg { font-size: 30px !important; }
}

/* Smooth lenis */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
/* Dashboard Layout */
.dashboard-container { display: flex; min-height: 100vh; }
.dashboard-sidebar {
  width: 280px;
  background: rgba(18, 14, 7, 0.95);
  backdrop-filter: blur(40px);
  border-r: 1px solid rgba(242, 202, 80, 0.1);
  position: fixed;
  height: 100vh;
  z-index: 50;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
}
.dashboard-main { flex: 1; margin-left: 280px; padding: 2rem; position: relative; z-index: 10; }

@media (max-width: 1024px) {
  .dashboard-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .dashboard-sidebar.is-active { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
}

/* Artifact cards from reference */
.artifact-card {
  background: linear-gradient(135deg, rgba(35, 31, 23, 0.8), rgba(13, 12, 8, 0.9));
  border: 1px solid rgba(242, 202, 80, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.artifact-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 202, 80, 0.4), transparent);
}
.artifact-card:hover {
  box-shadow: 0 0 40px rgba(242, 202, 80, 0.15);
  border-color: rgba(242, 202, 80, 0.5);
  transform: translateY(-4px);
}

/* Divine Button */
.divine-button {
  background: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  box-shadow: 0 0 20px rgba(191, 149, 63, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #241a00 !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.divine-button:hover {
  box-shadow: 0 0 30px rgba(252, 246, 186, 0.5);
  transform: translateY(-2px);
}

/* Ledger Table */
.ledger-row:hover { background: rgba(242, 202, 80, 0.05); }
.ledger-line { background: linear-gradient(90deg, transparent, rgba(242, 202, 80, 0.2), transparent); height: 1px; width: 100%; }

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Metallic Border */
.metallic-border {
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(13,12,8,0.8), rgba(13,12,8,0.8)), linear-gradient(135deg, #BF953F, #FCF6BA, #AA771C);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Light Spill */
.light-spill { position: relative; }
.light-spill::after {
  content: ''; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 80%; height: 40px; background: radial-gradient(ellipse at center, rgba(242, 202, 80, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Animated Border */
@keyframes border-glow {
  0% { border-color: rgba(242, 202, 80, 0.1); }
  50% { border-color: rgba(242, 202, 80, 0.4); }
  100% { border-color: rgba(242, 202, 80, 0.1); }
}
.animate-border { animation: border-glow 4s infinite; }
