/**
 * HOME.CSS - Interactive landing page with VHS glitch
 */

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

/* VHS Glitch text - simplified for JS manipulation */
.glitch-text {
  font-size: 64px;
  font-weight: 900;
  position: relative;
  margin-bottom: 20px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--color-purple-bright), var(--color-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.05s;
  font-family: var(--font-family-mono);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--color-purple-bright);
  margin-bottom: 24px;
  font-family: var(--font-family-mono);
}

.hero-description {
  font-size: 16px;
  color: rgba(var(--color-gray-300-rgb), 0.8);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* NO glow on button - override main.css */
.glow-on-hover:hover {
  box-shadow: none !important;
}

/* Scroll indicator - fades on scroll */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(var(--color-gray-300-rgb), 0.5);
  font-size: 12px;
  z-index: 10;
  animation: bounce 2s infinite;
  font-family: var(--font-family-mono);
  transition: opacity 0.3s ease;
}

.scroll-arrow {
  font-size: 24px;
  margin-top: 4px;
  color: var(--color-purple-bright);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Projects Section */
.projects-section {
  padding: 80px 20px;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
}

.section-title.slide-in.visible {
  animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.03);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.project-card.card-animate.visible {
  animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.project-icon {
  font-size: 48px;
  margin-bottom: 16px;
  text-align: center;
}

.project-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--color-purple-bright);
}

.project-card p {
  color: rgba(var(--color-gray-300-rgb), 0.8);
  margin-bottom: 16px;
  font-size: 14px;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tech-tag {
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 4px;
  font-size: 11px;
  color: var(--color-purple-bright);
  font-family: var(--font-family-mono);
}

.project-link {
  display: inline-block;
  color: var(--color-purple-bright);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--color-purple-vivid);
}

.project-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Skills Section */
.skills-section {
  padding: 80px 20px;
  background: rgba(168, 85, 247, 0.02);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.skill-item {
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}

.skill-item.bounce-in.visible {
  animation: bounceIn 0.6s ease forwards;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.skill-item:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.4);
}

.skill-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.skill-item span {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 600;
}

/* Footer */
.footer-section {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  color: rgba(var(--color-gray-300-rgb), 0.6);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .glitch-text {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .scroll-indicator {
    bottom: 20px;
    font-size: 11px;
  }
  
  .scroll-arrow {
    font-size: 20px;
  }
}
