/* Custom Styles for Donut Bar */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: rgba(200, 169, 97, 0.3);
    color: #FDF8F0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a2f1a;
}
::-webkit-scrollbar-thumb {
    background: #C8A961;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af5a;
}

/* Navbar Glass Effect */
.nav-scrolled {
    background: rgba(13, 22, 13, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 169, 97, 0.1);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Reveal Animations - Progressive Enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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: 0;
    transform: translateY(40px);
}

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

/* Mobile Menu Transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s 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; }

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

/* Hamburger Animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* Gold Shimmer Effect on Hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Image Aspect Ratio Fallbacks */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Focus Styles for Accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #C8A961;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Button Ripple Effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Reduced Motion */
@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;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-forest-900\/60 {
        background-color: rgba(26, 47, 26, 0.95) !important;
    }
    .text-cream-200\/50 {
        color: rgba(245, 230, 204, 0.9) !important;
    }
}

/* Print Styles */
@media print {
    nav, #gallery, .reveal, .animate-float, .animate-float-delayed {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}

/* Utility - Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #C8A961 0%, #e8d5a3 50%, #b8943f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.glow-hover:hover {
    box-shadow: 0 0 60px rgba(200, 169, 97, 0.15);
}
