/* Custom styles for Ams Taxes */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(112, 21, 46, 0.08);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu line animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service card hover effects */
.service-card {
    transform-style: preserve-3d;
}

/* Hero underline animation */
h1 span.relative::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d94065, #ff718a);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineGrow 0.8s ease forwards 0.5s;
}

@keyframes underlineGrow {
    to { transform: scaleX(1); }
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Geometric shape decorations */
.geo-shape-1 {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d94065, #f5a3b5);
    border-radius: 16px;
    transform: rotate(45deg);
    opacity: 0.1;
}

.geo-shape-2 {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid #d94065;
    border-radius: 50%;
    opacity: 0.08;
}

/* Custom selection color */
::selection {
    background: #d94065;
    color: white;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    border-color: #d94065 !important;
    box-shadow: 0 0 0 3px rgba(217, 64, 101, 0.1) !important;
}

/* Back to top button */
#backToTop.show {
    opacity: 1;
    pointer-events: all;
}

/* Image hover zoom */
img {
    transition: transform 0.6s ease;
}

/* Subtle pattern overlay for sections */
.pattern-overlay {
    background-image: radial-gradient(circle, rgba(112, 21, 46, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Testimonial card hover */
.bg-white.rounded-2xl {
    transition: all 0.4s ease;
}

.bg-white.rounded-2xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(112, 21, 46, 0.1) !important;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

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