/* Unity Cafe — Custom Styles */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Reveal-on-scroll (progressive enhancement — content is visible by default) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image hover effects */
.group:hover img {
    transform: scale(1.05);
}

/* Selection color */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #f0f4f8;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 3px;
    border-radius: 2px;
}

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

/* 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); }
}

/* Subtle grain overlay for atmosphere section */
#atmosphere::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(20, 184, 166, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(45, 95, 151, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
