/* Custom Utilities and Navigation Rules */

:root {
    --tertiary-container-rgb: 2, 20, 38;
    --secondary-rgb: 233, 193, 118;
}

/* Smooth fade-up animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(var(--tertiary-container-rgb), 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
}

/* Text Gradient */
.text-gold-gradient {
    background: linear-gradient(135deg, #e9c176 0%, #dab36a 50%, #c5a059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* --- CUSTOM NAVIGATION RULES --- */

/* Base Nav Styles */
.custom-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    height: 80px;
    background: transparent;
}

/* Desktop layout (Menu at Top initially, moves to Bottom on scroll) */
@media (min-width: 768px) {
    .custom-nav.scrolled {
        /* Move to bottom */
        transform: translateY(calc(100vh - 100%));
        height: 60px; /* More compact */
        background: rgba(var(--tertiary-container-rgb), 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(var(--secondary-rgb), 0.1);
    }

    /* Make CTA button smaller when scrolled to save space */
    .custom-nav.scrolled .nav-cta {
        padding: 6px 16px;
        font-size: 12px;
    }

    .main-wrapper {
        padding-bottom: 60px; /* Space for the bottom nav on desktop */
    }
}

/* Mobile layout (Menu on the bottom floating pill) */
@media (max-width: 767px) {
    .custom-nav {
        top: auto;
        bottom: 24px;
        left: 16px;
        width: calc(100% - 32px);
        height: 70px;
        border-radius: 20px;
        border: 1px solid rgba(var(--secondary-rgb), 0.15);
        background: rgba(var(--tertiary-container-rgb), 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        
        transform: translateY(150%); /* Hidden initially */
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .custom-nav.mobile-visible {
        transform: translateY(0); /* Slide up */
    }

    .main-wrapper {
        padding-bottom: 90px; /* Space for the bottom nav */
    }
}


/* --- QUICK NAV BUTTONS --- */
.quick-nav-container {
    position: fixed;
    right: 24px;
    bottom: 100px; /* Above mobile nav */
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (min-width: 768px) {
    .quick-nav-container {
        bottom: 80px; /* Above desktop bottom nav */
    }
}

.quick-nav-container.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(-10px);
}

.nav-btn-pill {
    background: rgba(var(--secondary-rgb), 0.15);
    border: 1px solid rgba(var(--secondary-rgb), 0.3);
    color: #e9c176;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.nav-btn-pill:hover {
    background: rgba(var(--secondary-rgb), 0.25);
    transform: scale(1.05);
}
