/* ═══════════════════════════════════════════
   TRIO SQUARE — Custom Styles
   ═══════════════════════════════════════════ */

/* ── Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ── 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;
    }
    .animate-float,
    .animate-fade-in-up {
        animation: none;
        opacity: 1;
    }
}

/* ── Menu Tabs ── */
.menu-tab {
    background: transparent;
    color: #305584;
    border: 2px solid transparent;
}

.menu-tab.active {
    background: #122233;
    color: #f0fdf4;
}

.menu-tab:hover:not(.active) {
    border-color: #86efac;
    background: #dcfce7;
}

/* ── Navbar ── */
.nav-link {
    position: relative;
}

/* ── Smooth section transitions ── */
section {
    position: relative;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
    background: #8097b4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #305584;
}

/* ── Selection ── */
::selection {
    background: #86efac;
    color: #122233;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Mobile menu animation ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Button hover lift ── */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Image hover container ── */
.rounded-3xl.overflow-hidden,
.rounded-2xl.overflow-hidden {
    will-change: transform;
}
