/* --- Global Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0f0f0f; /* Your original dark background */
  color: #f3f4f6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 0 25px rgba(168, 85, 247, 0.7); }
  100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }
}

/* --- Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #222;
}

/* --- Navbar Logo Fix --- */
/* --- 1. The Shimmering Logo Animation --- */
.logo {
  font-size: 28px;
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
  /* Optional: Add a subtle text shadow for depth */
  text-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

.logo span {
  /* Create the gradient */
  background: linear-gradient(90deg, #a855f7, #ffffff, #a855f7);
  background-size: 200% auto;
  
  /* Clip the background to the text */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  /* The Animation */
  animation: shine 3s linear infinite;
  font-weight: 800;
}

/* Define the Animation Movement */
@keyframes shine {
  to {
    background-position: 200% center;
  }
}
.nav-links a {
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
}

.nav-links a:hover { color: #a855f7; }

/* --- Hero Section (Home Page) --- */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 1.2s ease-in-out;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  animation: slideUp 0.8s ease-out;
}

.hero p {
  font-size: 20px;
  color: #9ca3af;
  margin-bottom: 40px;
  animation: slideUp 1s ease-out;
}

/* --- The A++ Button --- */
.primary-btn {
  padding: 16px 45px;
  font-size: 18px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
  animation: slideUp 1.2s ease-out, pulseGlow 3s infinite;
}

.primary-btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.6);
}

/* --- Categories Page (Grid) --- */
.page-title {
  text-align: center;
  margin: 50px 0 30px;
  font-size: 36px;
  color: #a855f7;
  animation: fadeIn 1s;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  animation: slideUp 0.8s ease-out;
}

/* --- New Image Card Design (Urban Company Style) --- */
.image-card {
  background: #18181b;
  border-radius: 16px;
  overflow: hidden; /* Keeps image inside the rounded corners */
  padding: 0;       /* Remove padding so image touches edges */
  text-align: left; /* Align text to left like the PDF */
  border: 1px solid #333;
  transition: all 0.3s ease;
  height: 100%;
}

.card-image {
  height: 160px; /* Height of the image part */
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: white;
}

.card-content p {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* Hover Effect */
.image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: #a855f7;
}

.image-card:hover .card-image {
  transform: scale(1.05); /* Slight zoom on image when hovering */
}

/* --- Provider List (Services Page) --- */
.provider-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  animation: slideUp 0.6s ease-out;
}

.provider-card {
  background: #18181b;
  border: 1px solid #333;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  animation: slideUp 0.5s ease-out;
  animation-fill-mode: both;
}

/* Stagger animation for list items */
.provider-card:nth-child(1) { animation-delay: 0.1s; }
.provider-card:nth-child(2) { animation-delay: 0.2s; }
.provider-card:nth-child(3) { animation-delay: 0.3s; }
.provider-card:nth-child(4) { animation-delay: 0.4s; }

.provider-card:hover {
  border-color: #a855f7;
  transform: translateX(10px);
}

.book-btn {
  background: transparent;
  border: 2px solid #a855f7;
  color: #a855f7;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.book-btn:hover {
  background: #a855f7;
  color: white;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}
