/* ============================================
   ELOISA VINTAGE — Custom Styles
   Premium Dark Luxury Theme
   Plum + Amber Color Palette
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #050204;
    color: #f5eef8;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f5eef8;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0508;
}
::-webkit-scrollbar-thumb {
    background: #4a2640;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b3460;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* --- Floating Cards --- */
.float-card-1 {
    animation: float1 6s ease-in-out infinite;
}
.float-card-2 {
    animation: float2 5s ease-in-out infinite;
    animation-delay: 1s;
}
.float-card-3 {
    animation: float3 7s ease-in-out infinite;
    animation-delay: 0.5s;
}
.float-card-4 {
    animation: float4 5.5s ease-in-out infinite;
    animation-delay: 2s;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(5, 2, 4, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(74, 38, 64, 0.2);
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* --- Menu Button Animation --- */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 6;
    transform: rotate(-45deg) translate(3px, -3px);
    margin: 0;
}

/* --- Image hover effects --- */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Button focus states --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(212, 160, 23, 0.5);
    outline-offset: 2px;
}

/* --- Input autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0d070c inset !important;
    -webkit-text-fill-color: #f5eef8 !important;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    .float-card-1,
    .float-card-2,
    .float-card-3,
    .float-card-4 {
        display: none;
    }
    
    #hero {
        min-height: 100vh;
        padding-top: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .float-card-1,
    .float-card-2,
    .float-card-3,
    .float-card-4 {
        display: none;
    }
}
