/* =========================================
   RUBIAH TIRTA DIVERS - GLOBAL STYLES
   Design: Corporate Blue & Professional
   ========================================= 
*/

/* 1. ROOT VARIABLES - Pengaturan Warna & Font */
:root {
    --main-blue: #002244;       /* Biru Gelap Profesional */
    --accent-blue: #0055a4;     /* Biru Terang */
    --light-blue: #f0f7ff;      /* Latar Belakang Biru Muda */
    --orange-action: #ff7518;   /* Warna Aksi (CTA) */
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --font-primary: 'Poppins', sans-serif;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* 3. NAVIGATION & HAMBURGER */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: transparent;
    position: fixed; /* Berubah menjadi fixed agar selalu terlihat */
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* Class saat di-scroll */
.navbar.scrolled {
    background: rgba(0, 34, 68, 0.95);
    padding: 15px 10%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--orange-action);
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 5px;
    transition: var(--transition);
}

/* Animasi X Hamburger */
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* 4. HERO SECTION */
header {
    height: 100vh;
    background: linear-gradient(rgba(0,34,68,0.5), rgba(0,34,68,0.7)), 
                url('https://divingpulauweh.com/images/banner.jpg') center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.sub-title {
    color: var(--orange-action);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.btn-book {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--orange-action);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(255, 117, 24, 0.4);
}

.btn-book:hover {
    background-color: #e66415;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--main-blue);
}

/* 5. COMMON SECTIONS */
.section {
    padding: 100px 10%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--main-blue);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: var(--orange-action);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}



/* 6. GRID LAYOUTS */
.features, .spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: var(--light-blue);
    padding: 50px 30px;
    border-radius: 20px;
    transition: 0.3s;
}

.feature-item i {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

/* Spot Cards */
.spot-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.spot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.spot-card:hover img {
    transform: scale(1.1);
}

.spot-name {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
    text-align: left;
}

/* 7. WHATSAPP FLOATING BUTTON */
.wa-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 8. FOOTER */
footer {
    background: #001a33;
    color: var(--white);
    padding: 80px 10% 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    text-align: left;
    margin-bottom: 50px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    margin-bottom: 25px;
}

/* 9. RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--main-blue);
        flex-direction: column;
        padding: 40px 0;
        text-align: center;
        display: none; /* Toggle via JS */
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .section {
        padding: 60px 5%;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
        display: block;
    }
}

/* TIMELINE STYLES */
.timeline-section {
    background: #ffffff;
    padding: 100px 10%;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Garis Tengah */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

/* Mengatur Kiri & Kanan */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Titik di Garis Tengah */
.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--orange-action);
    position: absolute;
    border-radius: 50%;
    top: 25px;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(255, 117, 24, 0.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

/* Teks Tanggal */
.timeline-date {
    font-weight: 800;
    color: var(--orange-action);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Kotak Konten */
.timeline-content {
    background: var(--light-blue);
    padding: 25px;
    border-radius: 20px;
    transition: 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    color: var(--main-blue);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* RESPONSIVE TIMELINE (Untuk HP) */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 23px !important;
    }
}

/* Pastikan select tidak terlalu besar di layar kecil */
@media (max-width: 480px) {
    #countryCode {
        width: 110px !important;
        font-size: 0.75rem !important;
    }
}

