/* Custom styles for N Mall Court Lvs Fshs */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9f1536;
}

/* Selection color */
::selection {
    background: #be2146;
    color: #fefcfb;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(190, 33, 70, 0.08);
}

.nav-scrolled .font-serif {
    color: #1a1414 !important;
}

/* Link hover animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #be2146;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 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.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Hero text animation */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-title span {
    display: inline-block;
}

.hero-title .italic {
    animation-delay: 0.2s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.reveal.revealed {
    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; }

/* Image hover zoom container */
img {
    will-change: transform;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #be2146;
    outline-offset: 2px;
}

/* Form input focus ring animation */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(190, 33, 70, 0.1);
}

/* Decorative underline animation */
.hero-title .relative {
    position: relative;
}

.hero-title .relative svg {
    transform-origin: left;
    transform: scaleX(0);
    animation: underlineReveal 0.6s ease forwards;
    animation-delay: 0.8s;
}

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

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-title {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .hero-title .relative svg {
        transform: scaleX(1);
        animation: none;
    }
    
    img, .group:hover .group-hover\:scale-110 {
        transition: none;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
