/* Custom styles to complement Tailwind */

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

/* Navbar glass effect */
#navbar {
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Subtle gradient text animations */
.hero-title span {
    display: inline-block;
}

/* Smooth image placeholder transitions */
.about-image,
.gallery-item,
.showcase-large,
.showcase-small {
    overflow: hidden;
}

.about-image > div,
.gallery-item > div,
.showcase-large > div,
.showcase-small > div {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover > div > div,
.gallery-item:hover > div > div,
.showcase-large:hover > div > div,
.showcase-small:hover > div > div {
    transform: scale(1.05);
}


/* Process step icons */
.process-icon {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* Rely box subtle animation */
.rely-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rely-box:hover {
    transform: translateX(8px);
    box-shadow: -4px 0 12px rgba(15, 76, 129, 0.1);
}

/* Mobile menu slide animation */
#mobileMenu {
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

#mobileMenu.active {
    max-height: 400px;
}

/* Scroll reveal base styles */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Ensure smooth font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #0F4C81;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #0F4C81;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0C3D6A;
}

/* Loading state for images */
[data-loading="true"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print styles */
@media print {
    nav,
    footer,
    .hero-cta,
    button {
        display: none;
    }
}

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