/* ============================================
   ANNIE LUXURY HOMES - Professional Dark Theme
   Black & Gold Luxury Design with Smooth Transitions
   ============================================ */

:root {
    /* Luxury Gold | Primary */
    --primary: #A57C00;
    --primary-light: #D9A944;
    --primary-dark: #6B4E00;
    --primary-glow: rgba(165, 124, 0, 0.8);
    
    /* Coastal Ocean Colors */
    --coast-deep: #1a3a52;
    --coast-teal: #2d5f7a;
    --coast-light: #4a8ab5;
    --coast-aqua: #6ec7d4;
    --coast-mist: #a5d8e6;
    
    /* Premium Sand & Beach */
    --sand-light: #e8dcc8;
    --sand-medium: #d4c4b0;
    --sand-dark: #a08070;
    
    /* Dark Base Palette */
    --dark-0: #000000;
    --dark-1: #0a0a0a;
    --dark-2: #1a1a1a;
    --dark-3: #2a2a2a;
    --dark-4: #3a3a3a;
    --dark-navy: #0f1e2e;
    
    /* Text Hierarchy */
    --text-1: #ffffff;
    --text-2: #e8e8e8;
    --text-3: #cccccc;
    --text-4: #999999;
    --text-gold: #A57C00;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    transition: var(--transition);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: var(--text-1);
    line-height: 1.8;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(45, 95, 122, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(106, 199, 212, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 215, 0, 0.01) 2px,
            rgba(255, 215, 0, 0.01) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(45, 95, 122, 0.01) 2px,
            rgba(45, 95, 122, 0.01) 4px
        );
    pointer-events: none;
    z-index: 0;
}

main, section:not(.hero-section), .container-fluid, .container {
    position: relative;
    z-index: 10;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-1);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

h1 { 
    font-size: 3.8rem; 
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: 2.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--coast-aqua));
    border-radius: 2px;
}

h3 { 
    font-size: 2.1rem;
    font-weight: 700;
}

h4 { 
    font-size: 1.6rem;
    font-weight: 600;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--dark-navy) 0%, rgba(26, 43, 61, 0.95) 100%) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 
                inset 0 1px 0 rgba(212, 175, 55, 0.1),
                0 0 30px rgba(45, 95, 122, 0.2);
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    padding: 1.2rem 0;
    backdrop-filter: blur(15px);
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--coast-aqua), transparent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.navbar-brand {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary) !important;
    text-transform: uppercase;
    font-family: 'Georgia', serif;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4),
                 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8),
                 0 0 50px rgba(45, 95, 122, 0.6),
                 0 2px 8px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.navbar-nav {
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-item {
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-2) !important;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
    margin: 0 0.3rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--coast-aqua));
    transition: var(--transition-fast);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6), 0 0 8px rgba(45, 95, 122, 0.4);
}

