/* Custom styles for Swell Wealth Management */

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

/* Custom selection color */
::selection {
    background-color: #5eead4;
    color: #040d1c;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for grid items */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* Hero fade-in animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

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

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

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

nav.scrolled .nav-logo-text {
    color: #0a1628;
}

nav.scrolled .nav-link {
    color: #111f36;
}

nav.scrolled .mobile-link {
    color: #111f36;
}

/* Active nav link */
.nav-link.active {
    color: #14b8a6;
}

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

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0fdf9;
}

::-webkit-scrollbar-thumb {
    background: #99f6e4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
}

/* Mobile menu button animation */
#mobile-menu-btn.active #menu-icon {
    animation: menuIcon 0.3s ease forwards;
}

@keyframes menuIcon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(90deg); }
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Subtle hover glow on service cards */
.group:hover .rounded-2xl {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.3);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, #contact-form, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
