:root {
    --primary-color: #d8a834; /* Adjusted gold to match image better */
    --primary-hover: #c4962c;
    --dark-bg: #091728; /* Deep navy blue from image */
    --text-color: #333333;
    --light-gray: #f4f6f8;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --font-cursive: 'Great Vibes', cursive;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-playfair {
    font-family: var(--font-heading);
}

.font-cursive {
    font-family: var(--font-cursive);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

/* Navbar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding-top: 5px;
    padding-bottom: 5px;
}

.logo-tagline {
    font-size: 0.6rem;
    font-style: italic;
    color: #666;
    margin-top: -5px;
    letter-spacing: 0.5px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333 !important;
    letter-spacing: 1px;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-btn {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-whatsapp {
    color: #fff;
    background-color: #25D366;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.nav-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20ba59;
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: var(--dark-bg);
    padding-top: 100px; /* Navbar height offset */
    padding-bottom: 70px;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(9,23,40,0.85) 0%, rgba(9,23,40,0.5) 50%, rgba(9,23,40,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
}

.hero-subtitle {
    font-size: 3.5rem;
    margin-bottom: -15px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: normal;
}

.hero-title {
    font-size: 5.5rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-desc {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
}

.hero-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    width: 180px;
}
.hero-divider::before, .hero-divider::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: var(--primary-color);
}
.hero-divider .diamond {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
    margin: 0 10px;
}

.hero-brand {
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-slogan {
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-btn {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-btn-outline {
    border: 1px solid #fff;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: transparent;
    transition: all 0.3s ease;
}
.hero-btn-outline:hover {
    background: #fff;
    color: var(--dark-bg);
}

/* Hero Horizontal Booking Form */
.bg-dark-navy {
    background-color: var(--dark-bg);
}

.hero-booking-wrapper {
    position: relative;
    z-index: 10;
}

.booking-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(9, 23, 40, 0.3) !important;
    border: 1px solid rgba(216, 168, 52, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-card:hover {
    box-shadow: 0 20px 45px rgba(9, 23, 40, 0.35) !important;
}

.booking-tabs {
    background: var(--dark-bg);
}

.booking-tab-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent !important;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    margin-bottom: -1px;
}

.booking-tab-btn.active {
    color: #ffffff !important;
    border-bottom: 2px solid var(--primary-color) !important;
}

.booking-tab-btn:hover {
    color: #ffffff !important;
}

.custom-booking-input {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    color: var(--dark-bg);
    transition: all 0.2s ease;
}

.custom-booking-input:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(216, 168, 52, 0.15);
}

.search-btn {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Hero Bottom Vector Shape Divider */
.hero-bottom-vector {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-bottom-vector svg {
    position: relative;
    display: block;
    width: 100%;
    height: 75px;
}

/* Sri Lanka Background Vector Watermark */
.srilanka-vector-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.srilanka-vector-bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Bar */
.features-wrapper {
    position: relative;
    margin-top: 30px;
    z-index: 10;
}

.features-bar {
    border-radius: 6px;
}

.feature-icon {
    width: 55px;
    height: 55px;
    border: 1.5px dashed var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--dark-bg);
    background-color: rgba(216, 168, 52, 0.05);
}

.border-start-lg {
    border-left: 1px solid #eee;
}
@media (max-width: 991px) {
    .border-start-lg {
        border-left: none;
    }
}

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

.section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    letter-spacing: 1.5px;
}

.section-subtitle .line {
    width: 40px;
    height: 1px;
    background-color: var(--primary-color);
    margin: 0 15px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-bg);
}

/* Tour Cards */
.tour-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}
.tour-duration {
    font-size: 0.8rem;
}
.tour-locations {
    line-height: 1.6;
}

/* Service Cards */
.service-card {
    height: 280px;
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(9,23,40,0.95) 0%, rgba(9,23,40,0.3) 100%);
}
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(216, 168, 52, 0.1) !important;
}

/* Destination Cards */
.destination-card {
    height: 150px;
}
.destination-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
}
.destination-overlay h6 {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.bg-dark-green {
    background-color: #194b34 !important;
}

.view-all-btn {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* About Section */
.about-right-img {
    min-height: 500px;
}
.about-icon {
    width: 65px;
    height: 65px;
    border: 1px dashed var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color); /* Changed to primary color based on image */
    background-color: transparent;
}
.about-card {
    position: absolute;
    bottom: 0;
    left: -80px;
    background: rgba(10, 25, 47, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 480px;
    border-radius: 6px;
    z-index: 2;
}
.font-signature {
    font-family: var(--font-cursive);
}
@media (max-width: 991px) {
    .about-card {
        position: relative;
        left: 0;
        bottom: 0;
        width: 100%;
        margin-top: -30px;
        z-index: 2;
    }
}

/* Testimonials */
.testimonial-card {
    border-top: 4px solid var(--primary-color);
}
.testimonial-nav {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 5;
    text-decoration: none;
    transition: all 0.3s ease;
}
.testimonial-nav:hover {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
}

/* Page Header / Subpage Banners */
.page-header {
    position: relative;
    padding: 140px 0 70px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(9, 23, 40, 0.85) 0%, rgba(9, 23, 40, 0.95) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #cbd5e1;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 23, 40, 0.7);
    display: flex;
    flex-column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Footer */
.footer {
    position: relative;
    background: url('https://images.unsplash.com/photo-1546853020-ca4909aef454?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    border-top: 6px solid var(--primary-color);
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(9, 23, 40, 0.92) 0%, rgba(9, 23, 40, 0.97) 100%);
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.text-light-gray {
    color: #a0abb7;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #a0abb7;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.social-icons a {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}
.social-icons a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.subscribe-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Scroll Reveal Animations */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
}

.loader-logo {
    width: 150px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Responsive Navbar Logo */
.navbar-logo {
    height: 150px;
    transition: height 0.3s ease;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 1030;
}

.mobile-bottom-nav .nav-item {
    color: #666;
    text-decoration: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: color 0.2s ease;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary-color);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 991px) {
    /* Adjust logo size for mobile to prevent huge headers */
    .navbar-logo {
        height: 70px;
    }
    
    /* Make space for the bottom nav bar on mobile */
    body {
        padding-bottom: 65px;
    }
    
    /* Adjust floating WhatsApp to sit above the bottom nav */
    .floating-whatsapp {
        bottom: 85px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    .floating-whatsapp i {
        font-size: 1.5rem !important;
    }
}

/* Prevent Horizontal Overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Adjust large text sizes for mobile to prevent overflow */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Hide Google Translate Top Bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important; 
}

/* Hide the powered by google logo */
.goog-te-gadget img {
    display: none;
}
.goog-te-gadget {
    color: transparent !important;
}
.goog-te-gadget .goog-te-combo {
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    padding: 5px;
    border-radius: 4px;
    font-weight: bold;
    outline: none;
}
