/* Custom styles for Harmonia Designs */

/* Smooth scroll offset for fixed nav */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
    /* Service card hover effects */
    .service-card {
        transform: translateY(0);
        transition: transform 0.4s ease, border-color 0.4s ease;
    }
    
    .service-card:hover {
        transform: translateY(-4px);
    }

    /* Gallery hover effects */
    .gallery-item {
        cursor: pointer;
    }
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

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

::-webkit-scrollbar-track {
    background: #0C0F0E;
}

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

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

/* Selection color */
::selection {
    background: rgba(201, 169, 110, 0.3);
    color: #F5F0E8;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #C9A96E;
    outline-offset: 2px;
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(12, 15, 14, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 169, 110, 0.1);
}

/* Mobile menu active state */
#mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile menu lines animation */
.menu-toggle-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

.menu-toggle-active .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Gold shimmer effect on hover for buttons */
button:hover,
a:hover {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A908C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* Print styles */
@media print {
    #navbar,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
