/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9ff;
}

/* Header */
header {
  background-color: #2c5aa0;
  color: white;
  padding: 1rem 0;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav-menu a:hover {
  background-color: #1e3d72;
}

/* Hero Section */
.hero {
  background: url("foto/tempat.jpg") no-repeat center center;
  background-size: cover;
  height: 100vh; /* Atau ganti dengan tinggi tetap seperti 600px jika terlalu tinggi */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay agar teks tetap terbaca */
  z-index: 1;
}

.hero .container {
  z-index: 2;
  position: relative;
}

.btn {
  display: inline-block;
  background-color: white;
  color: #2c5aa0;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* ubah ukuran selamat datang */
.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero .btn {
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 30px;
  font-weight: bold;
  background-color: #ffffff;
  color: #2c5aa0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Styles */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  color: #2c5aa0;
  margin-bottom: 15px;
}

.section-title p {
  font-size: 18px;
  color: #666;
}

/* Services Section */
.services {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: #f8f9ff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #e6f2ff;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: #4a90e2;
  box-shadow: 0 5px 15px rgba(76, 144, 226, 0.2);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.service-card h3 {
  color: #2c5aa0;
  margin-bottom: 15px;
  font-size: 24px;
}

.service-card p {
  color: #666;
  margin-bottom: 20px;
}

.price {
  color: #4a90e2;
  font-weight: bold;
  font-size: 18px;
}

/* About Section */
.about {
  background-color: #e6f2ff;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  color: #2c5aa0;
  margin-bottom: 20px;
  font-size: 32px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #555;
}

.about-image {
  background-color: #4a90e2;
  height: 300px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

/* Gallery Section */
.gallery {
  background-color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  background-color: #87ceeb;
  height: 200px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  transition: all 0.3s;
}

.gallery-item:hover {
  background-color: #4a90e2;
}

/* Contact Section */
.contact {
  background-color: #f8f9ff;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.contact-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #e6f2ff;
}

.contact-card h3 {
  color: #2c5aa0;
  margin-bottom: 20px;
  font-size: 24px;
}

.contact-card p {
  color: #666;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: #2c5aa0;
  color: white;
  text-align: center;
  padding: 40px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-section p,
.footer-section li {
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid #1e3d72;
  padding-top: 20px;
  opacity: 0.8;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e6f2ff;
}

th {
  background-color: #2c5aa0;
  color: white;
}

tr:hover {
  background-color: #f8f9ff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .about-text h2 {
    font-size: 24px;
  }
}

/* background layanan */
.potong-rambut {
  background-image: url("foto/pangkas.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 400px; /* atau sesuai tinggi yang diinginkan */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.potong-rambut::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* opsional untuk overlay gelap */
  z-index: 1;
}

.potong-rambut .content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cat-rambut {
  background-image: url("foto/catrambut.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 400px; /* atau sesuai tinggi yang diinginkan */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.cat-rambut::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* opsional untuk overlay gelap */
  z-index: 1;
}

.cat-rambut .content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.facial {
  background-image: url("foto/facial.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 400px; /* atau sesuai tinggi yang diinginkan */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.facial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* opsional untuk overlay gelap */
  z-index: 1;
}

.facial .content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.manicure {
  background-image: url("foto/manicure.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 400px; /* atau sesuai tinggi yang diinginkan */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.manicure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* opsional untuk overlay gelap */
  z-index: 1;
}

.manicure .content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.pedicure {
  background-image: url("foto/pedicure.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 400px; /* atau sesuai tinggi yang diinginkan */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.pedicure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* opsional untuk overlay gelap */
  z-index: 1;
}

.pedicure .content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.makeup {
  background-image: url("foto/makeup.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 400px; /* atau sesuai tinggi yang diinginkan */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.makeup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* opsional untuk overlay gelap */
  z-index: 1;
}

.makeup .content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.potong-rambut .content h2,
.cat-rambut .content h2,
.facial .content h2,
.manicure .content h2,
.pedicure .content h2,
.makeup .content h2 {
  color: #ffe5b4; /* ubah warna judul dilayanan */
}

/*ubah ukuran foto sendiri*/
.about-image {
  max-width: 300px;
  margin: 0 auto;
}

/* untuk ukuran dibagian galeri */
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-item {
  position: relative;
  height: 300px;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Efek tulisan muncul */
.gallery-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #2c5aa0; /* agar tetap terlihat */
  z-index: 1000; /* supaya tetap di atas elemen lain */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* opsional efek bayangan */
}
