/* ===== Custom Styles for Girl Meets Cakes ===== */

/* ---- Hero Gradient ---- */
.hero-gradient {
    background: linear-gradient(135deg, #0A1628 0%, #0F2140 30%, #152D54 60%, #0A1628 100%);
}

/* ---- CTA Gradient ---- */
.cta-gradient {
    background: linear-gradient(135deg, #0F2140 0%, #152D54 50%, #0F2140 100%);
}

/* ---- Gold Accent Text ---- */
.gold-text-small {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: #C8963E;
}

/* ---- Card Elevation ---- */
.card-elevated {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reveal Animations ---- */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Hero reveal animations */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
}

.hero .reveal-up:nth-child(1) {
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.hero .reveal-up:nth-child(2) {
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.hero .reveal-up:nth-child(3) {
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
.hero .reveal-up:nth-child(4) {
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

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

/* ---- Scroll Reveal (below fold) ---- */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Navbar Transition ---- */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ---- Nav Link Hover Effect ---- */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #D4A84B;
    transition: width 0.3s ease;
    margin-top: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* ---- Mobile Nav Links ---- */
.mobile-nav-link {
    position: relative;
    padding: 0.5rem 0;
}

/* ---- Floating Elements ---- */
.hero-float-1 {
    animation: floatSlow 8s ease-in-out infinite;
}
.hero-float-2 {
    animation: floatSlow 6s ease-in-out 1s infinite;
}
.hero-float-3 {
    animation: floatSlow 5s ease-in-out 2s infinite;
}
.hero-float-4 {
    animation: floatSlow 7s ease-in-out 0.5s infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ---- Smooth Scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Selection Color ---- */
::selection {
    background: #C8963E;
    color: #0A1628;
}

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C8963E;
    outline-offset: 2px;
}

/* ---- Button Hover Glow ---- */
button:hover,
a:hover {
    cursor: pointer;
}

/* ---- Image Lazy Load Fallback ---- */
img {
    max-width: 100%;
    height: auto;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
    .hero .reveal-up {
        animation-duration: 0.6s;
    }
}

/* ---- Print Styles ---- */
@media print {
    #navbar,
    .hero-float-1,
    .hero-float-2,
    .hero-float-3,
    .hero-float-4 {
        display: none;
    }
}