.dropdown-menu {
    background: linear-gradient(135deg, rgba(15, 30, 46, 0.95) 0%, rgba(26, 43, 61, 0.95) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.dropdown-menu-dark {
    background: linear-gradient(135deg, rgba(15, 30, 46, 0.95) 0%, rgba(26, 43, 61, 0.95) 100%) !important;
}

.dropdown-item {
    color: var(--text-2) !important;
    transition: var(--transition-fast);
    padding: 0.75rem 1rem;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(212, 175, 55, 0.15) !important;
    color: var(--primary) !important;
}

.dropdown-header {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* Dropdown Toggle for mobile and desktop */
.dropdown-toggle {
    white-space: nowrap;
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle:hover,
.dropdown-toggle.show {
    color: var(--primary) !important;
}

/* Split Dropdown - Links with Chevron Button */
.navbar .dropdown.d-flex {
    align-items: stretch;
    flex-wrap: wrap;
}

.dropdown.d-flex .nav-link {
    padding: 0.5rem 0.75rem !important;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    flex-grow: 1;
}

.dropdown.d-flex .nav-link:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.dropdown.d-flex > button[data-bs-toggle="dropdown"] {
    color: var(--text-2) !important;
    padding: 0.5rem 0.75rem !important;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.dropdown.d-flex > button[data-bs-toggle="dropdown"]:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.dropdown.d-flex > button[data-bs-toggle="dropdown"] i {
    transition: transform 0.3s ease;
}

.dropdown.d-flex > button[aria-expanded="true"] {
    color: var(--primary) !important;
}

.dropdown.d-flex > button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Ensure dropdown menu stays visible on mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .dropdown.d-flex {
        flex-direction: column;
        width: 100%;
        position: relative;
        overflow: visible !important;
    }

    .dropdown.d-flex .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding: 0.75rem 1rem !important;
        width: 100%;
        font-weight: 600;
    }

    .dropdown.d-flex > button[data-bs-toggle="dropdown"] {
        padding: 0.75rem 1rem !important;
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        font-weight: 600;
        background: none !important;
        border: none !important;
        color: var(--text-2) !important;
        cursor: pointer;
        text-align: left;
        font-size: 1rem;
    }

    .dropdown.d-flex > button[data-bs-toggle="dropdown"] i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .dropdown.d-flex > button[data-bs-toggle="dropdown"]:hover {
        color: var(--primary) !important;
    }

    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: rgba(15, 30, 46, 0.95) !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        display: none !important;
        animation: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: scaleY(1) !important;
        transform-origin: top !important;
        left: 0 !important;
        top: 100% !important;
        right: auto !important;
        z-index: 1000 !important;
    }

    .dropdown-menu.show {
        display: block !important;
        padding: 0.5rem 0 !important;
        max-height: none !important;
        max-width: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(15, 30, 46, 0.95) !important;
        transform: scaleY(1) !important;
    }

    .dropdown-menu li {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
    }

    .dropdown-menu .dropdown-item {
        padding: 0.75rem 1.5rem !important;
        color: var(--text-2) !important;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        background: none !important;
        visibility: visible !important;
    }

    .dropdown-menu .dropdown-item:hover,
    .dropdown-menu .dropdown-item.active {
        background: rgba(165, 124, 0, 0.15) !important;
        color: var(--primary) !important;
        border-left-color: #A57C00;
        padding-left: 2rem !important;
    }

    .dropdown-menu .dropdown-header {
        padding: 0.75rem 1.5rem !important;
        color: #A57C00 !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(165, 124, 0, 0.2);
        margin-bottom: 0.25rem;
        display: block !important;
        visibility: visible !important;
    }

    .dropdown-menu .dropdown-divider {
        margin: 0.5rem 0 !important;
        border-color: rgba(212, 175, 55, 0.2) !important;
        display: block !important;
        visibility: visible !important;
    }
}

/* ============================================
   HERO NAVIGATION (Homepage)
   ============================================ */

.nav-link-hero {
    color: var(--text-2) !important;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 0;
}

.nav-link-hero:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.nav-link-hero:active,
.nav-link-hero:focus {
    color: var(--primary) !important;
}

.nav-dropdown-hero {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, rgba(15, 30, 46, 0.95) 0%, rgba(26, 43, 61, 0.95) 100%);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 0;
    margin-top: 0.5rem;
}

.nav-dropdown-item-hero {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-2) !important;
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-dropdown-item-hero:last-child {
    border-bottom: none;
}

.nav-dropdown-item-hero:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary) !important;
    padding-left: 1.5rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.nav-item-hero-dropdown:hover .nav-dropdown-hero {
    display: block !important;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    font-weight: 800;
    letter-spacing: 2px;
    padding: 0.85rem 2.2rem;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none !important;
    text-transform: uppercase;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    transition: var(--transition-fast);
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 95, 122, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.6),
                0 10px 30px rgba(45, 95, 122, 0.4);
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--dark-0) !important;
    font-weight: 900;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--dark-0) !important;
}

