/* Villa Ombak Biru - Custom Styles */

:root {
    --primary-blue: #006494;
    --secondary-blue: #4ECDC4;
    --light-blue: #EBF7FF;
    --dark-gray: #2C3E50;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;
    --shadow-light: 0 2px 10px rgba(0, 100, 148, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 100, 148, 0.15);
    --shadow-dark: 0 10px 30px rgba(0, 100, 148, 0.2);
}

/* Typography - Ultra Thin */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--dark-gray);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark-gray);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: 5px;
    font-weight: 500;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: 4px;
    font-weight: 400;
}

h3 {
    font-size: 2rem;
    letter-spacing: 3px;
}

.display-title {
    font-weight: 500;
    font-size: 4rem;
    letter-spacing: 8px;
    line-height: 1.2;
    color: #FFF;
}

.tagline {
    font-weight: 200;
    font-style: italic;
    color: #FFF;
    letter-spacing: 3px;
}

/* Navigation */
.navbar {
    background-color: #FFF;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: none;
}

.navbar-scrolled {
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
    background-color: rgba(255, 255, 255, 0.98);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-left: 10px;
}

.villa-text {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--dark-gray);
}

.ombak-text {
    font-size: 1rem;
    font-weight: 200;
    letter-spacing: 1px;
    color: var(--primary-blue);
}

.navbar-nav .nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

.navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.btn-book-now {
    background-color: var(--primary-blue);
    color: white !important;
    border-radius: 30px;
    padding: 0.5rem 1.5rem !important;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.btn-book-now:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-book-now::after {
    display: none;
}

/* Dropdown hover functionality for desktop */
@media (min-width: 992px) {
    .navbar-nav .dropdown {
        position: relative;
    }

    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeInDown 0.3s ease;
        margin-top: 0;
    }

    .navbar-nav .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        min-width: 200px;
        padding: 0.5rem 0;
        margin: 0;
        background-color: white;
        border: none;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .dropdown-item {
        padding: 0.6rem 1.5rem;
        color: var(--dark-gray);
        font-weight: 500;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        background-color: transparent;
        border: none;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: rgba(0, 100, 148, 0.1);
        color: var(--primary-blue);
        padding-left: 1.8rem;
    }
}

/* Mobile dropdown - keep click behavior */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        border: none;
        background-color: rgba(255, 255, 255, 0.98);
        padding-left: 1rem;
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        box-shadow: none;
    }

    .navbar-nav .dropdown-item {
        padding: 0.5rem 1rem;
        font-weight: 500;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    /* Re-enable Bootstrap dropdown toggle for mobile */
    .navbar-nav .dropdown-toggle {
        position: relative;
    }

    .navbar-nav .dropdown-toggle::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Show dropdown when 'show' class is added via JavaScript */
    .navbar-nav .dropdown-menu.show {
        display: block;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 500;
    letter-spacing: 10px;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
    color: white;
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: 500;
    color: #FFF;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    color: white;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    background: transparent;
    padding: 12px 30px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-light {
    border: 2px solid white !important;
    color: white !important;
    padding: 12px 30px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-outline-light:hover {
    background-color: white !important;
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-shadow: none;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-blue);
}

/* Cards */
.villa-card {
    background: white;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    height: 100%;
}

.villa-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.villa-card .card-img-top {
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.villa-card:hover .card-img-top {
    transform: scale(1.05);
}

.villa-card .card-body {
    padding: 2rem;
}

.villa-card .card-title {
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

/* Room Features */
.room-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.room-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 100, 148, 0.1);
    font-weight: 300;
}

.room-features li:last-child {
    border-bottom: none;
}

.room-features li i {
    color: var(--primary-blue);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    cursor: pointer;
}

.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;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 100, 148, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    font-weight: 300;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Rate Table */
.rate-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.rate-table thead {
    background-color: var(--primary-blue);
    color: white;
}

.rate-table th {
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 1.5rem;
    border: none;
}

.rate-table td {
    padding: 1.2rem;
    font-weight: 300;
    border-top: 1px solid rgba(0, 100, 148, 0.1);
}

.rate-table tbody tr:hover {
    background-color: var(--light-blue);
    transition: background-color 0.3s ease;
}

/* Features List */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature-title {
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.form-control,
.form-select {
    border: 1px solid rgba(0, 100, 148, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    font-weight: 300;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 148, 0.1);
}

.form-label {
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: #1a1a1a !important;
    padding-top: 4rem;
}

.footer h5, .footer h6 {
    color: white;
    font-weight: 400;
    letter-spacing: 2px;
}

.footer .social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(78, 205, 196, 0.1);
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    padding: 0;
}

#back-to-top:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

body .text-white {
    color: rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important
}

.maps {
    max-width: 940px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    .hero-subtitle {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .display-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .section {
        padding: 60px 0;
    }

    .navbar-nav .nav-link {
        text-align: center;
        padding: 0.7rem 0;
    }

    .btn-book-now {
        margin: 1rem 0;
        display: block;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}