/* Custom CSS for The Curator */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Selection */
::selection {
    background-color: #cfa97d; /* accent color */
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf9f6; /* surface color */
}

::-webkit-scrollbar-thumb {
    background: #cfa97d; /* accent color */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b6f4e; /* accent dark */
}

/* Navbar glass effect transition */
.navbar-scrolled {
    @apply shadow-md border-b-transparent;
    background-color: rgba(250, 249, 246, 0.95) !important;
}

/* Perspective for 3D card effect */
.perspective {
    perspective: 1500px;
}

.hero-card-tilt {
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.hero-card-tilt:hover {
    box-shadow: 0 35px 70px -15px rgba(26, 27, 33, 0.25);
}

.card-depth-element {
    transform: translateZ(40px);
}

.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-card-tilt:hover .card-shine {
    opacity: 1;
}

/* Background Morphing Blobs */
@keyframes morph-blob {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    34% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    }
    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

.animate-morph-blob {
    animation: morph-blob 20s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.animate-float-slow {
    animation: float-slow 15s ease-in-out infinite;
}

/* Gold curved underline drawing animation */
@keyframes drawUnderline {
    to {
        stroke-dashoffset: 0;
    }
}

.draw-underline {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawUnderline 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

/* Grid Dots Overlay */
.bg-grid-dots {
    background-image: radial-gradient(#cfa97d 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* Pulsing Gold Gold Badge */
@keyframes pulse-gold {
    0%, 100% {
        border-color: rgba(207, 169, 125, 0.3);
        box-shadow: 0 0 0 0px rgba(207, 169, 125, 0.1);
    }
    50% {
        border-color: rgba(207, 169, 125, 0.8);
        box-shadow: 0 0 16px 2px rgba(207, 169, 125, 0.2);
    }
}

.animate-pulse-gold {
    animation: pulse-gold 3s infinite;
}

/* Interactive Switcher Transitions */
.slide-fade-enter {
    opacity: 0;
    transform: translateY(10px);
}
.slide-fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.slide-fade-exit {
    opacity: 1;
    transform: translateY(0);
}
.slide-fade-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Mobile Drawer Popup Active States & Styling */
#mobile-menu-modal {
    background-color: rgba(26, 27, 33, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

#mobile-menu-content {
    background-color: #faf9f6 !important;
    box-shadow: -10px 0 35px rgba(26, 27, 33, 0.15) !important;
}

.mobile-menu-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-menu-content-active {
    transform: translateX(0) !important;
}




.sub-menu{
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
@media (min-width: 1024px) {
    .menu-item-has-children:hover .sub-menu{
        opacity: 1;
        visibility: visible;
    }
}

.sub-menu li{
    list-style: none;
}

.sub-menu a{
    display: block;
    padding: 10px 20px;
}

.sub-menu a:hover{
    background: #f5f5f5;
    color: #c08457;
}

/* Mobile Submenu Styling override */
@media (max-w: 1023px) {
    #mobile-menu-modal .sub-menu {
        position: relative;
        top: 0;
        left: 0;
        min-width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 8px;
        margin-top: 5px;
        padding: 5px 0;
        opacity: 1;
        visibility: visible;
        display: none;
        transition: none;
    }
    
    #mobile-menu-modal .mobile-submenu-open .sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    #mobile-menu-modal .sub-menu a {
        font-size: 1.125rem !important; /* text-lg equivalent */
        font-weight: 500 !important;
        padding: 8px 16px !important;
        color: #4a4c5a !important; /* primary-700 equivalent */
    }
    
    #mobile-menu-modal .sub-menu a:hover {
        color: #cfa97d !important; /* accent equivalent */
        background: transparent !important;
    }
}

