/* ========================================
   The Money Box Table — Custom Styles
   ======================================== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background: rgba(255, 255, 255, 0.0);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

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

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   Floating Cards (Hero)
   ======================================== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content
   is visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Button Focus States
   ======================================== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* ========================================
   Smooth Scroll Offset for Anchors
   ======================================== */
section[id] {
    scroll-margin-top: 80px;
}

/* ========================================
   Mobile Menu Transitions
   ======================================== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ========================================
   Form Styles
   ======================================== */
input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

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

/* ========================================
   Print Styles
   ======================================== */
@media print {
    #navbar,
    #mobile-menu-btn,
    .floating-card,
    .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
