/* ===== Home Page Specific Styles ===== */

/* ===== Hero Upgrade ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #312e81 70%, #4338ca 100%);
  color: #fff;
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(20px); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: .9rem;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: fadeUp .8s ease forwards;
  animation-delay: .2s;
  opacity: 0;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.05));
  border: 3px solid rgba(255,255,255,.3);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(99,102,241,.3);
  animation: fadeUp .8s ease forwards, pulse 3s ease-in-out infinite;
  animation-delay: .4s;
  opacity: 0;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(99,102,241,.3); }
  50% { box-shadow: 0 0 60px rgba(99,102,241,.5); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -.03em;
  animation: fadeUp .8s ease forwards;
  animation-delay: .6s;
  opacity: 0;
}

.hero .subtitle {
  font-size: 1.3rem;
  opacity: .9;
  margin-bottom: 8px;
  animation: fadeUp .8s ease forwards;
  animation-delay: .8s;
  opacity: 0;
}

.hero .school {
  font-size: 1rem;
  opacity: .7;
  margin-bottom: 32px;
  animation: fadeUp .8s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  animation: fadeUp .8s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

.hero-btn {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.4);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,.5);
}

.hero-btn-secondary {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  animation: fadeUp .8s ease forwards;
  animation-delay: 1.4s;
  opacity: 0;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

/* ===== Skills Section ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.skill-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 1s ease;
}

.skill-desc {
  font-size: .85rem;
  color: var(--text-secondary);
}

/* ===== Course Card Meta ===== */
.card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-difficulty,
.card-duration {
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== Footer Upgrade ===== */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,.6);
  padding: 48px 24px 24px;
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all .2s;
}

.footer-social a:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 24px 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-value {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}
