/* ===== Custom Styles for East End Muffler ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFAF5;
}
::-webkit-scrollbar-thumb {
    background: #d94f5e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* ===== Floating Card Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-1deg); }
}

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

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

.floating-card-2 {
    animation: float-delayed 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-slow 6s ease-in-out infinite;
}

/* ===== Service Card Hover Glow ===== */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card {
    position: relative;
    overflow: hidden;
}

/* ===== Intersection Observer Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
    background: rgba(255, 250, 245, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08) !important;
}

/* ===== Selection Color ===== */
::selection {
    background: #f0a0b0;
    color: #3a1219;
}

/* ===== Focus Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== Mobile Menu Transition ===== */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Geometric Decorative Elements ===== */
.geo-square {
    position: absolute;
    border: 2px solid rgba(123, 45, 59, 0.1);
    border-radius: 0.5rem;
    pointer-events: none;
}

/* ===== Button Ripple Effect ===== */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-ripple:hover::after {
    opacity: 1;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .floating-card-1 {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 12px;
        animation: float 4s ease-in-out infinite;
    }
    .floating-card-2 {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        margin-bottom: 12px;
        animation: float-delayed 5s ease-in-out infinite;
    }
    .floating-card-3 {
        position: relative;
        top: auto;
        right: auto;
        animation: float-slow 6s ease-in-out infinite;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, #contact, footer { display: none; }
    body { background: white; }
}
