/* ===========================
   SERVICES PAGE PROFESSIONAL STYLES
   =========================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   HERO SECTION
   =========================== */
.services-hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  background-image: url('https://images.unsplash.com/photo-1511578314322-379afb476865?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(85, 51, 30, 0.88) 0%, rgba(139, 111, 71, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease-out 0.3s both;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 15px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.7s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  animation: bounce 2s infinite;
}

/* ===========================
   SERVICE CATEGORIES TOGGLE
   =========================== */
.service-categories {
  padding: 40px 20px;
  background: #f8f5f2;
  border-bottom: 2px solid rgba(85, 51, 30, 0.1);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: white;
  color: #222;
  border: 2px solid transparent;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(85, 51, 30, 0.1), transparent);
  transition: left 0.6s ease;
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn:hover {
  border-color: #55331e;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(85, 51, 30, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, #55331e, #8b6f47);
  color: white;
  border-color: #55331e;
  box-shadow: 0 5px 20px rgba(85, 51, 30, 0.3);
}

.tab-btn i {
  font-size: 1.1rem;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services-section {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #f8f5f2, #ffffff);
}

.service-card {
  display: flex;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(40px);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(85, 51, 30, 0.15);
}

.service-card:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image {
  position: relative;
  width: 45%;
  overflow: hidden;
}

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

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

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #55331e, #8b6f47);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

.service-content {
  width: 55%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #55331e, #8b6f47);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

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

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-content h3 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 15px;
  font-weight: 700;
}

.service-content > p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #555;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.service-features li:hover {
  color: #55331e;
  transform: translateX(5px);
}

.service-features i {
  color: #55331e;
  font-size: 1.1rem;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: linear-gradient(135deg, #55331e, #8b6f47);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 20px;
  align-self: flex-start;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.service-btn:hover::before {
  width: 300px;
  height: 300px;
}

.service-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(85, 51, 30, 0.3);
}

/* ===========================
   HOW IT WORKS SECTION
   =========================== */
.how-it-works {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f8f5f2 0%, #e5d2b8 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  color: #55331e;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding: 8px 20px;
  background: rgba(85, 51, 30, 0.1);
  border-radius: 30px;
}

.section-title {
  font-size: 3rem;
  color: #222;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
}

.timeline-item {
  text-align: center;
  position: relative;
}

.timeline-icon {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  position: relative;
  box-shadow: 0 10px 30px rgba(85, 51, 30, 0.15);
  transition: all 0.4s ease;
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.1) rotateY(180deg);
  box-shadow: 0 15px 40px rgba(85, 51, 30, 0.25);
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #55331e, #8b6f47);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-icon i {
  font-size: 2.5rem;
  color: #55331e;
}

.timeline-content h3 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 10px;
  font-weight: 700;
}

.timeline-content p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* ===========================
   WHY SERVICES SECTION
   =========================== */
.why-services {
  padding: 80px 20px;
  background: white;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.why-item {
  text-align: center;
  padding: 40px 30px;
  background: #f8f5f2;
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #55331e, #8b6f47);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.why-item:hover::before {
  transform: scaleX(1);
}

.why-item:hover {
  transform: translateY(-10px);
  background: white;
  box-shadow: 0 20px 50px rgba(85, 51, 30, 0.15);
}

.why-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #55331e, #8b6f47);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.4s ease;
}

.why-item:hover .why-icon {
  transform: scale(1.15) rotate(10deg);
}

.why-icon i {
  font-size: 2rem;
  color: white;
}

.why-item h3 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 10px;
  font-weight: 700;
}

.why-item p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* ===========================
   CTA SECTION
   =========================== */
.services-cta {
  position: relative;
  padding: 120px 20px;
  background-image: url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(85, 51, 30, 0.92), rgba(139, 111, 71, 0.88));
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 45px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s ease;
}

.btn-cta-primary {
  background: white;
  color: #55331e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-cta-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: #e5d2b8;
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
  background: white;
  color: #55331e;
  transform: translateY(-5px);
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 968px) {
  .service-card {
    flex-direction: column !important;
  }

  .service-image,
  .service-content {
    width: 100%;
  }

  .service-image {
    height: 300px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .cta-content h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .category-tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .service-content {
    padding: 30px;
  }

  .service-content h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
