/* === FONT HERO === */
.hero h1 {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 4rem;
    letter-spacing: 1px;
}


.hero p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* === HERO SECTION === */
.hero {
    background: url('../img/snorkeling2.jpg') no-repeat center center/cover;
    min-height: 95vh;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 2;
}


/* === NAVBAR LINK STYLING (DESKTOP BESAR) === */
.hero .navbar .nav-link {
    font-weight: 600;
    /* lebih tebal */
    font-size: 0.9rem;
    /* lebih besar */
    padding: 0rem 0.1rem;
    /* jarak dalam menu lebih besar */
    margin: 0 10px;
    /* jarak antar menu */
    color: #fff !important;
    text-transform: uppercase;
    /* huruf besar semua */
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 1px;
    /* spasi antar huruf */
}

.hero .navbar .nav-link:hover {
    color: #f0d24d !important;
    transform: translateY(-2px);
}

/* Tambah efek underline */
.hero .navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #f0d24d;
    transition: width 0.3s ease;
}

.hero .navbar .nav-link:hover::after {
    width: 100%;
}

/* Pusatkan menu di desktop */
@media (min-width: 992px) {
    .hero .navbar-nav {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 25px;
        /* tambah jarak antar link */
    }
}

/* Geser logo dan navbar ke kanan */
.hero .navbar .container {
    padding-left: 100px;
    /* atur sesuai kebutuhan */
}

/* Kalau mau navlink lebih ke kanan lagi */
.hero .navbar-nav {
    margin-left: 500px;
    /* tambah jarak dari logo */
}



/* === RESPONSIVE (MOBILE) === */
@media (min-width: 320px) and (max-width: 1024px) {

    /* Hero section */
    .hero {
        min-height: 75vh;
    }

    .hero h1 {
        font-size: 3rem;
        /* kecilkan judul */
        text-align: center;
    }

    .hero h2 {
        font-size: 5rem;
        /* kecilkan judul */
        text-align: center;
    }

    .hero p {
        font-size: 1rem;
        text-align: center;
        padding: 0 15px;
        /* biar gak nempel ke pinggir */
    }

    /* Navbar */
    .hero .navbar .container {
        padding-left: 20px;
        /* reset padding agar tidak terlalu jauh */
    }

    .hero .navbar-nav {
        margin-left: 0;
        /* reset margin */
        gap: 10px;
        text-align: center;
    }

    .hero .navbar .nav-link {
        font-size: 0.95rem;
        padding: 8px 0;
        display: block;
        /* biar menu rapih ke bawah */
    }

    /* WhatsApp button */
    .wa-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .wa-float img {
        width: 28px;
        height: 28px;
    }
}

/* === HAMBURGER ICON === */
.hamburger {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    display: none;
    /* hanya muncul di mobile */
    z-index: 1100;
}

@media (max-width: 991px) {
    .hamburger {
        display: block;
    }

    .hero .navbar-nav {
        display: none !important;
        /* sembunyikan navlink bootstrap di mobile */
    }
}

.sidebar {
    position: fixed;
    top: 0;
    right: -45%;
    width: 45%;
    height: 100%;
    background: #000;
    transition: 0.3s ease;
    padding: 20px;
    z-index: 2000;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-start;
    /* sejajar kiri */
    align-items: center;
    margin-bottom: 30px;
}

.sidebar .close-btn {
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 15px 0;
}

.sidebar-link {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: orange;
}

.btn-orange {
    background-color: orange;
    color: #fff;
    border: none;
}

.btn-orange:hover {
    background-color: darkorange;
    /* warna lebih gelap saat hover */
    color: #fff;
}


body,
html {
    margin: 0;
    padding: 0;
}


/* === WA FLOAT BUTTON === */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-2px, 0);
    }

    40% {
        transform: translate(2px, 0);
    }

    60% {
        transform: translate(-2px, 0);
    }

    80% {
        transform: translate(2px, 0);
    }
}

.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.wa-float:hover {
    animation: shake 0.5s infinite;
}

.wa-float img {
    width: 35px;
    height: 35px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    padding: 0px 0;
    min-height: 100vh;
}


/* === GALLERY SECTION === */
.gallery-section {
    padding: 0px 0;
}

.gallery-section .diving-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.gallery-section .diving-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #f5be27;
    border-radius: 2px;
}

/* === GALLERY GRID === */
.gallery-grid {
    display: grid;
    padding: 70px;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay effect */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1.2);
}

/* === DESKTOP LARGE (1200px+) === */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 70px;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }
}

/* === TABLET LANDSCAPE (992px - 1199px) === */
@media (max-width: 1199px) and (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 0px;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }

    .snorkeling-section .diving-title {
        font-size: 2.2rem;
    }
}

/* === TABLET PORTRAIT (768px - 991px) === */
@media (max-width: 991px) and (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 0px;
    }

    .gallery-item {
        aspect-ratio: 4/3;
        border-radius: 0px;
    }

    .galerry-section .diving-title {
        font-size: 2rem;
    }

    .gallery-overlay i {
        font-size: 1.5rem;
    }
}

/* === MOBILE & SMALL TABLET (max-width: 768px) === */
@media (max-width: 768px) {
    .gallery-section {
        padding: 0px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 50px;
    }

    .gallery-item {
        aspect-ratio: 4/3;
        border-radius: 0px;
    }

    .gallery-section .diving-title {
        font-size: 1.8rem;
        margin-bottom: 0px;
    }

    .gallery-section .diving-title::after {
        width: 60px;
        height: 3px;
    }

    .gallery-overlay i {
        font-size: 1.2rem;
    }
}

/* === MOBILE SMALL (max-width: 480px) === */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0px;
        margin-top: 40px;
    }

    .gallery-item {
        aspect-ratio: 4/3;
        border-radius: 0px;
    }

    .gallery-section .diving-title {
        font-size: 1.5rem;
    }

    .gallery-overlay i {
        font-size: 1rem;
    }
}



/* === PAGINATION - SAMA SEPERTI GAMBAR === */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 60PX;
    padding: 10px 0;
    background: linear-gradient(to bottom, transparent 0%, #f8f9fa 50%);
}

.pagination-arrow {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.pagination-arrow:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #ccc;
    color: #333;
}

.pagination-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9f9f9;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border-radius: 4px;
}

.page-number:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color: #333;
}

.page-number.active {
    background: #ffa500;
    color: white;
    border-color: #ffa500;
    cursor: default;
}

/* === RESPONSIVE === */

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 0 40px;
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
        padding: 0 30px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) and (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 20px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 0 15px;
    }

    .gallery-pagination {
        gap: 5px;
        padding: 20px 0;
    }

    .pagination-arrow,
    .page-number {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .pagination-arrow {
        font-size: 1.2rem;
    }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .gallery-pagination {
        gap: 4px;
    }

    .pagination-arrow,
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .pagination-arrow {
        font-size: 1.1rem;
    }
}


.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
}

/* Icon play khusus video */
.video-item .gallery-overlay i {
  font-size: 3rem;
}
.video-item .gallery-overlay {
  pointer-events: none;
}

