/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Orbitron:wght@700&display=swap');

/* Base Styles and Theme */
:root {
  --bg-gradient: linear-gradient(135deg, #151E28 0%, #1A093F 100%);
  --bg-color: #101522;
  --text-color: #f7f8fa;
  --accent1: #00ffe7;
  --accent2: #ff2efd;
  --accent3: #e4ff44;
  --shadow-accent: 0 0 18px #00ffe7, 0 0 24px #ff2efd;
  --shadow-soft: 0 2px 24px rgba(0,255,255,0.07), 0 1px 12px rgba(255,47,253,0.06);
}

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

/* Sticky Footer Layout */
body {
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text-color);
  font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
  transition: background 0.5s;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5 {
  margin-bottom: 0.5em;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 20px rgba(0,255,231,0.08);
  font-family: 'Orbitron', 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
}

a {
  color: var(--accent1);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
a:hover, a:focus {
  color: var(--accent2);
  text-shadow: 0 0 8px var(--accent2), 0 0 4px var(--accent3);
  outline: none;
}

/* Navigation Bar */
.navbar {
  width: 100%;
  background: rgba(12, 8, 38, 0.98);
  backdrop-filter: blur(8px);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 22px 0 rgba(0,255,255,0.11);
  border-bottom: 2px solid var(--accent2);
  position: relative;
}
.navbar .logo img {
  height: 54px;
  filter: drop-shadow(0 0 10px var(--accent1));
}
.nav-links {
  display: flex;
  align-items: center;
}
.nav-links a {
  margin: 0 22px;
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent1), var(--accent2));
  transition: width 0.36s;
  box-shadow: 0 0 8px var(--accent1);
}
.nav-links a:hover::after, .nav-links a:focus::after {
  width: 100%;
}
#menu-toggle {
  display: none;
}
.menu-icon {
  display: none;
  font-size: 2rem;
  color: var(--accent1);
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 26px;
}

/* Responsive Navigation */
@media (max-width: 600px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #17112d;
    box-shadow: var(--shadow-accent);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
  .nav-links a {
    padding: 12px 0;
    margin: 0 10px;
  }
  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }
  .menu-icon {
    display: block;
  }
}

/* Intro Splash Screen */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #13062c 30%, #1c2058 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 2.1s cubic-bezier(0.57,0.21,0.69,0.93) 1s forwards;
  box-shadow: var(--shadow-accent);
}
#intro img {
  max-width: 220px;
  width: 80%;
  filter: drop-shadow(0 0 30px var(--accent1));
}
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Main Content Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 24px 20px;
  box-shadow: var(--shadow-soft);
  border-radius: 10px;
  background: rgba(22, 16, 44, 0.82);
  margin-top: 28px;
  flex: 1 0 auto; /* for sticky footer */
  min-height: 60vh; /* Ensures footer stays bottom on short pages */
}
main p {
  margin-bottom: 1em;
}
main h1, main h2 {
  color: var(--accent1);
  text-shadow: 0 0 10px var(--accent1), 0 0 5px var(--accent2);
}
.tagline {
  font-size: 1.17em;
  color: #b6b2fa;
  margin-bottom: 1.9em;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 5px #2b0a38;
}

/* Welcome Section (Home) */
.welcome-section {
  text-align: center;
  padding: 46px 22px;
}
.welcome-section h1 {
  font-size: 2.8em;
  color: var(--accent2);
  text-shadow: 0 0 16px var(--accent2), 0 2px 24px var(--accent1);
  margin-bottom: 0.5em;
  letter-spacing: 0.07em;
  font-family: 'Orbitron', 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
}
.welcome-section p {
  max-width: 620px;
  margin: 12px auto;
  font-size: 1.13em;
  color: #c8f6ff;
}

