/* Custom Styles for Gain Willing */

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

/* Navbar Scroll Effect */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #A0AEC0;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #ED4834;
    outline-offset: 2px;
}

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

/* Image Loading */
img {
    background-color: #EDF2F7;
}

/* Selection Color */
::selection {
    background-color: #FED7D0;
    color: #1A202C;
}

/* Reduced Motion */
@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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .font-display {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #contact,
    footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
