/* Custom styles for Glōssa Translations */

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

/* Reveal animations - progressive enhancement, only apply when JS runs */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

/* Fallback: ensure content is visible without JS */
.no-js .reveal,
html:not(.js-enabled) .reveal {
    opacity: 1;
    transform: none;
}

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Geometric decorative elements */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

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

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #a1143b;
    outline-offset: 2px;
}

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

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

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

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

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6e1332;
}

/* Form input transitions */
input, textarea, select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Card hover glow */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Hero text shadow for readability */
#hero h1 {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Subtle pattern for sections */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(161, 20, 59, 0.1), transparent);
}

/* Print styles */
@media print {
    #navbar, #mobile-menu-btn, .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
    }
}
