:root {
    --primary-color: #c9a961;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --text-muted: #64748b;
    --border-color: #c9a961;
    --accent-gold: #c9a961;
    --slate-950: #0f172a;
    --slate-900: #1a2744;
    --slate-800: #2d3e5f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.fw-900 {
    font-weight: 900;
}

.fw-600 {
    font-weight: 600;
}

.fw-500 {
    font-weight: 500;
}

.fw-400 {
    font-weight: 400;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem !important;
    color: var(--primary-color) !important;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-link {
    color: white !important;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
    padding: 0.5rem 1.25rem !important;
    display: inline-flex;
    align-items: center;
}

.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-lang-toggle {
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 10px !important;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary-color) !important;
}

/* Enhanced dropdown menu styling with proper hover effects for desktop */
.nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    animation: slideDown 0.3s ease-out;
    margin-top: 0 !important;
}

.dropdown-menu {
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1a2744 0%, #2d3e5f 100%) !important;
    border: 1px solid #c9a961;
    border-top: none;
    margin-top: 10px;
}

/* Force dropdown-menu-end to always stay on the right */
.dropdown-menu.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}

/* Prevent Bootstrap from repositioning dropdowns */
.dropdown-menu[data-bs-popper="static"] {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}

.dropdown-item {
    padding: 12px 20px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    color: #ffffff !important;
}

.dropdown-item:hover {
    background-color: rgba(201, 169, 97, 0.15) !important;
    color: #c9a961 !important;
    border-left-color: #c9a961;
    padding-left: 25px !important;
}

.dropdown-item.active {
    background-color: rgba(201, 169, 97, 0.15) !important;
    color: #c9a961 !important;
}

/* Hide Bootstrap's default dropdown arrow */
.navbar-nav .dropdown-toggle::after {
    display: none !important;
    border: none !important;
    content: none !important;
}

/* Add Font Awesome chevron on the right side */
.navbar-nav .dropdown-toggle {
    position: relative;
    padding-right: 1.7rem !important;
}

.navbar-nav .dropdown-toggle::before {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: #ffffff !important;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    opacity: 0.9;
    display: inline-block;
    line-height: 1;
}

.navbar-nav .dropdown-toggle:hover::before {
    opacity: 1;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::before {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

/* Adjust active underline position */
.navbar-nav .nav-link.active span {
    bottom: 0 !important;
    width: 80% !important;
    left: 30% !important;
    transform: translateX(-50%) !important;
}

/* Hero Section */
.hero-premium {
    position: relative;
    color: white;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(26, 39, 68, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.premium-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.card-img-wrapper img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.25);
}

.btn-outline-light {
    border: 2px solid white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--dark-bg) !important;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Sections */
section {
    transition: all 0.3s ease;
}

/* Footer */
footer {
    background-color: var(--slate-950) !important;
    color: var(--text-light) !important;
}

footer a {
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .nav-lang-toggle {
        border-right: none;
        margin-bottom: 10px;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100% !important;
        margin-top: 0 !important;
        box-shadow: none;
        background: #2d3e5f !important;
    }
}

@media (max-width: 768px) {
    .display-3 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .container-xl {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .dropdown-menu {
        min-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .hero-premium {
        min-height: 500px !important;
    }
}

/* Utility classes */
.text-gold {
    color: var(--primary-color) !important;
}

.bg-dark-custom {
    background-color: var(--slate-950) !important;
}

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

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
