/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

nav.scrolled .nav-link {
    color: #f1f5f9 !important;
}

nav.scrolled .nav-text {
    color: #f8fafc !important;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button */
#back-to-top.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

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

/* Selection color */
::selection {
    background: #14b8a6;
    color: white;
}
