/* Matrix Terminal Shader - Website Styles */
:root {
  --matrix-green: #00ff41;
  --matrix-cyan: #00ffff;
  --matrix-red: #ff0040;
  --matrix-gold: #ffd700;
  --matrix-purple: #ff00ff;
  --matrix-dark-green: #008f11;
  
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: rgba(0, 20, 0, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  
  --border-green: rgba(0, 255, 65, 0.3);
  --glow-green: 0 0 30px rgba(0, 255, 65, 0.7);
  
  --font-mono: 'Courier New', 'Consolas', 'Monaco', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-darker);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Matrix Background Effect (Video) */
#matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  opacity: 0.7;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-green);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--matrix-green);
  text-decoration: none;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a:hover {
  color: var(--matrix-green);
  text-shadow: var(--glow-green);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--matrix-green);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--matrix-green);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  animation: glow 3s ease-in-out infinite;
}

.matrix-green { 
  color: var(--matrix-green); 
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}
.matrix-cyan { 
  color: var(--matrix-cyan); 
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}
.matrix-red { 
  color: var(--matrix-red); 
  text-shadow: 0 0 15px rgba(255, 0, 64, 0.5);
}
.matrix-gold { 
  color: var(--matrix-gold); 
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 160px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--matrix-green), var(--matrix-dark-green));
  color: var(--bg-darker);
  border: 2px solid var(--matrix-green);
  box-shadow: var(--glow-green);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.8);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-green);
}

.btn-secondary:hover {
  background: rgba(0, 255, 65, 0.15);
  border-color: var(--matrix-green);
  color: var(--matrix-green);
  box-shadow: 0 0 35px rgba(0, 255, 65, 0.6);
  transform: translateY(-2px) scale(1.02);
}

.btn-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Terminal Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal-mockup {
  width: 100%;
  max-width: 500px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  border: 2px solid var(--border-green);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.3);
}

.terminal-header {
  background: rgba(0, 255, 65, 0.1);
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-green);
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-close, .btn-minimize, .btn-maximize {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn-close { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27c93f; }

.terminal-title {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.terminal-content {
  height: 300px;
  overflow: hidden;
}

.terminal-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 2px;
  height: 20px;
  background: var(--matrix-green);
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--matrix-green);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Section Styling */
section {
  padding: 5rem 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  color: var(--matrix-green);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.02), rgba(0, 20, 0, 0.05));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-green);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--matrix-green);
  box-shadow: 0 0 35px rgba(0, 255, 65, 0.6);
  background: rgba(0, 30, 0, 0.95);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--matrix-green);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Workflow Section */
.workflow {
  background: linear-gradient(135deg, #001a00 0%, #002200 50%, #001a00 100%);
}

.workflow-showcase {
  max-width: 1100px;
  margin: 0 auto;
}

.workflow-text-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.workflow-text-intro h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--matrix-green);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.workflow-text-intro p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.layout-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.layout-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.layout-card:hover {
  border-color: var(--matrix-green);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
  transform: translateY(-4px);
}

.layout-label {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: bold;
  color: var(--matrix-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-green);
  background: rgba(0, 255, 65, 0.05);
}

.layout-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.layout-description {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 255, 65, 0.1);
}

.workflow-colors {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.color-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.color-dot.green { background: var(--matrix-green); box-shadow: 0 0 6px var(--matrix-green); }
.color-dot.red { background: var(--matrix-red); box-shadow: 0 0 6px var(--matrix-red); }
.color-dot.blue { background: var(--matrix-cyan); box-shadow: 0 0 6px var(--matrix-cyan); }
.color-dot.gold { background: var(--matrix-gold); box-shadow: 0 0 6px var(--matrix-gold); }

/* Installation Section */
.installation-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.step:last-child {
  border-bottom: none;
}

/* Force proper spacing for installation steps */
.installation .step {
  margin-bottom: 3rem !important;
  padding-bottom: 3rem !important;
}

.installation .step:last-child {
  margin-bottom: 0 !important;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--matrix-green);
  color: var(--bg-darker);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  color: var(--matrix-green);
}

.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border-green);
  border-radius: 6px;
  padding: 2rem 4rem 2rem 2rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  position: relative;
  min-height: 100px;
}

.code-block pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--matrix-green);
  margin: 0;
}

.inline-code {
  background: rgba(0, 255, 65, 0.1);
  color: var(--matrix-green);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.installation-requirements {
  background: var(--bg-card);
  border: 1px solid var(--border-green);
  border-radius: 8px;
  padding: 2rem;
}

.installation-requirements h3 {
  margin-bottom: 1rem;
  color: var(--matrix-green);
}

.requirements-list {
  list-style: none;
}

.requirements-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

/* Download Section */
.download {
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.02), rgba(0, 20, 0, 0.05));
}

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.download-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--matrix-green);
  box-shadow: 0 0 35px rgba(0, 255, 65, 0.6);
  background: rgba(0, 30, 0, 0.95);
}

.download-card.featured {
  border-color: var(--matrix-green);
  box-shadow: var(--glow-green);
}

.download-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--matrix-green);
  color: var(--bg-darker);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.download-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.download-card h3 {
  margin-bottom: 1rem;
  color: var(--matrix-green);
}

.download-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.download-info {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.download-info span {
  padding: 0.25rem 0.5rem;
  background: rgba(0, 255, 65, 0.1);
  border-radius: 4px;
  color: var(--text-secondary);
}

.btn-download {
  width: 100%;
  justify-content: center;
}

/* Support / Buy Me a Coffee Section */
.support {
  padding: 4rem 0;
}

.support-card {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: rgba(0, 20, 0, 0.6);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.support-card h2 {
  font-family: var(--font-mono);
  color: var(--matrix-green);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.support-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-coffee {
  display: inline-flex;
  padding: 0.875rem 2rem;
  background: #ffdd00;
  color: #000;
  border: 2px solid #ffdd00;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-coffee:hover {
  background: #fff;
  box-shadow: 0 0 25px rgba(255, 221, 0, 0.6);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-green);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--matrix-green);
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--matrix-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-green);
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .layout-demo {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .workflow-colors {
    gap: 0.75rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .download-options {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: var(--glow-green); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.8); }
}

@keyframes matrixPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.9; }
}

.feature-card, .download-card, .step {
  animation: fadeIn 0.6s ease-out;
}

/* Add subtle pulsing to Matrix background */
#matrix-bg {
  animation: matrixPulse 4s ease-in-out infinite;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
  background: rgba(0, 255, 65, 0.3);
  color: var(--text-primary);
}

/* Focus Styling */
.btn:focus, a:focus {
  outline: 2px solid var(--matrix-green);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  cursor: zoom-out;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border: 2px solid var(--border-green);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.3);
}

.layout-screenshot {
  cursor: zoom-in;
}