/* css/home.css */

/* Hero Search Section */
.hero-home {
  padding: 4rem 1.5rem 3rem 1.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand-primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Search Bar Box */
.search-container {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 0.5rem 0.6rem 0.5rem 1.25rem;
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 0.75rem;
  display: flex;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text-main);
}

.search-btn {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

/* Quick Tags Under Search Bar */
.search-tags {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tag-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  color: var(--text-main);
  font-weight: 600;
  transition: all 0.2s ease;
}

.tag-item:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* 10-Slide Slow Carousel Showcase */
.slideshow-section {
  padding: 3rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1); /* Slow, smooth slide effect */
}

.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 3.5rem;
  gap: 2.5rem;
}

.slide-content h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.slide-content p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.slide-btn:hover {
  background: var(--brand-primary-hover);
  gap: 0.8rem;
}

.slide-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 280px;
}

.slide-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.slide:hover .slide-image-wrapper img {
  transform: scale(1.04);
}

/* Slide Nav Controls */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.prev-btn { left: 1.25rem; }
.next-btn { right: 1.25rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 32px;
  border-radius: 12px;
  background: var(--brand-primary);
}

/* Category Cards Section */
.categories-home-section {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.category-flex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.home-cat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-glow);
}

.cat-badge-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.home-cat-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-cat-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.cat-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: auto;
}

/* Who I Am Section */
.who-i-am-section {
  padding: 4rem 1.5rem 6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.who-i-am-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.creator-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  border: 3px solid var(--brand-primary);
}

.creator-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-bio h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.creator-role {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.creator-bio p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

.creator-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.c-badge {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .slide {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.75rem;
  }
  .slide-image-wrapper { height: 200px; }
  .who-i-am-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    text-align: center;
  }
  .creator-image-wrapper {
    max-width: 220px;
    margin: 0 auto;
  }
  .creator-badges { justify-content: center; }
  .hero-title { font-size: 2.2rem; }
}