/* ===== Custom Styles for Bowie Tailor ===== */

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

/* Selection color */
::selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #F5F0E8;
}

/* ===== Hero Animations ===== */
.hero-orb {
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    animation-delay: 0s;
    animation-duration: 10s;
}

.hero-orb-2 {
    animation-delay: -3s;
    animation-duration: 12s;
}

.hero-orb-3 {
    animation-delay: -6s;
    animation-duration: 9s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* CTA orbs */
.cta-orb-1 {
    animation: float 12s ease-in-out infinite;
}

.cta-orb-2 {
    animation: float 14s ease-in-out infinite reverse;
    animation-delay: -4s;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(7, 14, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Buttons ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Form Inputs ===== */
input:focus, textarea:focus {
    outline: none;
}

/* ===== Image hover ===== */
.rounded-2xl.overflow-hidden img {
    will-change: transform;
}

/* ===== Gold shimmer on hover for cards ===== */
.group:hover .group-hover\:from-emerald-900\/10 {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #070E0A;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* ===== Mobile menu transitions ===== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* ===== Back to top ===== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.2;
    }
}

/* ===== Focus visible for accessibility ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}
