/* Gab Family Group — Custom Styles */

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

/* Custom selection color */
::selection {
    background-color: #1a4d2e;
    color: #fdfcfa;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f9f6f0;
}
::-webkit-scrollbar-thumb {
    background: #a8c9ab;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7aad7e;
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 77, 46, 0.08);
}

/* Mobile menu */
#mobileMenu {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenu.closed {
    transform: translateX(100%);
}

/* Body scroll lock */
body.menu-open {
    overflow: hidden;
}

/* Floating card hover animation */
@media (prefers-reduced-motion: no-preference) {
    .absolute.z-20 {
        animation: float 6s ease-in-out infinite;
    }
    .absolute.z-20:nth-child(2) {
        animation-delay: -2s;
        animation-duration: 7s;
    }
    .absolute.z-20:nth-child(3) {
        animation-delay: -4s;
        animation-duration: 5s;
    }
}

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

/* Card hover lift */
@media (prefers-reduced-motion: no-preference) {
    .group:hover {
        transform: translateY(-4px);
    }
    .group {
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

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

/* Print styles */
@media print {
    nav, #contact, .reveal { display: block !important; opacity: 1 !important; transform: none !important; }
    body { color: #000; background: #fff; }
}
