/* Custom styles for T and R Auto Investments */

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

/* Navbar styles */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(140, 29, 56, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(140, 29, 56, 0.08);
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even without JS */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #f5a5b8;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    border-color: #e03e66 !important;
    box-shadow: 0 0 0 3px rgba(224, 62, 102, 0.1) !important;
}

/* Hero text shadow for readability */
#hero h1, #hero p {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Card hover lift */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

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

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

/* Pulse animation for hero dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Print styles */
@media print {
    #navbar, #mobileMenu, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
