/* ===================================
   INFERNAL CHOICE - CSS DESIGN SYSTEM
   Dark Gothic-Corporate Aesthetic
   =================================== */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================================
   CSS CUSTOM PROPERTIES
   =================================== */
:root {
  /* Colors - Infernal Palette */
  --color-black: #0a0a0a;
  --color-dark: #1a1a1a;
  --color-darker: #0f0f0f;
  --color-charcoal: #2a2a2a;
  
  /* Purple Theme */
  --color-purple-dark: #2d1b47;
  --color-purple: #6b46c1;
  --color-purple-light: #9f7aea;
  --color-purple-glow: rgba(159, 122, 234, 0.4);
  
  /* Red/Infernal Theme */
  --color-red-dark: #4a1616;
  --color-red: #dc2626;
  --color-red-light: #f87171;
  --color-red-glow: rgba(248, 113, 113, 0.4);
  
  /* Accent Colors */
  --color-gold: #fbbf24;
  --color-white: #ffffff;
  --color-gray: #a0a0a0;
  --color-gray-light: #d4d4d4;
  
  /* Gradients */
  --gradient-purple: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple) 100%);
  --gradient-red: linear-gradient(135deg, var(--color-red-dark) 0%, var(--color-red) 100%);
  --gradient-infernal: linear-gradient(135deg, #2d1b47 0%, #4a1616 50%, #dc2626 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.8) 100%);
  
  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-purple: 0 0 30px var(--color-purple-glow);
  --shadow-red: 0 0 30px var(--color-red-glow);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-black);
  color: var(--color-gray-light);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background-color: var(--color-purple);
  color: var(--color-white);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--spacing-sm);
}

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray-light);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(159, 122, 234, 0.1);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: var(--shadow-md);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-white);
  text-decoration: none;
  background: var(--gradient-infernal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.1em;
  transition: all var(--transition-normal);
}

.logo:hover {
  filter: brightness(1.2);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-links a {
  color: var(--color-gray-light);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-purple);
  transition: width var(--transition-normal);
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--color-white);
  transition: all var(--transition-fast);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-md);
  animation: fadeInUp 1s ease;
}

.hero-title {
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 40px var(--color-purple-glow),
               0 0 80px var(--color-red-glow);
  animation: glow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--color-gray-light);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-display);
  font-weight: 400;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gradient-purple);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px var(--color-purple-glow);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-white);
  opacity: 0.7;
}

/* ===================================
   SECTION LAYOUTS
   =================================== */
.section {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--gradient-purple);
  margin: var(--spacing-sm) auto 0;
}

/* ===================================
   GLASSMORPHISM CARDS
   =================================== */
.glass-card {
  background: rgba(42, 42, 42, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(159, 122, 234, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-purple);
  box-shadow: var(--shadow-purple);
}

/* ===================================
   CHARACTER GALLERY
   =================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
  filter: brightness(0.8);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: var(--gradient-overlay);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-white);
}

/* ===================================
   STORY HIGHLIGHTS
   =================================== */
.story-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  transform: translateY(50px);
  transition: all var(--transition-slow);
}

.story-highlight.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-highlight:nth-child(even) {
  direction: rtl;
}

.story-highlight:nth-child(even) > * {
  direction: ltr;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.story-highlight:hover .story-image img {
  transform: scale(1.05);
}

.story-text h3 {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--color-darker);
  border-top: 1px solid rgba(159, 122, 234, 0.1);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-infernal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.footer-text {
  color: var(--color-gray);
  margin-bottom: var(--spacing-md);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  list-style: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(159, 122, 234, 0.1);
  color: var(--color-purple-light);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background: var(--color-purple);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-purple);
}

.copyright {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(159, 122, 234, 0.1);
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px var(--color-purple-glow),
                 0 0 40px var(--color-red-glow);
  }
  to {
    text-shadow: 0 0 40px var(--color-purple-glow),
                 0 0 80px var(--color-red-glow),
                 0 0 120px var(--color-purple);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .story-highlight {
    grid-template-columns: 1fr;
  }
  
  .story-highlight:nth-child(even) {
    direction: ltr;
  }
  
  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
}
