/* Custom styles complementing Tailwind CSS */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-menu-closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Navbar transition */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 42, 70, 0.08);
}

.nav-transparent {
    background-color: transparent !important;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #f0f4f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6d95cc;
}

/* Selection color */
::selection {
    background-color: #d4a017;
    color: #1a2a46;
}

/* Loading state for form button */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Image loading placeholder */
img {
    background-color: #f0f4f9;
}

/* Print styles */
@media print {
    nav, #contact, footer, .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .scroll-reveal {
        transition: none;
    }
    
    button, a {
        border: 2px solid currentColor;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid #d4a017;
    outline-offset: 2px;
    border-radius: 4px;
}

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

a[href="#contact"]::after,
button[type="submit"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

a[href="#contact"]:hover::after,
button[type="submit"]:hover::after {
    opacity: 1;
}

/* Card hover glow effect */
.bg-white.rounded-3xl:hover {
    box-shadow: 0 20px 60px -15px rgba(26, 42, 70, 0.12);
}
