/* Custom styles for Graide Hoyos Beauty Studio */

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

body {
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a3a66;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a037;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 55, 0.3);
    color: #f5f5f5;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(5, 10, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 55, 0.1);
}

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

.mobile-menu-open .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-open .mobile-menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px !important;
    margin-left: 0 !important;
}

/* Service card shimmer effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 55, 0.03), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}
.service-card:hover::before {
    left: 100%;
}

/* Gallery hover effects */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: border-color 0.5s ease;
    pointer-events: none;
}
.gallery-item:hover::after {
    border-color: rgba(212, 160, 55, 0.3);
}

/* Gold accent line animation */
@keyframes shimmer {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    50.1% { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .gallery-item img,
    .service-card::before {
        transition: none;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Scroll reveal base (progressive enhancement - content always visible) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .service-card {
        padding: 2.5rem !important;
    }
}

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

/* Loading state for form */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