.btn-outline-gold {
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    background: transparent;
}

.btn-outline-gold:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--dark-0) !important;
    border-color: var(--primary-light) !important;
}

/* ============================================
   CARDS - ENHANCED VISIBILITY
   ============================================ */

.card {
    background: linear-gradient(135deg, rgba(15, 30, 46, 0.9) 0%, rgba(26, 43, 61, 0.85) 100%);
    border: 2px solid rgba(212, 175, 55, 0.25);
    border-radius: 15px;
    transition: var(--transition);
    overflow: hidden;
    color: var(--text-1);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 215, 0, 0.1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.5), rgba(45, 95, 122, 0.5), transparent);
    transition: var(--transition);
    z-index: 10;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(45, 95, 122, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-20px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 30px 90px rgba(212, 175, 55, 0.35),
                0 15px 50px rgba(45, 95, 122, 0.25),
                inset 0 1px 0 rgba(212, 175, 55, 0.2);
}

.card:hover::before {
    height: 3px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 2px 8px rgba(45, 95, 122, 0.3);
}
.card-title {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
    transition: var(--transition);
    font-size: 1.4rem;
}

.card:hover .card-title {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.7),
                 0 2px 8px rgba(45, 95, 122, 0.4);
    color: var(--primary-light);
    transform: translateX(5px);
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.06) 0%, rgba(45, 95, 122, 0.04) 100%) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.3) !important;
    padding: 1.5rem;
}

.card-text {
    color: var(--text-1) !important;
    line-height: 1.9;
    font-weight: 500;
}

/* ============================================
   FORMS
   ============================================ */

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(212, 175, 55, 0.25);
    color: var(--text-1);
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 500;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
}

.form-control::placeholder {
    color: var(--text-4);
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.5),
                inset 0 0 15px rgba(212, 175, 55, 0.1),
                0 0 20px rgba(45, 95, 122, 0.2);
    color: var(--text-1);
}

.form-label {
    color: var(--text-2);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.8rem;
}

/* ============================================
   SECTIONS & CONTAINERS
   ============================================ */

section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--coast-aqua), transparent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 10px rgba(45, 95, 122, 0.3);
}

.container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    font-weight: 800;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--dark-0) !important;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5),
                0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.badge:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.7),
                0 0 25px rgba(45, 95, 122, 0.3);
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */

img {
    transition: var(--transition);
    border-radius: 12px;
    filter: brightness(0.95) contrast(1.05);
}

img:hover {
    transform: scale(1.08);
    filter: brightness(1.2) contrast(1.1);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.3);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 40% 40%, rgba(45, 95, 122, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(15, 30, 46, 0.55) 50%, rgba(0, 0, 0, 0.65) 100%);
    z-index: -1;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    gap: 0.8rem;
}

.page-link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    color: var(--primary);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 700;
    padding: 0.7rem 1rem;
    letter-spacing: 0.5px;
}

.page-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    color: var(--dark-0);
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5),
                0 5px 15px rgba(45, 95, 122, 0.2);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    color: var(--dark-0);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6),
                0 10px 30px rgba(45, 95, 122, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, var(--dark-navy) 0%, rgba(26, 43, 61, 0.95) 100%);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--primary), var(--coast-aqua), transparent) 1;
    color: var(--text-2);
    margin-top: auto;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--coast-aqua), transparent);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 15px rgba(45, 95, 122, 0.3);
}

footer a {
    color: var(--text-2);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--coast-aqua));
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: translateX(3px);
}

footer a:hover::after {
    width: 100%;
}

footer h5 {
    color: var(--primary);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--primary), var(--coast-aqua)) 1;
    padding-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gold {
    color: var(--primary) !important;
}

.text-aqua {
    color: var(--coast-aqua) !important;
}

.text-muted-light {
    color: var(--text-3) !important;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
}

.bg-gradient-ocean {
    background: linear-gradient(135deg, var(--coast-deep) 0%, var(--dark-navy) 100%);
}

