/* Custom styles for Sip Oxford */

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

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

::-webkit-scrollbar-track {
    background: #05120c;
}

::-webkit-scrollbar-thumb {
    background: #1e4d32;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d6b46;
}

/* Selection color */
::selection {
    background: #d4af37;
    color: #05120c;
}

/* Navbar scroll effect handled by JS */
.navbar-scrolled {
    background: rgba(5, 18, 12, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #f0c05b 50%, #b8942e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pulse animation for decorative elements */
@keyframes subtle-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.animate-subtle-pulse {
    animation: subtle-pulse 3s ease-in-out infinite;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-1 { animation: float 4s ease-in-out infinite; }
.float-2 { animation: float 4s ease-in-out infinite 0.5s; }
.float-3 { animation: float 4s ease-in-out infinite 1s; }

/* Fade-in animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

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

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Ensure contrast for all text elements */
.text-cream-50 { color: #fbf9f4; }
.text-cream-100 { color: #f7f3e8; }
.text-cream-200 { color: #efe8d3; }
.text-cream-200\\/60 { color: rgba(239, 232, 211, 0.6); }
.text-cream-200\\/70 { color: rgba(239, 232, 211, 0.7); }
.text-cream-200\\/50 { color: rgba(239, 232, 211, 0.5); }

/* Gold accent utilities */
.border-gold-500\\/20 { border-color: rgba(212, 175, 55, 0.2); }
.border-gold-500\\/30 { border-color: rgba(212, 175, 55, 0.3); }
.border-gold-500\\/40 { border-color: rgba(212, 175, 55, 0.4); }
.bg-gold-500\\/10 { background-color: rgba(212, 175, 55, 0.1); }
.bg-gold-500\\/20 { background-color: rgba(212, 175, 55, 0.2); }
.bg-gold-500\\/50 { background-color: rgba(212, 175, 55, 0.5); }
