/* ============================================
   NFTY Glass Theme - Dark Mode with Glassmorphism
   ============================================ */

:root {
  /* Bootstrap 5 Variable Overrides */
  --bs-primary: #ff6b35;
  --bs-primary-rgb: 255, 107, 53;
  --bs-dark: #0a0a0f;
  --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-body-font-size: 1.375rem;
  --bs-body-line-height: 1.7;
  
  /* Bootstrap Button Overrides - NFTY Orange Theme */
  --bs-btn-padding-x: 1rem;
  --bs-btn-padding-y: 0.5rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-border-radius: 0.375rem;
  --bs-btn-bg: #ff6b35;
  --bs-btn-border-color: #ff6b35;
  --bs-btn-hover-bg: #ff8555;
  --bs-btn-hover-border-color: #ff8555;
  --bs-btn-active-bg: #ff5520;
  --bs-btn-active-border-color: #ff5520;
  
  /* NFTY Colors */
  --nfty-dark-bg: #0a0a0f;
  --nfty-dark-secondary: #1a1a2e;
  --nfty-orange: #ff6b35;
  --nfty-orange-hover: #ff8555;
  
  /* Glass - Darker, more subtle */
  --glass-bg: rgba(10, 10, 15, 0.65);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-hover: rgba(0, 0, 0, 0.6);
  
  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  /* Spacing */
  --section-padding: 80px 0;
  --section-padding-mobile: 48px 0;
}

/* ============================================
   Base Styles
   ============================================ */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--nfty-dark-bg) 0%, var(--nfty-dark-secondary) 100%);
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

/* ============================================
   Glass Components
   ============================================ */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.glass-card:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 107, 53, 0.3);
}

.glass-nav {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

/* ============================================
   Section Backgrounds
   ============================================ */

.section-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.section-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

.section-bg > * {
  position: relative;
  z-index: 2;
}

/* ============================================
   Modern Animations
   ============================================ */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fade-in animation for sections */
.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in:nth-child(4) {
  animation-delay: 0.4s;
}

/* ============================================
   Focus States (WCAG AA Compliance)
   ============================================ */
*:focus-visible {
  outline: 2px solid var(--nfty-orange);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--nfty-orange);
  outline-offset: 2px;
}

/* ============================================
   Buttons
   ============================================ */

.btn-nfty {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1.125rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-nfty::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-nfty:hover::before {
  width: 300px;
  height: 300px;
}

.btn-nfty-primary {
  background: var(--nfty-orange);
  color: white;
}

.btn-nfty-primary:hover {
  background: var(--nfty-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  color: white;
}

.btn-nfty-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--glass-border);
}

.btn-nfty-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--nfty-orange);
  color: var(--text-primary);
}

/* ============================================
   Checkmarks
   ============================================ */

.checkmark-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.checkmark-list li {
  padding-left: 2.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.6;
}

.checkmark-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--nfty-orange);
  font-weight: 700;
  font-size: 1.75rem;
}

/* ============================================
   Utilities
   ============================================ */

.text-orange {
  color: var(--nfty-orange);
}

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

.section-padding {
  padding: var(--section-padding);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  body { font-size: 1rem; }
  
  .section-padding {
    padding: var(--section-padding-mobile);
  }
  
  .glass-card {
    padding: 1.5rem;
  }
  
  .section-bg {
    background-attachment: scroll;
  }
}
