/* ===== Custom Styles for Novartis Bakery ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0e0814;
}
::-webkit-scrollbar-thumb {
    background: #4f315c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a22d;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: radial-gradient(ellipse at 30% 50%, #4f315c 0%, #2d1b3d 40%, #1a0f24 70%, #0e0814 100%);
}

/* Hero pattern overlay */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(201, 162, 45, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Hero orb animations */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 30px) scale(1.08); }
}
@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}
.hero-orb-1 { animation: float1 8s ease-in-out infinite; }
.hero-orb-2 { animation: float2 10s ease-in-out infinite; }
.hero-orb-3 { animation: float3 12s ease-in-out infinite; }

/* Scroll indicator */
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top;
}

/* ===== Navigation ===== */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}
#navbar.scrolled {
    background: rgba(14, 8, 20, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 162, 45, 0.1);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a22d;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu .menu-line-active {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu .menu-line-active:nth-child(2) {
    opacity: 0;
}
#mobile-menu .menu-line-active:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

.mobile-link {
    position: relative;
}

/* ===== Reveal Animations ===== */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Enhanced reveal states (applied by JS for progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ===== Gold accent line animation ===== */
@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { opacity: 1; }
}

/* ===== Card hover glow ===== */
.group:hover .group-hover\:border-gold {
    box-shadow: 0 0 30px rgba(201, 162, 45, 0.1), 0 0 60px rgba(201, 162, 45, 0.05);
}

/* ===== Button hover lift ===== */
button:hover, a:hover {
    transform: translateY(-1px);
}
button:active, a:active {
    transform: translateY(0);
}

/* ===== Gallery image hover ===== */
.rounded-sm overflow-hidden {
    position: relative;
}
.rounded-sm overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 8, 20, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.rounded-sm.overflow-hidden:hover::after {
    opacity: 1;
}

/* ===== Form focus states ===== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(201, 162, 45, 0.3);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 767px) {
    .hero-gradient {
        background: radial-gradient(ellipse at 50% 40%, #4f315c 0%, #2d1b3d 35%, #1a0f24 65%, #0e0814 100%);
    }
}

@media (min-width: 768px) {
    .hero-gradient {
        background: radial-gradient(ellipse at 30% 50%, #4f315c 0%, #2d1b3d 40%, #1a0f24 70%, #0e0814 100%);
    }
}
