/* =============================================
   K9 Jaeger Foundation — Custom Styles
   ============================================= */

/* CSS Custom Properties */
:root {
  --green-primary: #39FF14;
  --green-muted: #2ECC40;
  --green-dark: #1a8f22;
  --bg-main: #0A0A0A;
  --bg-card: #1A1A1A;
  --bg-surface: #2D2D2D;
  --text-primary: #F5F5F5;
  --text-secondary: #B0B0B0;
  --accent-amber: #F59E0B;
  --glow-green: rgba(57, 255, 20, 0.35);
  --glow-green-soft: rgba(57, 255, 20, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green-muted);
}

/* Selection */
::selection {
  background: var(--green-primary);
  color: var(--bg-main);
}

/* =============================================
   Neon Green Glow Effects
   ============================================= */
.glow-green {
  box-shadow: 0 0 15px var(--glow-green), 0 0 30px var(--glow-green-soft);
}

.glow-green-sm {
  box-shadow: 0 0 8px var(--glow-green-soft);
}

.glow-text {
  text-shadow: 0 0 10px var(--glow-green), 0 0 20px var(--glow-green-soft);
}

/* Logo Pulse Animation */
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--glow-green-soft)); }
  50% { filter: drop-shadow(0 0 20px var(--glow-green)); }
}

.logo-pulse {
  animation: logoPulse 3s ease-in-out infinite;
}

/* =============================================
   Fade-in on Scroll Animation
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Stagger children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* =============================================
   Navigation
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-primary);
}

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

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

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Hamburger Animation */
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(57, 255, 20, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-green {
  background: var(--green-primary);
  color: var(--bg-main);
  border-color: var(--green-primary);
}

.btn-green:hover {
  background: var(--green-muted);
  border-color: var(--green-muted);
  box-shadow: 0 0 20px var(--glow-green-soft);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}

.btn-outline:hover {
  background: var(--green-primary);
  color: var(--bg-main);
  box-shadow: 0 0 20px var(--glow-green-soft);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* =============================================
   Cards
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--green-primary);
  box-shadow: 0 0 15px var(--glow-green-soft);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(57, 255, 20, 0.1);
  color: var(--green-primary);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* =============================================
   Section Dividers
   ============================================= */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
  opacity: 0.3;
  margin: 0 auto;
  max-width: 200px;
}

.section-divider-wide {
  max-width: 600px;
}

/* Green top accent line */
.green-top-line {
  position: relative;
}
.green-top-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
}

/* =============================================
   Process Steps (How It Works)
   ============================================= */
.process-step {
  position: relative;
  text-align: center;
}

.step-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.step-circle:hover {
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 15px var(--glow-green-soft);
}

.step-connector {
  position: absolute;
  top: 36px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: var(--green-primary);
  opacity: 0.4;
}

/* =============================================
   CTA Banner
   ============================================= */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
}

/* =============================================
   Supporters / Partner Logos
   ============================================= */
.partner-box {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.partner-box:hover {
  border-color: rgba(57, 255, 20, 0.2);
  background: rgba(57, 255, 20, 0.05);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--bg-main);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
}

.footer-link {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--green-primary);
}

.newsletter-input {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px 0 0 4px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
}

.newsletter-input:focus {
  border-color: var(--green-primary);
}

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

/* =============================================
   Form Wizard (for apply page)
   ============================================= */
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
}

.wizard-progress {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.wizard-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--text-secondary);
  transition: all 0.3s ease;
}

.wizard-dot.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  box-shadow: 0 0 8px var(--glow-green-soft);
}

.wizard-dot.completed {
  background: var(--green-muted);
  border-color: var(--green-muted);
}

.wizard-connector {
  flex: 1;
  height: 2px;
  background: var(--bg-surface);
}

.wizard-connector.completed {
  background: var(--green-muted);
}

/* Form Inputs */
.form-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: var(--green-primary);
}

.form-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    padding-top: 80px;
  }

  .step-connector {
    display: none;
  }

  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
}

/* =============================================
   File Upload Drop Zone
   ============================================= */
.file-drop-zone {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.file-drop-zone:hover {
  border-color: var(--green-primary) !important;
  background: rgba(57, 255, 20, 0.03);
}

/* Form select styling */
.form-input option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Checkbox accent color override for older browsers */
input[type="checkbox"] {
  accent-color: var(--green-primary);
}

/* Review section hover */
.review-section:hover {
  border-color: var(--green-primary);
}
.review-section:hover .fa-pen-to-square {
  color: var(--green-primary);
}

/* =============================================
   Utility Classes
   ============================================= */
.text-green { color: var(--green-primary); }
.bg-card { background-color: var(--bg-card); }
.bg-surface { background-color: var(--bg-surface); }
