:root {
  --primary: #1e3a8a;
  --secondary: #f59e0b;
  --dark: #172554;
  --light: #f8fafc;
  --gray: #64748b;
  --light-blue: #e0f2fe;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-title:after {
  display: none;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray); /* Warna abu-abu */
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--dark);
}

.btn-primary:hover {
  background-color: #e67e22;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.top-bar {
  background-color: var(--dark);
  color: white;
  font-size: 14px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 20px;
}

.top-bar-contact i {
  margin-right: 5px;
}

.top-bar-social {
  display: flex;
  gap: 15px;
}

.top-bar-social a {
  color: white;
  transition: all 0.3s ease;
}

.top-bar-social a:hover {
  color: var(--secondary);
}

/* Navigation */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.logo i {
  color: var(--primary);
  margin-right: 10px;
  font-size: 2rem;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-buttons .btn {
  margin-left: 15px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('img/pertama.jpg');
  background-size: cover;
  background-position: center;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Search Box */
.search-box {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.search-group {
  display: flex;
  flex-direction: column;
}

.search-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.search-group select,
.search-group input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.search-group input[type="number"] {
  width: 100%;
}

.search-button {
  grid-column: 1 / -1;
  padding: 15px;
  font-size: 1.1rem;
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--gray);
}

.about-features {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon i {
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon i {
  transform: rotate(360deg);
}

.feature-icon {
  background-color: var(--light-blue);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Attractions Section */
.attractions {
  background-color: var(--light-blue);
}

.attraction-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  padding: 10px 25px;
  background-color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
  background-color: var(--secondary);
  color: var(--dark);
}

.tab-btn:hover:not(.active) {
  background-color: #f0f0f0;
}

.attraction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.attraction-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.attraction-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.attraction-image {
  height: 250px;
  overflow: hidden;
}

.attraction-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.attraction-card:hover .attraction-image img {
  transform: scale(1.1);
}

.attraction-info {
  padding: 25px;
}

.attraction-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.attraction-info p {
  color: var(--gray);
  margin-bottom: 15px;
}

.attraction-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.attraction-rating {
  display: flex;
  align-items: center;
  color: var(--secondary);
}

.attraction-rating i {
  margin-right: 5px;
}

.attraction-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.attraction-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.attraction-link:hover i {
  transform: translateX(5px);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-blue);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-user h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.testimonial-user p {
  font-size: 0.9rem;
  color: var(--gray);
}

.testimonial-rating {
  color: var(--secondary);
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 15px;
}

.testimonial-date {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: right;
}

/* Gallery Section */
.gallery {
  background-color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 200px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  color: white;
  font-size: 2rem;
}

/* Newsletter Section */
.newsletter {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("img/info.jpeg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.newsletter h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.newsletter p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 15px 30px;
  background-color: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 0 50px 50px 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #e67e22;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo i {
  color: var(--secondary);
  margin-right: 10px;
}

.footer-about p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--secondary);
  color: var(--dark);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: white;
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--secondary);
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Floating Button */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating-btn:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .search-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .nav-buttons {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .attraction-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: 50px;
    margin-bottom: 10px;
  }

  .newsletter-form button {
    border-radius: 50px;
  }
}
html {
  scroll-behavior: smooth;
}

.nav-links.show {
  display: flex !important;
  flex-direction: column;
  gap: 15px;
  background-color: white;
  padding: 20px;
  position: absolute;
  top: 80px; /* di bawah header */
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-buttons.show {
  display: flex !important;
  flex-direction: column;
  gap: 15px;
  background-color: white;
  padding: 0 20px 20px;
  position: absolute;
  top: 220px; /* di bawah nav-links */
  left: 0;
  right: 0;
  z-index: 998;
}

/* About Hero Section */
.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('img/about\ pulau\ penyengat.jpeg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.about-hero .container {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
}

.about-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: white; /* Warna sama dengan hero di index.html */
}

.about-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  color: white; /* Warna sama dengan hero di index.html */
}

/* Our Story Section */
.our-story {
  background-color: var(--light-blue);
  padding: 80px 0;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.story-text h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
}

.story-text p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.story-image img {
  width: 100%;
  border-radius: 10px;
}

/* Our Values Section */
.our-values {
  background-color: white;
  padding: 80px 0;
}

.our-values h2 {
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-item {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-item i {
  font-size: 2.5em;
  color: #ff6b6b;
  margin-bottom: 20px;
}

.value-item h3 {
  margin-bottom: 15px;
}

/* Our Team Section */
.our-team {
  background-color: var(--light-blue);
  padding: 80px 0;
}

/* Centering Section Titles */
.our-team h2,
.contact-section h2 {
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.team-member {
  text-align: center;
  margin-bottom: 30px;
}

.team-member h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.team-member p {
  font-size: 1rem;
  color: var(--gray);
}

.team-member .bio {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 10px;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Contact Section */
.contact-section {
  background-color: white;
  padding: 80px 0;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-item {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
  font-size: 2.5em;
  color: #ff6b6b;
  margin-bottom: 20px;
}

.contact-item h3 {
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .story-content {
    grid-template-columns: 1fr;
  }

  .story-image {
    order: -1;
  }

  .about-hero h1 {
    font-size: 2em;
  }
}
