/* Custom styles beyond Tailwind */

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

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gold gradient accent */
.gold-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Mint gradient accent */
.mint-gradient {
    background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #111d35;
}

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

.menu-line {
    transition: all 0.3s ease;
}

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

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

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

.mobile-link {
    transition: all 0.3s ease;
}

/* Button hover effects */
a[href="#contact"], button[type="submit"] {
    position: relative;
    overflow: hidden;
}

a[href="#contact"]::before, button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

a[href="#contact"]:hover::before, button[type="submit"]:hover::before {
    left: 100%;
}

/* Selection color */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: white;
}

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

/* Image aspect ratio fallback */
img {
    max-width: 100%;
    height: auto;
}
