/**
 * Modern Home Page Styles
 * Author: Claude Code
 * Date: 2025
 * Matches the modern header/footer design system
 */

/* ============================================
   HERO/BANNER SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section .layer {
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero-section .home-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-section .home-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.95) 0%,
    rgba(118, 75, 162, 0.9) 100%
  );
  z-index: 1;
}

.section-search {
  text-align: center;
  position: relative;
  z-index: 2;
}

.section-search h1 {
  font-size: 56px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-search > p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  font-weight: 400;
}

/* Search Box */
.search-box {
  max-width: 900px;
  margin: 0 auto 30px;
}

.search-style {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  position: relative;
}

.search-input.line {
  border-right: 2px solid #e2e8f0;
}

.search-input .bficon {
  color: #667eea;
  font-size: 20px;
  flex-shrink: 0;
}

.search-input .form-control {
  border: none;
  padding: 12px 0;
  font-size: 15px;
  color: #1e293b;
  background: transparent;
}

.search-input .form-control::placeholder {
  color: #94a3b8;
}

.search-input .form-control:focus {
  box-shadow: none;
  outline: none;
}

.search-btn .btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  white-space: nowrap;
}

.search-btn .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* Current Location Icon */
.current-loc-icon {
  position: absolute;
  right: 16px;
  color: #667eea;
  font-size: 18px;
  transition: all 0.3s ease;
}

.current-loc-icon:hover {
  color: #764ba2;
  transform: scale(1.1);
}

/* Search Categories */
.search-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.search-cat i.fa-circle {
  font-size: 8px;
  margin-right: 8px;
}

.search-cat span {
  font-weight: 600;
  margin-right: 12px;
}

.search-cat a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-cat a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Search Results Dropdown */
#searchResult {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  max-width: 900px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

#searchResult li {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

#searchResult li:last-child {
  border-bottom: none;
}

#searchResult li:hover {
  background: #f8fafc;
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.heading {
  margin-bottom: 40px;
}

.heading h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.heading h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.heading span {
  font-size: 16px;
  color: #64748b;
  display: block;
}

.viewall {
  text-align: right;
}

.viewall h4 a {
  color: #667eea;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.viewall h4 a:hover {
  color: #764ba2;
}

.viewall h4 a i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.viewall h4 a:hover i {
  transform: translateX(5px);
}

.viewall span {
  font-size: 14px;
  color: #94a3b8;
}

/* ============================================
   CATEGORY SECTION
   ============================================ */
.category-section {
  background: #f8fafc;
}

.cate-widget {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  height: 280px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cate-widget:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.cate-widget img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cate-widget:hover img {
  transform: scale(1.1);
}

.cate-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

.cate-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.cate-title h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.cate-title h3 span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cate-title i.fa-circle {
  font-size: 8px;
}

.cate-count {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.cate-count i {
  margin-right: 6px;
}

/* ============================================
   SERVICE SECTIONS
   ============================================ */
.popular-services,
.featured-services {
  background: #ffffff;
}

.service-widget {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  margin: 12px;
}

.service-widget:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.service-img img.serv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-widget:hover .service-img img.serv-img {
  transform: scale(1.1);
}

.item-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.service-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px 6px 6px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.service-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.service-price {
  font-weight: 700;
  font-size: 14px;
  color: #667eea;
}

.cate-list a {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.cate-list a.bg-yellow {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.service-content {
  padding: 20px;
}

.title {
  margin-bottom: 12px;
}

.title a {
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.title a:hover {
  color: #667eea;
}

.service-widget p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.rating i {
  color: #fbbf24;
  font-size: 14px;
}

.rating span {
  color: #64748b;
  font-size: 14px;
}

.serv-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.ser-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
}

.ser-icon i {
  color: #667eea;
}

/* Service Carousel */
.service-carousel {
  margin: 0 -12px;
}

.owl-carousel .owl-nav button {
  width: 48px;
  height: 48px;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  color: #667eea !important;
  font-size: 20px !important;
  transition: all 0.3s ease !important;
}

.owl-carousel .owl-nav button:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  transform: scale(1.1);
}

.owl-carousel .owl-dots {
  margin-top: 30px;
}

.owl-carousel .owl-dot span {
  width: 12px;
  height: 12px;
  background: #cbd5e1 !important;
  transition: all 0.3s ease;
}

.owl-carousel .owl-dot.active span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  width: 32px;
  border-radius: 6px;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
  background: #f8fafc;
}

.blog {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
}

.blog:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 24px;
}

.blog-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.blog-title a {
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-title a:hover {
  color: #667eea;
}

.blog-date {
  color: #64748b;
  font-size: 14px;
}

.blog-date i {
  color: #667eea;
}

.blog-read-more a {
  color: #667eea;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-read-more a:hover {
  color: #764ba2;
}

.blog-read-more i {
  transition: transform 0.3s ease;
}

.blog-read-more a:hover i {
  transform: translateX(5px);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-work {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

.how-work .heading {
  text-align: center;
  margin-bottom: 60px;
}

.how-work .heading h2 {
  color: #ffffff;
}

.how-work .heading h2::after {
  background: rgba(255, 255, 255, 0.5);
  left: 50%;
  transform: translateX(-50%);
}

.how-work .heading span {
  color: rgba(255, 255, 255, 0.9);
}

.howwork {
  text-align: center;
  padding: 30px;
}

.iconround {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.iconround img {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
}

.steps {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  background: #ffffff;
  color: #667eea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.howwork h3 {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.howwork p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

/* ============================================
   APP DOWNLOAD SECTION
   ============================================ */
.app-section {
  background: #f8fafc;
  text-align: center;
}

.app-section .heading h2 {
  margin: 0 auto 20px;
}

.app-section .thumbnail {
  height: 56px;
  width: auto;
  margin: 0 10px;
  transition: all 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.app-section .thumbnail:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
  .section-search h1 {
    font-size: 42px;
  }

  .search-style {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input.line {
    border-right: none;
    border-bottom: 2px solid #e2e8f0;
  }

  .search-btn .btn {
    width: 100%;
  }

  .heading h2 {
    font-size: 32px;
  }

  .viewall {
    text-align: left;
    margin-top: 15px;
  }
}

@media (max-width: 767px) {
  section {
    padding: 60px 0;
  }

  .hero-section {
    min-height: 500px;
    padding: 100px 0 60px;
  }

  .section-search h1 {
    font-size: 32px;
  }

  .section-search > p {
    font-size: 16px;
  }

  .heading h2 {
    font-size: 28px;
  }

  .cate-widget {
    height: 240px;
  }

  .service-img {
    height: 200px;
  }
}

@media (max-width: 575px) {
  .section-search h1 {
    font-size: 28px;
  }

  .search-input {
    padding: 4px 12px;
  }

  .search-btn .btn {
    padding: 14px 30px;
    font-size: 15px;
  }

  .search-cat {
    font-size: 13px;
    gap: 12px;
  }

  .search-cat a {
    padding: 6px 14px;
    font-size: 13px;
  }

  .heading h2 {
    font-size: 24px;
  }

  .cate-widget {
    height: 200px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aos[data-aos="fade-up"] > * {
  animation: fadeInUp 0.6s ease-out;
}
