/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE STYLES ===== */
body {
  font-family: "Poppins", sans-serif;
  color: #5e35b1;
  background: #f8faff;
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(to right, #1d8bf1, #007bff);
  color: #fff;
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px;
}

.site-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* ===== NAV LINKS ===== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  z-index: 1000;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom: 2px solid #fff;
  opacity: 0.85;
}

/* ===== PAGE BACKGROUNDS ===== */
body.home { background: linear-gradient(to right, #b3e5fc, #81d4fa); }
body.about { background: linear-gradient(to right, #90caf9, #64b5f6); }
body.services { background: linear-gradient(to right, #80deea, #4dd0e1); }
body.contact { background: linear-gradient(to right, #64b5f6, #1e88e5); }

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 70px 20px 50px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.2rem;
  color: #5e35b1;
}

.hero-image {
  width: 150px;
  height: auto;
  margin: 20px auto;
  display: block;
}

.tagline {
  color: #5e35b1;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 10px 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  background: #5e35b1;
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.btn:hover {
  background: #4527a0;
  transform: scale(1.05);
}

.btn.outline {
  background: transparent;
  border: 2px solid #5e35b1;
  color: #5e35b1;
}

.btn.outline:hover {
  background: #5e35b1;
  color: #fff;
}

/* ===== MAIN CONTENT ===== */
.content {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.content h1 {
  font-size: 2rem;
  color: #5e35b1;
  margin-bottom: 15px;
}

.content p {
  color: #5e35b1;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* ===== SERVICES ===== */
.service-list {
  list-style: none;
  text-align: left;
  margin: 30px auto;
  max-width: 700px;
}

.service-list li {
  margin-bottom: 12px;
  font-size: 1rem;
}

/* ===== IMAGE GALLERY ===== */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  justify-items: center;
  padding: 20px;
}

.image-gallery figure {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.image-gallery figure:hover {
  transform: translateY(-5px);
}

.image-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.image-gallery figcaption {
  padding: 8px;
  font-size: 0.9rem;
  color: #5e35b1;
  background: #f8faff;
}

/* ===== OUR PROCESS ===== */
.our-process {
  background: none;
  padding: 60px 20px;
  text-align: center;
}

.our-process h2 {
  color: #5e35b1;
  font-size: 2em;
  margin-bottom: 10px;
}

.our-process p {
  color: #5e35b1;
  margin-bottom: 40px;
  font-size: 1.1em;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.step {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: linear-gradient(to right, #0066ff, #33aaff);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.testimonials h2 {
  font-size: 2em;
  margin-bottom: 30px;
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.testimonial {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  text-align: left;
  color: #5e35b1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #5e35b1;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(to right, #1d8bf1, #007bff);
  color: white;
  text-align: center;
  padding: 18px;
  margin-top: auto;
  font-size: 0.9rem;
}

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #6a0dad;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 22px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: 0.3s ease;
}

#backToTop:hover {
  background-color: #4b0082;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TOUCH / HOVER POP EFFECT ===== */
.pop {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pop:hover,
.pop:active {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 768px) {
  .content, .hero, .our-process, .testimonials {
    padding: 40px 15px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1d8bf1;
    position: absolute;
    top: 65px;
    left: 0;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .testimonial-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    position: static;
    background: none;
    flex-direction: row;
    box-shadow: none;
    width: auto;
  }
}
