/* Custom styles for Montelongo Trolebuse 77 */

:root {
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-text {
    color: #1a1a2e;
}

#navbar.scrolled .nav-link {
    color: #36365c;
}

#navbar.scrolled .menu-line {
    background-color: #1a1a2e;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.nav-link:hover {
    color: #E8645A;
}

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

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

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

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

.mobile-link {
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.mobile-link:hover {
    border-bottom-color: #E8645A;
    color: #E8645A;
}

/* Scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .group:hover img {
        transform: none;
    }
}

/* Selection color */
::selection {
    background-color: #E8645A;
    color: white;
}

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

/* Smooth image loading */
img {
    image-rendering: auto;
}