/* Stats Lookup (Home) */
.stats-lookup {
  margin-top: 44px;
  background: rgba(16, 9, 34, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 20px 18px;
}
.stats-lookup form {
  margin: 17px 0;
}
.stats-lookup label {
  display: block;
  margin-bottom: 7px;
  font-weight: bold;
  color: var(--accent3);
}
.stats-lookup input[type="text"] {
  padding: 8px 10px;
  width: 210px;
  max-width: 100%;
  border: none;
  border-radius: 4px;
  background: #191b33;
  color: var(--accent1);
  font-weight: 700;
  margin-right: 5px;
  box-shadow: 0 0 8px #2efdff44;
  outline: none;
  transition: box-shadow 0.2s, color 0.2s;
}
.stats-lookup input[type="text"]:focus {
  box-shadow: 0 0 10px var(--accent2), 0 0 6px var(--accent1);
  color: var(--accent2);
}
.stats-lookup button {
  padding: 8px 18px;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  color: #13062c;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 9px var(--accent1);
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
  font-size: 1.02em;
}
.stats-lookup button:hover, .stats-lookup button:focus {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  box-shadow: 0 0 16px var(--accent2), 0 0 6px var(--accent1);
  color: var(--accent3);
  outline: none;
}
.stats-result {
  margin-top: 23px;
  background: #22203a;
  padding: 15px;
  border: 1.5px solid var(--accent2);
  border-radius: 6px;
  box-shadow: 0 0 11px #ff2efd44;
}
.stats-result h3 {
  color: var(--accent1);
  margin-top: 0;
  letter-spacing: 0.02em;
}
.stats-result p {
  margin: 7px 0;
}

/* Features Grid (About Page) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 30px 0;
}
@media (max-width: 800px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
.feature-section {
  background: linear-gradient(127deg, #151b3a 68%, #2b013c 100%);
  padding: 20px 14px;
  border: 1.5px solid var(--accent2);
  border-radius: 9px;
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.21), 0 0 10px #ff2efd44;
  transition: transform 0.33s, box-shadow 0.34s;
}
.feature-section:hover, .feature-section:focus-within {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.6), 0 0 20px #ff2efd88;
  outline: none;
}
.feature-section h3 {
  color: var(--accent2);
  margin-top: 0;
  letter-spacing: 0.03em;
  font-family: 'Orbitron', 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
}
.feature-section p {
  margin: 0.6em 0 0;
}

/* Donate Page Specific */
.donate-button {
  display: inline-block;
  padding: 11px 25px;
  background: linear-gradient(90deg, var(--accent2) 50%, var(--accent1) 100%);
  color: #1a093f;
  font-weight: bold;
  border: none;
  border-radius: 7px;
  margin: 18px 0;
  box-shadow: 0 0 9px var(--accent1);
  transition: background 0.3s, box-shadow 0.3s, color 0.2s;
  font-size: 1.08em;
}
.donate-button:hover, .donate-button:focus {
  background: linear-gradient(90deg, var(--accent1) 40%, var(--accent2) 100%);
  box-shadow: 0 0 22px var(--accent2), 0 0 9px var(--accent1);
  color: var(--accent3);
  outline: none;
}
.disclaimer {
  margin-top: 34px;
  padding: 13px 17px;
  background: #21194b;
  border-left: 5px solid var(--accent2);
  color: #d7f9f6;
  font-size: 1em;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 0 10px #ff2efd22;
}
.disclaimer p {
  margin: 0;
}

/* Footer: Sticky and Readable */
.footer {
  flex-shrink: 0;
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 18px 10px;
  background: #0c0826;
  border-top: 2.5px solid var(--accent2);
  animation: borderGlow 4s linear infinite alternate;
  box-shadow: 0 -2px 15px #00ffe733;
  font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
  font-size: 1.1em;
  letter-spacing: 0.01em;
}
.footer p {
  color: #a1aec6;
  font-size: 1em;
  margin: 0;
}
@keyframes borderGlow {
  0% { border-color: var(--accent2); }
  100% { border-color: var(--accent1); }
}

/* Fade-in animation for content sections */
.fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.4,0.6,0.6,1) forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(13px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
