* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-deep-ocean-blue: #0B3C5D;
    --color-turquoise: #00A6A6;
    --color-coral-accents: #FF7E5F;
    --color-white: #FFFFFF;
    --color-light-gray: #f4f4f4;
    --color-dark-gray: #333;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-dark-gray);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--color-deep-ocean-blue);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--color-turquoise);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background-color: var(--color-turquoise);
    color: var(--color-white);
}

.btn.primary:hover {
    background-color: #008C8C;
}

.btn.secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background: url('./placeholders/hero-bg.jpg') no-repeat center center/cover;

    /* 🔹 Efek awal (sebelum body.loaded) */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    margin: 0 10px;
}

.play-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--color-white);
    margin-right: 8px;
    vertical-align: middle;
}

/* 🔹 Saat halaman sudah siap (class loaded di body) */
body.loaded .hero-section {
    opacity: 1;
    transform: translateY(0);
}


/* Location Section */
.location-section {
  padding: 3rem 1rem;
  background: #f7f9f8; /* warna lembut supaya konten lebih menonjol */
  text-align: center;
}

.location-section h2 {
  color: #102f2b; /* sesuai warna tema */
  margin-bottom: 1rem;
}

.location-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.map-container {
  position: relative;
  padding-bottom: 56.25%; /* Rasio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.map-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}


/* Marine Potential & Packages */
.marine-packages-section {
    padding: 80px 20px;
    text-align: center;
}

.marine-packages-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.package-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.package-cards .card {
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.package-cards .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.package-cards .card h3 {
    font-size: 1.5rem;
    margin: 15px 20px 10px;
}

.package-cards .card p {
    font-size: 1rem;
    color: var(--color-dark-gray);
    margin: 0 20px 20px;
}

.package-cards .card .btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    text-align: center;
}

/* Volunteer Coral Conservation Program */
.conservation-program-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--color-deep-ocean-blue);
    color: var(--color-white);
}

.conservation-program-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-white);
}

.conservation-content {
    max-width: 1000px;
    margin: 0 auto;
}

.conservation-content .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.conservation-content .image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.conservation-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.conservation-program-section .btn.primary {
    background-color: var(--color-coral-accents);
}

.conservation-program-section .btn.primary:hover {
    background-color: #E06B4D;
}

/* Underwater Panorama Gallery */
.gallery-section {
    padding: 80px 20px;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    .location-section h2,
    .marine-packages-section h2,
    .conservation-program-section h2,
    .gallery-section h2 {
        font-size: 2rem;
    }

    .package-cards {
        grid-template-columns: 1fr;
    }

    .conservation-content .image-gallery {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
}




/* Lightbox for Gallery */
#lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    display: none;
    justify-content: center;
    align-items: center;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 90%;
    max-height: 80%;
    padding: 4px;
    background-color: var(--color-white);
    border-radius: 5px;
}



/* Navigation Styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(11, 60, 93, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h3 {
    color: var(--color-white);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-turquoise);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-turquoise);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Footer Styling */
.footer {
    background-color: var(--color-deep-ocean-blue);
    color: var(--color-white);
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-turquoise);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth Scrolling and Parallax Effects */
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 70px; /* Account for fixed navbar */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Parallax Effect for Hero Section */
.hero-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-deep-ocean-blue);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Additional Hover Effects */
.package-cards .card,
.conservation-content .image-gallery img {
    transition: all 0.3s ease;
}

.package-cards .card:hover {
    transform: translateY(-10px) scale(1.02);
}

.conservation-content .image-gallery img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}


/* Enhanced Lightbox Styling */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-coral-accents);
}

/* ===========================
   Modal Popup Styling
=========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 40, 60, 0.75);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

.modal-content {
  background: #fdfdfd;
  border-radius: 14px;
  padding: 30px 40px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  position: relative;
  animation: popUp 0.4s ease;
}

.modal-content h2 {
  color: #004f5f;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.modal-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 25px;
  text-align: left;
  justify-content: center;
  margin: 10px 0 20px;
}

.modal-list span {
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-list span::before {
  content: "✔";
  color: #00a8a8;
  font-weight: bold;
}

.modal-price {
  font-size: 1.4rem;
  color: #c0392b;
  font-weight: 700;
  margin-bottom: 20px;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  color: #555;
  cursor: pointer;
}

#bookNowBtn {
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(90deg, #00a8a8, #007f8c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

#bookNowBtn:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #00bfbf, #009e9e);
}

.hero-social {
    margin-top: 20px;
}

.instagram-icon {
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.4));
}

.instagram-icon:hover {
    transform: scale(1.1);
}


