/* ==========================================================================
   HOME PAGE SPECIFIC STYLES
   Extends theme.css with home page specific components
   ========================================================================== */

/* ==========================================================================
   HERO SECTION ENHANCEMENTS
   ========================================================================== */

.hero-subtitle {
  font-size: 1.5rem;
  color: #4ecdc4;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 2s ease-out 1s forwards;
}

.blog-link {
  color: #ff6b6b;
  font-weight: bold;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.blog-link:hover {
  color: #4ecdc4;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

/* ==========================================================================
   APPLICATIONS GRID
   ========================================================================== */

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.app-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid transparent;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.app-card:hover::before {
  transform: translateX(100%);
}

.app-card:hover {
  transform: translateY(-10px);
  border-color: #4ecdc4;
  box-shadow: 0 25px 50px rgba(78, 205, 196, 0.15);
}

.app-card.featured {
  border-color: rgba(255, 107, 107, 0.3);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.1),
    rgba(78, 205, 196, 0.05)
  );
}

.app-card.featured:hover {
  border-color: #ff6b6b;
  box-shadow: 0 25px 50px rgba(255, 107, 107, 0.2);
}

.app-card.upcoming {
  opacity: 0.7;
  border-color: rgba(255, 255, 255, 0.1);
}

.app-card.upcoming:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   APP CARD COMPONENTS
   ========================================================================== */

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #4ecdc4, #45b7d1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.app-card.featured .app-icon {
  background: linear-gradient(45deg, #ff6b6b, #ff9999);
}

.app-card.upcoming .app-icon {
  background: linear-gradient(45deg, #666, #888);
}

.app-card:hover .app-icon {
  transform: scale(1.1) rotate(5deg);
}

.app-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-status:not(.upcoming) {
  background: linear-gradient(45deg, #50fa7b, #45d865);
  color: #0a0a0a;
}

.app-status.upcoming {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #e0e0e0;
  line-height: 1.3;
}

.app-card.featured .app-title {
  color: #ff6b6b;
}

.app-description {
  color: rgba(224, 224, 224, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feature-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(78, 205, 196, 0.2);
  color: #4ecdc4;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(78, 205, 196, 0.3);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: rgba(78, 205, 196, 0.3);
  transform: translateY(-2px);
}

.app-card.featured .feature-tag {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

.app-card.featured .feature-tag:hover {
  background: rgba(255, 107, 107, 0.3);
}

.app-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-actions .btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(224, 224, 224, 0.5);
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.about-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(78, 205, 196, 0.3);
}

.about-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, #4ecdc4, #45b7d1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: white;
  transition: all 0.3s ease;
}

.about-item:hover .about-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(78, 205, 196, 0.3);
}

.about-item h3 {
  margin-bottom: 1rem;
  color: #4ecdc4;
  font-size: 1.3rem;
}

.about-item p {
  line-height: 1.6;
  color: rgba(224, 224, 224, 0.8);
}

/* ==========================================================================
   CALL TO ACTION SECTION
   ========================================================================== */

.cta-section {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.1),
    rgba(78, 205, 196, 0.1),
    rgba(69, 183, 209, 0.1)
  );
  position: relative;
  height: auto;
  padding: 80px 50px;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.04)"/></svg>')
    repeat;
  animation: stars 30s linear infinite;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-description {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
  color: rgba(224, 224, 224, 0.9);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-actions .btn {
  min-width: 180px;
}

/* ==========================================================================
   LOADING ANIMATIONS
   ========================================================================== */

.app-card {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease-out forwards;
}

.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 900px) {
  .applications-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 3rem auto 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .app-card {
    padding: 1.5rem;
  }
  
  .app-actions {
    flex-direction: column;
  }
  
  .app-actions .btn {
    min-width: auto;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-actions .btn {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .applications-grid {
    padding: 0 10px;
  }
  
  .app-features {
    justify-content: center;
  }
  
  .feature-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
  
  .about-item {
    padding: 1.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
}