/* Custom styles for Old Isabella Coffee Company */

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

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

::-webkit-scrollbar-track {
    background: #0f061a;
}

::-webkit-scrollbar-thumb {
    background: #3d1f96;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a2dd6;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f5f0ff;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 6, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
.mobile-menu-open #mobile-menu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Mobile link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s 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; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .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; }
}

/* Gold shimmer effect on hover for cards */
.group:hover .group-hover\:bg-gold-500\/15 {
    background-color: rgba(212, 160, 23, 0.15);
}

/* Image hover zoom container */
.rounded-2xl.overflow-hidden {
    position: relative;
}

/* Subtle gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #d4a017 50%, #f5d67a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display.text-5xl {
        font-size: 2.5rem;
        line-height: 1.15;
    }

    .font-display.text-4xl {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
