/* Custom styles that complement Tailwind */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #faf8f4;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Hero entrance animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    #heroBadge,
    #heroLine1,
    #heroLine2,
    #heroSub,
    #heroLocation,
    #heroCTA {
        opacity: 0;
    }

    #heroBadge.revealed { opacity: 1; transition: opacity 0.6s ease 0.2s; }
    #heroLine1.revealed { opacity: 1; transition: opacity 0.6s ease 0.4s; }
    #heroLine2.revealed { opacity: 1; transition: opacity 0.6s ease 0.6s; }
    #heroSub.revealed { opacity: 1; transition: opacity 0.6s ease 0.8s; }
    #heroLocation.revealed { opacity: 1; transition: opacity 0.6s ease 1s; }
    #heroCTA.revealed { opacity: 1; transition: opacity 0.6s ease 1.2s; }
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(5, 8, 6, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* Mobile menu transitions */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23c9a84c' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a0f0c inset !important;
    -webkit-text-fill-color: #faf8f4 !important;
}

/* Smooth image loading */
img {
    image-rendering: auto;
}

/* Card hover effects */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Gold border glow on focus */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.2);
}

/* Mobile menu line animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

/* Prevent layout shift on images */
img {
    object-fit: cover;
}
