/* === RESET & BODY === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f9fc;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

/* === HEADER === */
header {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: white;
  padding: 50px 20px;
  text-align: center;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
}

/* === NAVIGATION === */
nav {
  background: #2c3e50;
  padding: 10px 20px;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  text-decoration: underline;
}

/* === SECTIONS === */
.section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

/* === SERVICES GRID === */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-top: 0;
  color: #2980b9;
}

/* === CTA SECTION === */
.cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #e8f0fe;
}

.cta-wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* === CTA BUTTONS === */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  min-width: 220px;
  text-align: center;
}

.cta-button.email {
  background-color: #27ae60;
  color: white;
}

.cta-button.email:hover {
  background-color: #219150;
}

.cta-button.whatsapp {
  background-color: #25D366;
  color: white;
}

.cta-button.whatsapp:hover {
  background-color: #1ebe5b;
}

/* === BACK BUTTON (MOBILE FRIENDLY) === */
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #fff;
  background-color: #e67e22;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  margin-left: auto;
  margin-right: auto;
}

/* CENTER FIX WRAPPER */
.back-button-wrapper {
  text-align: center;
}

/* === SERVICE DETAIL === */
.service-detail {
  animation: rotateIn 0.6s ease forwards;
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.service-detail h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 2rem;
}

.service-detail p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #444;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 20px;
  background-color: #2c3e50;
  color: white;
  font-size: 0.9rem;
}

/* === ANIMATIONS === */
@keyframes rotateIn {
  0% {
    transform: rotateY(90deg);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  .section, .cta-section {
    padding: 40px 15px;
  }

  .card {
    padding: 15px;
  }

  .back-button {
    display: block;
    width: fit-content;
    max-width: 90%;
  }

  .back-button-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 30px;
  }
}
