/* ========== CUSTOM STYLES ========== */

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

/* ========== FLOATING CARDS ========== */
.floating-card-1 {
    animation: float1 4s ease-in-out infinite;
}
.floating-card-2 {
    animation: float2 5s ease-in-out infinite;
}
.floating-card-3 {
    animation: float3 4.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(8px); }
}
@keyframes float3 {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

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

/* Default: visible (no-JS friendly) */
.reveal {
    opacity: 1;
    transform: none;
}

/* When JS adds the class, animate */
.reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion: skip animation */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(20px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* ========== NAVBAR SCROLL EFFECT ========== */
.nav-scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
    animation: slideDown 0.25s ease;
}

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

/* ========== BUTTON HOVER GLOW ========== */
button[type="submit"]:hover {
    transform: translateY(-1px);
}
button[type="submit"]:active {
    transform: translateY(0);
}

/* ========== INPUT FOCUS RING ========== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* ========== IMAGE PLACEHOLDER FALLBACK ========== */
img {
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(20, 184, 166, 0.2);
    color: #134e4a;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