.border-gold {
    border: 2px solid var(--primary) !important;
}

.border-aqua {
    border: 2px solid var(--coast-aqua) !important;
}

.shadow-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 10px 30px rgba(165, 124, 0, 0.2) !important;
}

.shadow-xl {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7),
                0 15px 40px rgba(255, 215, 0, 0.3) !important;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(212, 175, 55, 0.4),
                0 10px 30px rgba(45, 95, 122, 0.2);
}

.hover-glow {
    transition: var(--transition);
}

.hover-glow:hover {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.slide-in {
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.4),
                    0 0 8px rgba(45, 95, 122, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(212, 175, 55, 0.7),
                    0 0 20px rgba(45, 95, 122, 0.4);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, var(--dark-2), var(--dark-3));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-light), var(--coast-aqua));
    border-radius: 10px;
    border: 2px solid var(--dark-2);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--primary), var(--coast-aqua));
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6),
                inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Logo Responsive Sizing */
@media (min-width: 1200px) {
    .navbar-brand img {
        height: 70px !important;
    }
}

@media (max-width: 1200px) and (min-width: 768px) {
    .navbar-brand img {
        height: 60px !important;
    }

    .nav-link {
        font-size: 0.85rem;
        margin: 0 0.25rem;
        padding: 0.4rem 0.5rem !important;
    }

    .navbar {
        padding: 0.8rem 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    section {
        padding: 3rem 0;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-brand img {
        height: 55px !important;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        height: 50px !important;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    section {
        padding: 2rem 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   ENHANCED FOOTER STYLING
   ============================================ */

footer h5 {
    color: #A57C00 !important;
    border-bottom: 2px solid rgba(165, 124, 0, 0.5);
    padding-bottom: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

footer h5:hover {
    color: #D9A944 !important;
    text-shadow: 0 0 15px rgba(165, 124, 0, 0.6);
    border-bottom-color: #D9A944;
}

footer p {
    color: #e8e8e8 !important;
    transition: all 0.3s ease;
}

footer a {
    color: #e8e8e8 !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(212, 160, 82, 0.5);
    transform: translateX(3px);
}

/* ============================================
   ENHANCED TEXT VISIBILITY
   ============================================ */

section p, div p {
    color: #e8e8e8 !important;
    transition: color 0.3s ease;
}

.text-muted {
    color: #cccccc !important;
}

.text-light {
    color: #e8e8e8 !important;
}

.text-white {
    color: #ffffff !important;
}

.text-dark {
    color: #ffffff !important;
}

/* ============================================
   SMOOTH TRANSITIONS FOR ALL ELEMENTS
   ============================================ */

* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a {
    transition: all 0.3s ease;
}

button {
    transition: all 0.3s ease;
}

input, textarea, select {
    transition: all 0.3s ease;
}

div, section, main {
    transition: background 0.3s ease;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   FOOTER LINK STYLES
   ============================================ */

.footer-link {
    color: var(--text-2);
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--coast-aqua));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-link:hover::before {
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================
   GALLERY STYLES
   ============================================ */

/* Gallery Hero Section */
.gallery-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--coast-deep) 0%, var(--coast-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 50px;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)" /></svg>');
    opacity: 0.5;
}

.gallery-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.gallery-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Galleries Section */
.featured-galleries {
    background: var(--dark-1);
    position: relative;
}

.featured-galleries::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Gallery Cards */
.gallery-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.gallery-card {
    background: var(--dark-2);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
    transform: translateY(-8px);
}

.gallery-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--dark-3);
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 100%);
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-item i {
    font-size: 1.2rem;
}

.gallery-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gallery-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    width: fit-content;
}

.gallery-card-title {
    color: var(--text-1);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.4;
}

.gallery-card-location,
.gallery-card-date {
    color: var(--text-3);
    font-size: 0.9rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-card-location i,
.gallery-card-date i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    color: var(--text-3);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #000;
    border-color: var(--primary);
}

/* All Galleries Section */
.all-galleries {
    background: var(--dark-0);
    position: relative;
}

.all-galleries::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Gallery Detail Page */
.gallery-detail-header {
    background: linear-gradient(135deg, var(--coast-deep) 0%, var(--dark-2) 100%);
    padding: 40px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 10;
}

.gallery-detail-breadcrumb {
    color: var(--text-3);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.gallery-detail-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.gallery-detail-breadcrumb a:hover {
    color: var(--primary-light);
}

.gallery-detail-breadcrumb span {
    margin: 0 10px;
    color: var(--text-4);
}

.gallery-detail-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 20px;
}

.gallery-detail-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.gallery-location,
.gallery-date {
    color: var(--text-2);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-location i,
.gallery-date i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Gallery Description */
.gallery-description {
    background: var(--dark-1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.description-content {
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 700px;
}

.media-stats {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
}

.stat {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.stat i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 2px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-3);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Media Gallery */
.media-gallery {
    background: var(--dark-0);
    position: relative;
    z-index: 10;
}

.gallery-tabs {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    gap: 0;
}

.gallery-tabs .nav-link {
    color: var(--text-3);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 15px 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.gallery-tabs .nav-link:hover {
    color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.gallery-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.gallery-tabs .nav-link i {
    font-size: 1.1rem;
}

/* Media Gallery Items */
.gallery-item,
.gallery-video-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark-2);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition-slow);
}

.gallery-item:hover,
.gallery-video-item:hover {
    border-color: var(--primary);
}

.gallery-image-link,
.gallery-video-link {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    text-decoration: none;
}

.gallery-image-link img,
.gallery-video-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover .gallery-image-link img,
.gallery-video-item:hover .gallery-video-link img {
    transform: scale(1.1);
}

.gallery-item-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: var(--transition-fast);
}

.gallery-item:hover .gallery-item-overlay,
.gallery-video-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    font-size: 3rem;
    color: var(--primary);
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-item-overlay i,
.gallery-video-item:hover .gallery-item-overlay i {
    transform: scale(1.2);
}

/* Video Thumbnails */
.video-thumbnail {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.video-thumbnail i {
    font-size: 4rem;
    transition: var(--transition-fast);
}

.gallery-video-item:hover .video-thumbnail i {
    transform: scale(1.1);
}

.gallery-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Content */
.gallery-content {
    padding-top: 30px;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Related Galleries */
.related-galleries {
    background: var(--dark-1);
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.related-galleries::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Gallery CTA */
.gallery-cta {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.gallery-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

.gallery-cta p {
    font-size: 1.1rem;
}

/* Section Styling */
.section-header {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
    margin: 0 auto;
    border-radius: 2px;
}

/* Lightbox Custom Styling */
.lb-data .lb-details,
.lb-data .lb-caption {
    color: var(--text-1);
    background: var(--dark-2);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.lb-data .lb-number {
    color: var(--primary);
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    background-color: var(--primary);
}

.lb-close {
    opacity: 0.8;
}

.lb-close:hover {
    opacity: 1;
}

/* Pagination */
.pagination-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.pagination .page-link {
    color: var(--text-3);
    background-color: transparent;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-fast);
}

.pagination .page-link:hover {
    color: var(--primary);
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* Back Button */
.btn-outline-secondary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-secondary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero-title {
        font-size: 2.5rem;
    }

    .gallery-hero-subtitle {
        font-size: 1.1rem;
    }

    .gallery-detail-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .gallery-card-image,
    .gallery-image-link,
    .gallery-video-link {
        height: 200px;
    }

    .media-stats {
        gap: 30px;
    }

    .gallery-detail-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-filters {
        justify-content: flex-start;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .video-thumbnail {
        height: 200px;
    }

    .video-thumbnail i {
        font-size: 3rem;
    }
}
