/* 
 * Digital Identity Cleanse - Cypherpunk Privacy Website
 * Zero tracking, maximum privacy, pure resistance
 */

/* Import monospace font */
@import url('data:font/woff2;base64,'); /* Self-hosted font would go here */

/* CSS Variables for Cypherpunk Theme */
:root {
  --bg-primary: #000000;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --bitcoin-orange: #ff6b35;
  --monero-green: #00d4aa;
  --neon-green: #00ff41;
  --warning-red: #ff3333;
  --border-color: #333333;
  --font-mono: 'Fira Code', 'Monaco', 'Consolas', 'Courier New', monospace;
}

/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: bold;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
  animation: glow 2s ease-in-out infinite alternate;
}

h2 {
  font-size: 2rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--bitcoin-orange);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--monero-green);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Glow animation for hero title */
@keyframes glow {
  from {
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
  }
  to {
    text-shadow: 0 0 20px var(--neon-green), 0 0 30px var(--neon-green);
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--neon-green);
  text-decoration: none;
  text-shadow: 0 0 5px var(--neon-green);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
  margin-top: 80px; /* Account for fixed navbar */
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    var(--bg-primary);
  position: relative;
  overflow: hidden;
  padding-top: 10px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(90deg, transparent 98%, rgba(0, 255, 65, 0.1) 100%),
    linear-gradient(0deg, transparent 98%, rgba(0, 255, 65, 0.1) 100%);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 2rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary {
  color: var(--bitcoin-orange);
  border-color: var(--bitcoin-orange);
}

.btn-primary:hover {
  background: var(--bitcoin-orange);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--bitcoin-orange);
}

.btn-secondary {
  color: var(--monero-green);
  border-color: var(--monero-green);
}

.btn-secondary:hover {
  background: var(--monero-green);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--monero-green);
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--bitcoin-orange), var(--monero-green));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2rem;
  color: var(--neon-green);
  margin-bottom: 1rem;
}

/* Threat Alert Section */
.threat-alert {
  background: linear-gradient(135deg, rgba(255, 51, 51, 0.1), rgba(0, 0, 0, 0.8));
  border: 2px solid var(--warning-red);
  padding: 2rem;
  margin: 3rem 0;
  position: relative;
}

.threat-alert::before {
  content: '⚠️';
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--bg-primary);
  padding: 0 10px;
  font-size: 1.5rem;
}

.threat-list {
  list-style: none;
  margin: 1rem 0;
}

.threat-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 51, 51, 0.2);
  color: var(--text-secondary);
}

.threat-list li::before {
  content: '▶ ';
  color: var(--warning-red);
  font-weight: bold;
}

/* Checklist Styles */
.checklist {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin: 2rem 0;
}

.checklist-category {
  margin-bottom: 2rem;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.difficulty-badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 3px;
  font-weight: bold;
}

.difficulty-beginner {
  background: var(--monero-green);
  color: var(--bg-primary);
}

.difficulty-intermediate {
  background: var(--bitcoin-orange);
  color: var(--bg-primary);
}

.difficulty-advanced {
  background: var(--warning-red);
  color: var(--text-primary);
}

.checklist-items {
  list-style: none;
}

.checklist-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checklist-item input[type="checkbox"] {
  margin-right: 1rem;
  transform: scale(1.2);
  accent-color: var(--neon-green);
}

.checklist-item label {
  color: var(--text-secondary);
  cursor: pointer;
  flex: 1;
}

.checklist-item input[type="checkbox"]:checked + label {
  color: var(--neon-green);
  text-decoration: line-through;
}

/* Donation Section */
.crypto-donation {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  transition: all 0.3s ease;
}

.crypto-donation.bitcoin {
  border-color: var(--bitcoin-orange);
}

.crypto-donation.monero {
  border-color: var(--monero-green);
}

.crypto-donation:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.qr-code {
  max-width: 200px;
  height: auto;
  margin: 1rem 0;
  border: 2px solid var(--border-color);
}

.crypto-address {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  word-break: break-all;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border: 1px solid var(--border-color);
  margin: 1rem 0;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--neon-green);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--neon-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 1rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    display: block;
    margin: 1rem auto;
    text-align: center;
  }
}

/* Terminal-style elements */
.terminal {
  background: var(--bg-primary);
  border: 1px solid var(--neon-green);
  padding: 1rem;
  font-family: var(--font-mono);
  color: var(--neon-green);
  margin: 2rem 0;
}

.terminal::before {
  content: '$ ';
  color: var(--bitcoin-orange);
}

/* Glitch effect for special elements */
.glitch {
  position: relative;
  animation: glitch 2s infinite;
}

@keyframes glitch {
  0%, 100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--neon-green);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-secondary: #ffffff;
    --border-color: #ffffff;
  }
}

/* ── Navbar logo (always visible) ───────────────────────────────────────────── */

.logo-img {
  display: block;        /* remove any inline-block gaps */
  height: 40px;          /* desktop height */
  width: auto;
  transition: opacity 0.3s ease;
}
.logo-img:hover {
  opacity: 0.8;
}

/* shrink navbar logo slightly on smaller screens */
@media (max-width: 768px) {
  .logo-img {
    height: 32px;
  }
}


/* ── Hero logo (responsive sizing) ──────────────────────────────────────────── */

/* 
  By default (desktop), cap the hero logo at 150px tall. 
  “max-height” lets it scale down if the container is narrower.
*/
.logo-img-hero {
  display: block;
  max-height: 150px;
  width: auto;
  transition: opacity 0.3s ease;
  margin: 0 auto;      /* center inside .hero-content */
}
.logo-img-hero:hover {
  opacity: 0.8;
}

/* Tablet: reduce the hero logo to 120px */
@media (max-width: 1024px) {
  .logo-img-hero {
    max-height: 120px;
  }
}

/* Mobile: reduce the hero logo to 80px */
@media (max-width: 768px) {
  .logo-img-hero {
    max-height: 80px;
  }
}

/* Very small phones: reduce the hero logo to 60px */
@media (max-width: 480px) {
  .logo-img-hero {
    max-height: 60px;
  }
}