/* Custom styles for Park Place */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Nav text color transitions */
.nav-text {
    color: #1e3a5f;
    transition: color 0.3s ease;
}

/* Mobile menu button colors */
#menuBtn svg {
    color: #1e3a5f;
}

/* Nav link hover underline animation */
.nav-link {
    position: relative;
    color: #1e3a5f;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a853;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #d4a853;
}

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

/* Mobile link styles */
.mobile-link {
    opacity: 1;
    transform: none;
}

/* Mobile menu open state */
.mobile-menu-open #menuBtn svg {
    color: #1e3a5f;
}

/* Dark nav state */
.dark-nav .nav-text {
    color: #ffffff;
}

.dark-nav .nav-link {
    color: #ffffff;
}

.dark-nav .nav-link:hover {
    color: #d4a853;
}

.dark-nav #menuBtn svg {
    color: #ffffff;
}

.dark-nav #menuBtn {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Scroll reveal base - always visible */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Scroll reveal with animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animate {
        animation: fadeInUp 0.8s ease forwards;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.scroll-reveal.animate:nth-child(1) { animation-delay: 0ms; }
.scroll-reveal.animate:nth-child(2) { animation-delay: 100ms; }
.scroll-reveal.animate:nth-child(3) { animation-delay: 200ms; }
.scroll-reveal.animate:nth-child(4) { animation-delay: 300ms; }
.scroll-reveal.animate:nth-child(5) { animation-delay: 400ms; }
.scroll-reveal.animate:nth-child(6) { animation-delay: 500ms; }

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenu.closed {
    transform: translateX(-100%);
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hamburger animation */
.nav-menu-line-1 {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.nav-menu-line-2 {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.nav-menu-line-3 {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.menu-active .nav-menu-line-1 {
    transform: rotate(45deg);
}

.menu-active .nav-menu-line-2 {
    opacity: 0;
}

.menu-active .nav-menu-line-3 {
    transform: rotate(-45deg);
}

/* Form input focus effects */
input:focus,
textarea:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

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

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

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

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

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

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

/* Selection color */
::selection {
    background: #d4a853;
    color: #102a43;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