/* --- Booking Modal (Popup) --- */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dark dim background */
  backdrop-filter: blur(5px); /* Blurs the background page */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.modal-content {
  background: #18181b;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  border: 1px solid #333;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.3); /* Purple Glow */
  position: relative;
  animation: slideUp 0.4s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 { font-size: 22px; color: white; }

.close-btn {
  font-size: 30px;
  color: #888;
  cursor: pointer;
  transition: 0.3s;
}
.close-btn:hover { color: #fff; }

/* Form Styles */
.form-group { margin-bottom: 15px; }

.form-group label {
  display: block;
  color: #ccc;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: #222;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  outline: none;
  transition: 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: #a855f7; /* Purple border on focus */
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
}
/* --- Login Page Styles --- */
.login-page {
  height: 90vh; /* Full height minus navbar */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0f0f0f 100%);
}

.form-box {
  width: 380px;
  height: 500px; /* Fixed height for neatness */
  position: relative;
  margin: 6% auto;
  background: #18181b;
  padding: 5px;
  overflow: hidden; /* Hides the form that slides out */
  border-radius: 20px;
  border: 1px solid #333;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2); /* Purple glow */
}

/* The Toggle Buttons */
.button-box {
  width: 220px;
  margin: 35px auto;
  position: relative;
  box-shadow: 0 0 20px 9px rgba(0,0,0,0.3); /* Inner shadow */
  border-radius: 30px;
  background: #222;
  display: flex;
  justify-content: space-around;
}

.toggle-btn {
  padding: 10px 30px;
  cursor: pointer;
  background: transparent;
  border: 0;
  outline: none;
  position: relative;
  color: white;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1; /* Sits on top of the sliding color */
}

#btn {
  top: 0;
  left: 0;
  position: absolute;
  width: 110px;
  height: 100%;
  background: linear-gradient(to right, #a855f7, #7c3aed);
  border-radius: 30px;
  transition: .5s; /* Smooth slide animation */
}

/* Social Icons */
.social-icons {
  margin: 30px auto;
  text-align: center;
}

.social-icons i {
  color: #ccc;
  font-size: 24px;
  margin: 0 10px;
  cursor: pointer;
  transition: 0.3s;
}

.social-icons i:hover { color: #a855f7; transform: translateY(-3px); }

/* The Forms */
.input-group {
  top: 150px; /* Positions form below buttons */
  position: absolute;
  width: 280px;
  transition: .5s;
}

.input-field {
  width: 100%;
  padding: 10px 0;
  margin: 5px 0;
  border-left: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid #999;
  outline: none;
  background: transparent;
  color: white;
  transition: 0.3s;
}

.input-field:focus { border-bottom: 1px solid #a855f7; }

.submit-btn {
  width: 85%;
  padding: 10px 30px;
  cursor: pointer;
  display: block;
  margin: 30px auto;
  background: linear-gradient(to right, #a855f7, #7c3aed);
  border: 0;
  outline: none;
  border-radius: 30px;
  color: white;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
  transition: 0.3s;
}

.submit-btn:hover { transform: translateY(-2px); }

.check-box { margin: 30px 10px 30px 0; accent-color: #a855f7;}
/* NEW CORRECT CODE - PASTE THIS */
.input-group span { 
  color: #777; 
  font-size: 12px; 
  bottom: 68px; 
  position: absolute; 
}

/* Positioning the two forms side-by-side (one hidden off-screen) */
#login { left: 50px; }
#register { left: 450px; } /* Pushed to the right initially */
/* --- New Subcategory Service Tiles --- */

.service-tile {
  background: #18181b;
  border: 1px solid #333;
  border-radius: 15px;
  padding: 25px 20px;
  display: flex;
  flex-direction: column; /* Stack Icon on top of Text */
  align-items: center;
  justify-content: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* The Icon Circle */
.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(168, 85, 247, 0.1); /* Very light purple background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.icon-box i {
  font-size: 24px;
  color: #a855f7; /* Purple Icon */
}

/* The Text */
.service-tile h3 {
  font-size: 16px;
  color: white;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Small Arrow that appears on hover */
.arrow-icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s;
}

.arrow-icon i {
  color: #777;
  font-size: 12px;
}

/* --- Hover Effects --- */
.service-tile:hover {
  background: #202023;
  border-color: #a855f7; /* Purple Border */
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.service-tile:hover .icon-box {
  background: #a855f7; /* Circle turns solid purple */
  transform: scale(1.1);
}

.service-tile:hover .icon-box i {
  color: white; /* Icon turns white */
}

.service-tile:hover .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}
/* --- Search Bar Styling --- */
.search-container {
  background: white;
  width: 100%;
  max-width: 600px;
  margin: 30px auto 10px; /* Centers it */
  padding: 8px;
  border-radius: 50px; /* Pill shape */
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Deep shadow for pop */
  transition: transform 0.3s;
}

.search-container:hover {
  transform: scale(1.02); /* Slight zoom on hover */
}

.search-icon {
  color: #888;
  font-size: 18px;
  margin-left: 15px;
  margin-right: 10px;
}

.search-container input {
  flex: 1; /* Takes up all available space */
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  padding: 10px;
}

.search-btn {
  background: #a855f7; /* Your Purple Theme */
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.search-btn:hover {
  background: #9333ea;
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}
/* --- How It Works Section --- */
.how-it-works {
  padding: 80px 20px;
  background: #111; /* Slightly lighter than the main black background for contrast */
  text-align: center;
  border-top: 1px solid #222;
}

.how-it-works h2 {
  font-size: 36px;
  color: white;
  margin-bottom: 10px;
}

.steps-container {
  display: flex; /* Horizontal Layout */
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 50px auto 0;
  flex-wrap: wrap; /* Stacks nicely on mobile if needed */
}

.step-box {
  background: #18181b;
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid #333;
  width: 300px; /* Fixed width for uniform look */
  transition: 0.3s ease;
  cursor: default;
}

/* Hover Effect: The box floats up and glows */
.step-box:hover {
  transform: translateY(-10px);
  border-color: #a855f7;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

/* Icon Styling */
/* --- UPDATED Icon Styling (Make them POP) --- */
.step-icon {
  width: 80px;  /* Slightly bigger circle */
  height: 80px;
  background: linear-gradient(135deg, #a855f7, #7c3aed); /* Gradient Purple Circle */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); /* Glowing effect */
}

.step-icon i {
  font-size: 32px; /* Bigger Icon */
  color: white;    /* Bright White Icon */
}

/* Hover Effect: Pulse Animation */
.step-box:hover .step-icon {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.8); /* Brighter Glow */
}

.step-box:hover .step-icon i {
  color: white;
}

/* Text Styling */
.step-box h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 15px;
}

.step-box p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}
/* --- Popular Services Section --- */
.popular-section {
  padding: 60px 20px;
  text-align: center;
  /* Dark background but slightly different to separate sections */
  background: #09090b; 
}

.popular-section h2 {
  color: white;
  font-size: 32px;
  margin-bottom: 5px;
}

.subtitle {
  color: #777;
  font-size: 14px;
  margin-bottom: 40px;
}

.popular-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap; /* Wraps nicely on smaller screens */
  max-width: 1200px;
  margin: 0 auto;
}

/* --- The Card Design --- */
.pop-card {
  background: #18181b;
  border-radius: 16px;
  width: 250px; /* Slim card width */
  overflow: hidden;
  border: 1px solid #333;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pop-card:hover {
  transform: translateY(-5px);
  border-color: #a855f7;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Image with Rating Badge */
.pop-image {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.rating-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: white;
  color: black;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-badge i {
  color: #facc15; /* Star Color */
  font-size: 10px;
}

/* Content & Price */
.pop-content {
  padding: 15px;
}

.pop-content h3 {
  color: white;
  font-size: 16px;
  margin-bottom: 4px;
}

.pop-content p {
  color: #888;
  font-size: 12px;
  margin-bottom: 15px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #333;
  padding-top: 10px;
}

.price {
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.btn-text {
  color: #a855f7; /* Purple */
  font-size: 13px;
  font-weight: 600;
}
/* --- Footer Styling --- */
footer {
  background: black;
  color: #777;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #222;
  margin-top: auto; /* Pushes footer to bottom */
}

footer p {
  font-size: 14px;
  margin: 0;
}

footer span {
  color: #a855f7; /* Purple accent */
  font-weight: bold;
}

.hero-animate {
  opacity: 0;
  transform: translateY(30px);
  /* The !important forces this animation to override any old code */
  animation: fadeInUp 1s ease-out forwards !important; 
}

.hero-animate-delay {
  opacity: 0;
  transform: translateY(30px);
  /* Add !important here too */
  animation: fadeInUp 1s ease-out 0.5s forwards !important; 
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --- Navigation Icons --- */
.nav-icons {
  display: flex;
  gap: 25px; /* Space between icons */
  list-style: none;
}

.icon-link {
  color: white;       /* White icon by default */
  font-size: 22px;    /* Size of the icon */
  transition: 0.3s;
}

.icon-link:hover {
  color: #a855f7;     /* Turns Neon Purple on hover */
  transform: scale(1.2); /* Grows slightly */
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.6); /* Glowing effect */
}
/* --- Location Selector Styling --- */
.location-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1); /* Glass effect */
  padding: 8px 15px;
  border-radius: 20px;
  margin-right: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-box i {
  color: #a855f7; /* Purple Icon */
  margin-right: 8px;
}

.location-box select {
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.location-box select option {
  background: #09090b; /* Dark background for dropdown items */
  color: white;
}