/* Custom styles that complement Tailwind */

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

/* Selection color */
::selection {
    background: #9b1b30;
    color: #fff;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #9b1b30;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f5edd8 0%, #faf5eb 100%);
}

/* Subtle pattern for hero left side */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Geometric animation on scroll */
@media (prefers-reduced-motion: no-preference) {
    .geo-circle,
    .geo-rect,
    .geo-triangle {
        animation: float 8s ease-in-out infinite;
    }

    .geo-circle:nth-child(2) {
        animation-delay: -2s;
        animation-duration: 10s;
    }

    .geo-rect {
        animation: spin 20s linear infinite;
    }

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

    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 30px rgba(155, 27, 48, 0.1);
}

/* Menu card image hover */
.menu-card:hover .card-img {
    transform: scale(1.05);
}

/* Button ripple effect */
.btn-primary::after,
.btn-outline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after,
.btn-outline:active::after {
    width: 200px;
    height: 200px;
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Mobile menu backdrop */
.mobile-menu {
    backdrop-filter: blur(10px);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(155, 27, 48, 0.12);
}

/* Gallery image hover */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Decorative underline animation */
.deco-line {
    transition: width 0.4s ease;
}

.deco-line:hover {
    width: 100px;
}

/* Section reveal with stagger */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

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

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

    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Parallax-like subtle movement */
@media (prefers-reduced-motion: no-preference) {
    .parallax-slow {
        will-change: transform;
    }
}
