/* ==========================================================================
   VERTIGO CO - BASE STYLES & LAYOUT RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark-void);
  color: var(--text-bright);
}

body {
  font-family: var(--font-body);
  background: #06020a;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  color: var(--metal-silver);
}

/* Background Atmosphere Layers */
.bg-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

#particleCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 850px;
  background: url('../img/hero_bg.png') no-repeat center top / cover;
  opacity: 0.65;
  z-index: 0;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.dragon-bg-layer {
  position: absolute;
  top: 40px;
  right: -50px;
  width: 680px;
  height: 680px;
  background: url('../img/dragon_right.png') no-repeat center right / contain;
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 35px rgba(157, 52, 255, 0.4));
  animation: floatSlow 6s ease-in-out infinite;
}

.lightning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px;
  background: radial-gradient(circle at 70% 30%, rgba(157, 52, 255, 0.25) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  animation: lightningFlash 8s infinite;
}

/* Main Container Wrapper */
.app-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  letter-spacing: 1px;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Reusable Gothic Box Frame Components */
.gothic-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--purple-border);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(157, 52, 255, 0.1);
  transition: var(--transition-normal);
}

.gothic-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  pointer-events: none;
}

/* Gothic Decorative Corner Accents */
.gothic-box .corner-tl,
.gothic-box .corner-tr,
.gothic-box .corner-bl,
.gothic-box .corner-br {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--purple-bright);
  pointer-events: none;
}

.gothic-box .corner-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.gothic-box .corner-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.gothic-box .corner-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.gothic-box .corner-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-void);
}
::-webkit-scrollbar-thumb {
  background: var(--purple-dark);
  border-radius: 4px;
  border: 1px solid var(--purple-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple-glow);
}
