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

/* Hero Section */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
  background-image: url('/static/images/backgrounds/home-hero.jpg');
  background-size: cover;
  background-position: center;
}

/* Gradient overlay on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgb(28 25 23 / 64%) 0%,
    rgb(28 25 23 / 56%) 50%,
    rgb(41 37 36 / 60%) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-3xl);
  align-items: center;
  animation: fade-in var(--duration-slow) var(--ease-out);
}

/* Avatar */
.hero-avatar {
  display: flex;
  justify-content: center;
}

.avatar-link {
  position: relative;
  display: block;
  border-radius: 50%;
}

.avatar-image {
  width: 275px;
  height: 275px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform var(--duration-normal) var(--ease-out);
}

.avatar-link:hover .avatar-image {
  transform: scale(1.02);
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--accent-primary-gradient);
  opacity: 0.6;
  z-index: 1;
  animation: pulse 3s ease-in-out infinite;
}

.avatar-glow {
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(234 88 12 / 25%) 0%, rgb(249 115 22 / 15%) 40%, transparent 70%);
  z-index: 0;
}

/* Hero Text */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  width: fit-content;
  padding: var(--space-sm) var(--space-md);
  background: rgb(251 146 60 / 15%);
  color: var(--fg-accent);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  border: 1px solid rgb(251 146 60 / 30%);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--fg-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.greeting {
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  color: var(--fg-muted);
}

.name {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  background: var(--accent-primary-gradient);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--fg-secondary);
}

.hero-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
  align-items: center;
}

.hero-contact-link {
  color: var(--fg-muted);
  font-weight: var(--font-medium);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  border: 1px solid transparent;
}

.hero-contact-link:hover {
  color: var(--fg-primary);
  background: linear-gradient(
    135deg,
    rgb(234 88 12 / 12%) 0%,
    rgb(249 115 22 / 8%) 100%
  );
  border-color: rgb(234 88 12 / 30%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(234 88 12 / 20%);
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-md);
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: center;
}

.home-stat-value,
.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  background: var(--accent-primary-gradient);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.section-heading {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2xl);
  color: var(--fg-primary);
}

/* ================================
   What I Do Section
================================ */
.home-what-i-do {
  padding: var(--space-3xl) 0;
}

.what-i-do-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.what-i-do-card {
  text-align: center;
  animation: card-fade-in var(--duration-slow) var(--ease-out) both;
}

.wid-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgb(234 88 12 / 15%) 0%,
    rgb(249 115 22 / 8%) 100%
  );
  margin: 0 auto var(--space-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.what-i-do-card:hover .wid-icon-wrap {
  transform: scale(1.1);
  box-shadow: 0 0 24px rgb(234 88 12 / 30%);
}

.wid-icon {
  font-size: var(--text-2xl);
}

.what-i-do-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
  color: var(--fg-primary);
}

.what-i-do-card p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ================================
   Explore / Quick Links Section
================================ */
.home-explore {
  padding: var(--space-3xl) 0;
  position: relative;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  animation: card-fade-in var(--duration-slow) var(--ease-out) both;
}

.ql-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: var(--space-md);
  transition: transform var(--duration-normal) var(--ease-out);
}

.quick-link-card:hover .ql-icon {
  transform: scale(1.2) translateY(-4px);
}

.quick-link-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: var(--fg-primary);
}

.quick-link-card p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.ql-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(234 88 12 / 10%);
  color: var(--fg-accent);
  font-size: var(--text-lg);
  transition: all var(--duration-normal) var(--ease-out);
  margin-top: auto;
}

.quick-link-card:hover .ql-arrow {
  background: var(--accent-primary-gradient);
  color: white;
  transform: translateX(4px);
}

/* Responsive */
@media (width <= 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

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

  .hero-stats {
    justify-items: center;
  }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .what-i-do-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 768px) {
  .hero {
    padding: var(--space-2xl) 0;
    min-height: auto;
  }

  .avatar-image {
    width: 200px;
    height: 200px;
  }

  .name {
    font-size: var(--text-4xl);
  }

  .hero-stats {
    gap: var(--space-xl);
  }
}

@media (width <= 480px) {
  .hero {
    padding: var(--space-xl) 0;
  }

  .avatar-image {
    width: 160px;
    height: 160px;
  }

  .name {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-contact-link {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  .what-i-do-grid {
    grid-template-columns: 1fr;
  }
}
