/* ========================================
   VIGILANT CROW - Modern Dark Gray Design
   Inspired by: Huemor, Zentry, Ellipsus
   ======================================== */

:root {
  /* Core Colors - Dark Gray Theme */
  --bg-primary: #1a1a1f;
  --bg-secondary: #25252b;
  --bg-tertiary: #2f2f37;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  
  /* Accent Colors */
  --accent-pink: #FF9500;
  --accent-pink-hover: #FF9500;
  --accent-purple: #FF9500;
  --accent-fuscia: #FF9500;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #007BFF 0%, #90298D 100%);
  --gradient-secondary: linear-gradient(135deg, #7858F9 0%, #E01F59 100%);
  
  /* Effects */
  --shadow-sm: 0 2px 8px #0000004d;
  --shadow-md: 0 4px 16px #00000066;
  --shadow-lg: 0 8px 32px #00000080;
  --glow-pink: 0 0 20px #e01f5966 /*#FD7E14 Orange,  #F97316 Orange*/;
  --glow-purple: 0 0 20px #7858f966;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ANIMATED STARS BACKGROUND
   ======================================== */

.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Static Twinkling Stars */
.stars-background::before,
.stars-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(1px 1px at 15% 40%, white, transparent);
  background-size: 200px 200px, 250px 250px, 300px 300px, 
                   350px 350px, 400px 400px, 450px 450px, 500px 500px;
  background-position: 0 0, 40px 60px, 130px 270px, 
                       70px 100px, 150px 250px, 200px 50px, 100px 150px;
  opacity: 0.4;
  animation: twinkle 8s ease-in-out infinite alternate;
}

.stars-background::after {
  background-size: 250px 250px, 300px 300px, 350px 350px, 
                   400px 400px, 450px 450px, 500px 500px, 550px 550px;
  background-position: 50px 50px, 90px 110px, 180px 320px, 
                       120px 150px, 200px 300px, 250px 100px, 150px 200px;
  opacity: 0.3;
  animation: twinkle 6s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

/* ========================================
   SHOOTING STARS - PROPER DIAGONAL STREAK
   ======================================== */

.motivational-phrase {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.375rem, 1.1vw, 0.725rem);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* Phrase 1 */
.motivational-phrase:nth-child(1) {
  top: 5vh;
  left: 10vw;
  animation: floatPhrase1 12s linear infinite;
  animation-delay: 0s;
}

/* Phrase 2 */
.motivational-phrase:nth-child(2) {
  top: 15vh;
  left: 30vw;
  animation: floatPhrase2 14s linear infinite;
  animation-delay: 2s;
}

/* Phrase 3 */
.motivational-phrase:nth-child(3) {
  top: 35vh;
  left: 5vw;
  animation: floatPhrase3 13s linear infinite;
  animation-delay: 4s;
}

/* Phrase 4 */
.motivational-phrase:nth-child(4) {
  top: 45vh;
  left: 50vw;
  animation: floatPhrase4 15s linear infinite;
  animation-delay: 1s;
}

/* Phrase 5 */
.motivational-phrase:nth-child(5) {
  top: 60vh;
  left: 20vw;
  animation: floatPhrase5 13.5s linear infinite;
  animation-delay: 5s;
}

/* Phrase 6 */
.motivational-phrase:nth-child(6) {
  top: 75vh;
  left: 15vw;
  animation: floatPhrase6 14.5s linear infinite;
  animation-delay: 3s;
}

/* Phrase 7 */
.motivational-phrase:nth-child(7) {
  top: 85vh;
  left: 40vw;
  animation: floatPhrase7 12.5s linear infinite;
  animation-delay: 6s;
}

/* Phrase 8 */
.motivational-phrase:nth-child(8) {
  top: 20vh;
  left: 60vw;
  animation: floatPhrase8 13s linear infinite;
  animation-delay: 7s;
}

/* Float animations - moving diagonally down-right */
@keyframes floatPhrase1 {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  5% { opacity: 0.35; }
  95% { opacity: 0; }
  100% { transform: translateX(80vw) translateY(80vh); opacity: 0; }
}

@keyframes floatPhrase2 {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  5% { opacity: 0.35; }
  95% { opacity: 0; }
  100% { transform: translateX(65vw) translateY(70vh); opacity: 0; }
}

@keyframes floatPhrase3 {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  5% { opacity: 0.35; }
  95% { opacity: 0; }
  100% { transform: translateX(90vw) translateY(55vh); opacity: 0; }
}

@keyframes floatPhrase4 {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  5% { opacity: 0.35; }
  95% { opacity: 0; }
  100% { transform: translateX(45vw) translateY(45vh); opacity: 0; }
}

@keyframes floatPhrase5 {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  5% { opacity: 0.35; }
  95% { opacity: 0; }
  100% { transform: translateX(75vw) translateY(35vh); opacity: 0; }
}

@keyframes floatPhrase6 {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  5% { opacity: 0.35; }
  95% { opacity: 0; }
  100% { transform: translateX(80vw) translateY(20vh); opacity: 0; }
}

@keyframes floatPhrase7 {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  5% { opacity: 0.35; }
  95% { opacity: 0; }
  100% { transform: translateX(55vw) translateY(10vh); opacity: 0; }
}

@keyframes floatPhrase8 {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  5% { opacity: 0.35; }
  95% { opacity: 0; }
  100% { transform: translateX(35vw) translateY(65vh); opacity: 0; }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, .display-large {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2.5rem, 8vw, 6.875rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

h2, .display-small {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2rem, 6vw, 4.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3, .heading-xxl {
  font-size: clamp(1.75rem, 5vw, 3.8125rem);
  font-weight: 700;
  line-height: 1.2;
}

h4, .heading-xl {
  font-size: clamp(1.5rem, 4vw, 3.0625rem);
  font-weight: 600;
  line-height: 1.25;
}

h5, .heading-l {
  font-size: clamp(1.25rem, 3vw, 2.4375rem);
  font-weight: 600;
  line-height: 1.3;
}

h6, .heading-m {
  font-size: clamp(1.125rem, 2.5vw, 1.9375rem);
  font-weight: 600;
  line-height: 1.35;
}

.text-lg {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.text-md {
  font-size: 1rem;
  line-height: 1.6;
}

.text-sm {
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ========================================
   LOGO & NAVIGATION
   ======================================== */

.logo-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 2rem 0 1rem;
  animation: fadeInDown 0.8s ease-out;
}

.navbar-brand {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--accent-pink);
  transform: translateY(-2px);
}

.navbar-brand i {
  font-size: 1.5rem;
}

.affiliate-disclosure {
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.navbar {
  padding: 1.5rem 0;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.navbar-nav {
  gap: 3rem;
}

.nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

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

@media (max-width: 991px) {
  .navbar-nav {
    gap: 1.5rem;
    padding-top: 1rem;
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--glow-pink);
  color: var(--text-primary);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.8125rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    linear-gradient(135deg, rgba(26, 26, 31, 0.7) 0%, rgba(144, 41, 141, 0.3) 100%),
    url('https://images.unsplash.com/photo-1571008887538-b36bb32f4571?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

/* Fallback for browsers without the image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-secondary);
  opacity: 0.1;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, 
    rgba(26, 26, 31, 0.4) 0%, 
    rgba(26, 26, 31, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.5s backwards;
  background: linear-gradient(135deg, #ffffff 0%, #E01F59 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 900px;
  margin: 0 auto 3rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.7s backwards;
}

.hero-content .btn-primary {
  animation: fadeInUp 1s ease-out 0.9s backwards;
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }
  
  .hero-subtitle {
    margin-bottom: 2rem;
  }
}

/* ========================================
   CARDS
   ======================================== */

.category-card,
.product-card,
.article-card {
  padding: 2.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.category-card::before,
.product-card::before,
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.category-card:hover,
.product-card:hover,
.article-card:hover {
  transform: translateY(-12px);
  border-color: rgba(224, 31, 89, 0.5);
  box-shadow: var(--shadow-lg), var(--glow-pink);
}

.category-card:hover::before,
.product-card:hover::before,
.article-card:hover::before {
  opacity: 0.05;
}

.tall {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 4rem 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 6rem;
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.py-9 {
  padding: 6rem 0;
}

.gap-5 {
  gap: 2rem;
}

.text-secondary {
  color: var(--text-secondary);
}

.border-top,
.border-bottom {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .py-9 {
    padding: 4rem 0;
  }
  
  .category-card,
  .product-card,
  .article-card {
    padding: 2rem;
  }
  
  .tall {
    min-height: 280px;
  }
}

@media (max-width: 576px) {
  .navbar-nav {
    gap: 1rem;
  }
  
  .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
  }
}

/* ========================================
   PAGE-SPECIFIC ELEMENTS
   ======================================== */

.page-title {
  animation: fadeInUp 0.8s ease-out;
  background: linear-gradient(135deg, #ffffff 0%, #E01F59 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: clamp(1.5rem, 4vw, 3.0625rem);
  font-weight: 600;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.mb-9 {
  margin-bottom: 5rem;
}

.disclaimer-box {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin: 2rem 0;
}

.disclaimer-box p {
  margin: 0;
  color: var(--text-secondary);
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Optimize font rendering */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Will-change for animated elements */
.motivational-phrase {
  will-change: transform, opacity;
}

.btn-primary,
.category-card,
.product-card,
.article-card {
  will-change: transform;
}

/* Lazy load background images */
.hero {
  background-attachment: scroll;
}

@media (min-width: 768px) {
  .hero {
    background-attachment: fixed;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .motivational-phrase {
    display: none;
  }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --bg-primary: #000000;
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}