
/* ============================================== */
/* CSS RESET & GLOBAL VARIABLES */
/* ============================================== */
:root {
    /* --- COLOR PALETTE --- */
    --color-primary: #1E3A52; /* Dark Navy Blue */
    --color-secondary: #D4AF37; /* Gold/Metallic Amber */
    --color-text-light: #FFFFFF;
    --color-text-dark: #333333;
    --color-menu-bg: rgba(30, 58, 82, 0.95); /* Semi-transparent blue */
    
    /* --- SIZES & SPACING --- */
    --navbar-height-desktop: 70px;
    --navbar-height-mobile: 60px;
    --transition-fast: 0.3s ease;
    --shadow-menu: 0 10px 30px rgba(0, 0, 0, 0.25);
}


/* ============================================== */
/* NAVBAR BASE STYLES - FIXED TRANSPARENCY */
/* ============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height-desktop);
    background-color: transparent; /* COMPLETELY transparent at top */
    z-index: 1000;
    transition: all var(--transition-fast);
}

/* Navbar at top (initial state) - invisible */
.navbar:not(.scrolled) {
    background-color: transparent;
    box-shadow: none;
}

/* Navbar when scrolled - semi-transparent blue */
.navbar.scrolled {
    background-color: rgba(30, 58, 82, 0.85); /* Semi-transparent blue */
    backdrop-filter: blur(10px); /* Glass effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================== */
/* LOGO - VISIBLE ON TRANSPARENT BACKGROUND */
/* ============================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.serendib-logo {
    height: 40px;
    width: auto;
    transition: height var(--transition-fast);
}

.logo h1 {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    color: var(--color-text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Makes text visible on any background */
}

.logo span {
    color: var(--color-secondary);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================== */
/* DESKTOP NAVIGATION MENU - VISIBLE ON TRANSPARENT */
/* ============================================== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    height: 100%;
    align-items: center;
}

.nav-menu li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu a {
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5px;
    transition: color var(--transition-fast);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Makes text visible */
}

.nav-menu a:hover {
    color: var(--color-secondary);
}

/* Active link indicator */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================== */
/* DROPDOWN STYLES - DESKTOP */
/* ============================================== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    min-width: 220px;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-menu);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1001;
    border-top: 2px solid var(--color-secondary);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% - 5px);
}

.dropdown-menu li {
    height: auto;
}

.dropdown-menu a {
    padding: 12px 20px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    display: block;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-shadow: none;
}

.dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    padding-left: 25px;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* ============================================== */
/* NAV UTILITIES - VISIBLE ON TRANSPARENT */
/* ============================================== */
.nav-utilities {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-icon:hover {
    color: var(--color-secondary);
}

.btn-inquire {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-text-light);
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-inquire:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

/* ============================================== */
/* HAMBURGER MENU - VISIBLE ON TRANSPARENT */
/* ============================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-light);
    border-radius: 2px;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Makes bars visible */
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================== */
/* MOBILE MENU OVERLAY */
/* ============================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-menu-bg);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-container {
    position: absolute;
    top: var(--navbar-height-mobile);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--navbar-height-mobile));
    padding: 30px 20px;
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    margin-bottom: 30px;
}

.mobile-nav-menu li {
    margin-bottom: 1px;
}

.mobile-nav-menu a {
    display: block;
    color: var(--color-text-light);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px 20px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-secondary);
    border-left-color: var(--color-secondary);
    padding-left: 25px;
}

/* Mobile dropdown styles */
.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-arrow {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.mobile-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    list-style: none;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast);
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 500px;
}

.mobile-dropdown-menu a {
    font-size: 1rem;
    font-weight: 500;
    padding: 15px 20px;
    opacity: 0.9;
}

.mobile-menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 25px 0;
}

.mobile-menu-utilities {
    padding: 0 20px;
}

.mobile-search {
    display: flex;
    margin-bottom: 20px;
}

.mobile-search input {
    flex: 1;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px 0 0 8px;
    color: var(--color-text-light);
    font-size: 1rem;
}

.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-search button {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
}

.mobile-menu-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================== */
/* RESPONSIVE BREAKPOINTS */
/* ============================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .navbar {
        height: var(--navbar-height-mobile);
    }
    
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .serendib-logo {
        height: 35px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hide inquire button on mobile/tablet */
    .btn-inquire {
        display: none;
    }
    
    .mobile-menu-utilities .btn-inquire {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 15px;
        padding: 15px;
        font-size: 1rem;
    }
}

/* Desktop (992px and above) */
@media (min-width: 992px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .mobile-menu-container {
        padding: 20px 15px;
    }
    
    .mobile-nav-menu a {
        font-size: 1rem;
        padding: 16px 15px;
    }
}

/* ============================================== */
/* HERO SECTION FOR TESTING VISIBILITY */
/* ============================================== */
.hero-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), 
                url('https://images.unsplash.com/photo-1516483638261-f4dbaf036963?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: calc(-1 * var(--navbar-height-desktop));
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Georgia', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Content section for scrolling */
.content-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.content-section h2 {
    color: #1E3A52;
    text-align: center;
    margin-bottom: 40px;
}