/* ==========================================================================
   SHIVTELL - Modern Dark & Cinematic Design System
   Obsidian, Electric Cyan, Vivid Purple & Cosmic Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,800;1,400&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Color Palette */
  --bg-obsidian-deep: #05060a;
  --bg-obsidian-dark: #0a0c14;
  --bg-obsidian-card: rgba(15, 19, 32, 0.75);
  --bg-obsidian-glass: rgba(18, 24, 42, 0.55);

  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.4);
  --accent-purple: #9d4edd;
  --accent-purple-glow: rgba(157, 78, 221, 0.4);
  --accent-gold: #ffd700;
  --accent-gold-glow: rgba(255, 215, 0, 0.4);
  --accent-magenta: #ff007f;

  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-neon-cyan: rgba(0, 240, 255, 0.35);
  --border-neon-purple: rgba(157, 78, 221, 0.35);

  /* Typography */
  --font-header: 'Cinzel', serif;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
  --font-script: 'Fira Code', monospace;

  /* Shadows & Blur */
  --shadow-neon-cyan: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-neon-purple: 0 0 25px rgba(157, 78, 221, 0.25);
  --shadow-glass: 0 20px 40px rgba(0, 0, 0, 0.6);
  --blur-glass: blur(16px);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-obsidian-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #111628 0%, #05060a 100%);
  color: var(--text-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Particle Canvas Background */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

/* Typography Utilities */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-header);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 60%, #80f7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fff7cc 0%, var(--accent-gold) 50%, #ff9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #f3e8ff 0%, var(--accent-purple) 60%, var(--accent-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(10, 12, 20, 0.7);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(5, 6, 10, 0.92);
  border-bottom: 1px solid var(--border-neon-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  animation: pulseGlow 4s infinite alternate;
}

.brand-title {
  font-family: var(--font-header);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
}

.brand-title span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: var(--transition-fast);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-ambient {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-ambient:hover, .btn-ambient.playing {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
  background: rgba(255, 215, 0, 0.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Glassmorphic Cards */
.glass-card {
  background: var(--bg-obsidian-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-neon-cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), var(--shadow-neon-cyan);
}

.glass-card:hover::before {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-gold));
}

/* Buttons & CTAs */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 30px;
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 198, 255, 0.4);
  transition: var(--transition-normal);
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-normal);
  transform: scale(0.5);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.6);
}

.btn-primary:hover::after {
  opacity: 1;
  transform: scale(1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--blur-glass);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: rgba(157, 78, 221, 0.15);
  border-color: var(--accent-purple);
  color: #fff;
  box-shadow: var(--shadow-neon-purple);
  transform: translateY(-3px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8800 100%);
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
  transition: var(--transition-normal);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

/* Layout Containers & Sections */
main {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.page-section {
  display: none;
  min-height: calc(100vh - 80px);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.page-section.active {
  display: block;
  opacity: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-neon-cyan);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Hero Section */
.hero-container {
  min-height: calc(100vh - 80px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.2) contrast(1.1);
  z-index: -1;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
}

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
  box-shadow: var(--shadow-neon-purple);
  animation: float 3s ease-in-out infinite alternate;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Keyframe Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px var(--accent-cyan-glow); }
  100% { box-shadow: 0 0 30px var(--accent-purple-glow); }
}

@keyframes spinRune {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  background: var(--bg-obsidian-dark);
  border-top: 1px solid var(--border-glass);
  padding: 60px 5% 30px 5%;
  margin-top: 80px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-column h4 {
  color: var(--accent-cyan);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: rgba(15, 20, 35, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-neon-cyan);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(10, 12, 20, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    transition: var(--transition-normal);
  }

  .nav-links.mobile-active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
