/* General Styling */
:root {
  --primary-color: #003a8b;
  --secondary-color: #f4f7f9;
  --accent-color: #fca311;
  --text-color: #333;
  --light-text-color: #fff;
  --border-harmony-color: #e0e0e0;
  --frame-border-color: #d4af37; /* A harmonious gold color */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  color: var(--primary-color);
  line-height: 1.3;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

section {
  padding: 60px 0;
}

/* Header */
header {
  background-color: #d4e3ff; /* Darkened harmonious light blue */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0; /* Adjusted padding */
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  background-color: var(--primary-color); /* Set the blue background */
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px; /* Add padding to "zoom out" the logo */
  border: 3px solid #fff;
  flex-shrink: 0;
  z-index: 1002;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Fit the entire logo inside the padded area */
}

nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0; /* Removed padding */
}

nav a {
  text-decoration: none;
  color: var(--primary-color); /* Kept as primary color for visibility */
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-color);
}

.header-extra {
  flex-shrink: 0;
}

.language-switcher-container {
  display: flex;
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  overflow: hidden;
}

.language-button {
  background-color: transparent;
  color: var(--primary-color);
  border: none;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.language-button:hover {
  background-color: rgba(0, 58, 139, 0.1);
}

.language-button.active {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.mobile-nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

/* Hero Section */
#hero {
  /* Penyesuaian: Mengurangi opasitas gradient dan memperbaiki path gambar */
  background: linear-gradient(rgba(0, 58, 139, 0.7), rgba(0, 58, 139, 0.7)), url("../assets/img/interior-2.jpeg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--primary-color); /* Fallback jika gambar tidak termuat */
  color: var(--light-text-color);
  text-align: center;
  padding: 100px 0;
}

#hero h1 {
  font-size: 3.5rem;
  color: var(--light-text-color);
  margin-bottom: 20px;
}

#hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.cta-button {
  background-color: var(--accent-color);
  color: var(--light-text-color);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #e8920a;
}

/* About Section */
#about {
  background-color: var(--secondary-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.text-content {
  flex: 1;
}

.photo-frame {
  flex: 1;
  border: 8px solid var(--frame-border-color);
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

#slideshow-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: opacity 0.5s ease-in-out;
}

/* Services Section */
#services {
  background-color: #fff;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  flex: 1 1 280px;
  max-width: 340px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.service-card p {
  color: #555;
}

.service-card.variant-1 {
  background-color: #f0fbff;
}
.service-card.variant-2 {
  background-color: #f1faf7;
}
.service-card.variant-3 {
  background-color: #f5f6ff;
}

/* Products Section */
#products {
  background-color: #fff;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.product-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 1 280px; /* Base size */
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-content {
  padding: 25px;
}

.product-content h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.product-content p {
  color: #555;
  font-size: 0.95rem;
}

/* Testimonials Section */
#testimonials {
  background-color: var(--primary-color);
}

#testimonials h2 {
  color: var(--light-text-color);
}

.testimonial-subtitle {
  text-align: center;
  color: var(--light-text-color);
  margin-top: -30px;
  margin-bottom: 40px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: #004baf;
  padding: 30px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-body {
  margin-bottom: 20px;
}

.testimonial-body p {
  font-style: normal;
  color: var(--light-text-color);
  position: relative;
  padding-left: 0;
  opacity: 0.9;
}

.testimonial-body p::before {
  content: "";
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
  border-top: none;
  padding-top: 0;
}

.testimonial-author img {
  display: none;
}

.testimonial-author-initial {
  background-color: #fff;
  color: var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--light-text-color);
  font-weight: 600;
}

.testimonial-author-info span {
  color: var(--light-text-color);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Location/Footer Section */
#location {
  background-color: var(--secondary-color);
}

.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.location-details {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.info-item {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e9e9e9;
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-title {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.location-map {
  width: 100%;
}

.map-container {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.map-controls {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px;
  text-align: right;
}

.map-controls span {
  margin-right: 10px;
  font-size: 0.9rem;
  color: #fff;
}

.map-controls button {
  background: transparent;
  border: 1px solid var(--light-text-color);
  color: var(--light-text-color);
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.map-controls button:hover,
.map-controls button.active {
  background-color: var(--light-text-color);
  color: var(--primary-color);
}

#map-iframe {
  width: 100%;
  height: 350px; /* Adjusted height */
  border: none;
  display: block;
}

/* Contact Form Section */
#contact {
  background-color: #fff;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form h2 {
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f4f7f9;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.consent-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.consent-container input {
  width: auto;
}

.consent-container label {
  font-size: 0.9rem;
  color: #555;
}

.contact-form button {
  align-self: flex-start;
  background-color: #fff;
  color: red;
  border: 2px solid red;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
}

.contact-form button:hover {
  background-color: red;
  color: #fff;
}

footer {
  background-color: #002a69;
  color: var(--light-text-color);
  text-align: center;
  padding: 20px 0;
}

.footer-socials {
  margin-top: 15px;
}

.footer-socials a {
  display: inline-block;
  color: var(--light-text-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.footer-socials svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
}

/* Responsive Design */

/* Desktop First - Tidy up nav layout */
@media (min-width: 769px) {
  nav {
    position: relative;
    flex-grow: 1;
  }
  nav .header-extra {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  nav ul {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 992px) {
  nav ul {
    padding-left: 20px;
    gap: 20px;
    font-size: 0.9rem;
  }

  .language-button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }

  h2 {
    font-size: 2rem;
  }

  .logo {
    width: 60px;
    height: 60px;
  }

  /* Hide desktop nav and show mobile toggle */
  nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  /* Mobile nav open state */
  nav.nav-open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    transform: translateX(0);
  }

  nav.nav-open ul {
    flex-direction: column;
    padding: 0;
    gap: 30px;
    text-align: center;
  }

  nav.nav-open .header-extra {
    display: block;
    margin-top: 30px;
    position: static;
    transform: none;
  }

  #hero {
    padding: 80px 0;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  #hero p {
    font-size: 1.1rem;
  }

  .about-content {
    flex-direction: column;
    gap: 30px;
  }

  .location-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.8rem;
  }

  #hero h1 {
    font-size: 2rem;
  }

  #hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  header .container {
    justify-content: space-between;
  }
}
