/* HOMEPAGE ONLY - Full viewport hero */
body:has(.hero-section) {
  overflow-x: hidden;
}

/* Make hero truly fullscreen - behind everything */
.hero-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), 
              url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?q=80&w=2400') center/cover;
  z-index: 0;
  color: white;
}

/* Make header transparent on scroll top */
body:has(.hero-section) .md-header {
  background-color: transparent;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* Make header solid when scrolled */
body:has(.hero-section).scrolled .md-header {
  background-color: var(--md-primary-fg-color);
  box-shadow: 0 0 0.2rem rgba(0,0,0,.1), 0 0.2rem 0.4rem rgba(0,0,0,.2);
}

/* Hide sidebar on homepage */
body:has(.hero-section) .md-sidebar {
  display: none;
}

/* Content needs to be above hero */
body:has(.hero-section) .md-content {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  color: rgba(255,255,255,0.95);
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 3;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Matrix canvas - behind header */
#matrix-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}

#matrix-bg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Content section - pushes down after hero */
.content-section {
  position: relative;
  z-index: 2;
  background: var(--md-default-bg-color);
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 100vh auto 0 auto;
  min-height: 100vh;
}

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

.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
  font-size: 1.4rem;
}

/* Hide default page title */
.md-typeset h1:first-of-type {
  display: none;
}

/* ===== CUSTOM FOOTER ===== */
.md-footer {
  background: #1a1a1a !important;
}

.md-footer-meta {
  background: #1a1a1a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.md-footer-meta__inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

.custom-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding: 3rem 0 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
}

.footer-section h3 {
  color: var(--md-primary-fg-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section ul li a:hover {
  color: var(--md-primary-fg-color);
}

/* Social links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.8);
}

.social-links a:hover svg {
  fill: white;
}

/* Footer bottom */
.footer-bottom {
  padding: 2rem 0 1rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--md-primary-fg-color);
}

/* Show footer on homepage */
body:has(.hero-section) .md-footer {
  position: relative;
  z-index: 2;
  margin-top: 0;
}
