/* Custom Styles for Hairslaybysav */

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

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

::-webkit-scrollbar-track {
    background: #102a43;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f59e0b, #d97706);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #fcd34d, #f59e0b);
}

/* Service Card Hover Effects */
.service-card {
    background: linear-gradient(145deg, rgba(16, 42, 67, 0.5) 0%, rgba(10, 26, 46, 0.8) 100%);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.1);
}

/* Gallery Item Hover */
.gallery-item {
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 26, 46, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Button Animations */
button, a {
    position: relative;
    overflow: hidden;
}

button::before, a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:active::before, a:active::before {
    width: 300px;
    height: 300px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Pulse Animation for Badge */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
    }
}

/* Text Gradient Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Geometric Shape Animations */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(45deg);
    }
    50% {
        transform: translateY(-30px) rotate(45deg);
    }
}

/* Apply animations to decorative elements */
.absolute.top-20.right-20 {
    animation: float-slow 6s ease-in-out infinite;
}

.absolute.bottom-20.left-20 {
    animation: float-slow 8s ease-in-out infinite reverse;
}

.absolute.top-1\/3.right-1\/4 {
    animation: rotate-slow 20s linear infinite;
}

.absolute.bottom-1\/3.left-1\/4 {
    animation: rotate-slow 15s linear infinite reverse;
}

/* Focus Styles for Accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* 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;
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 400px;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print Styles */
@media print {
    nav,
    button,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-navy-950,
    .bg-navy-900 {
        background: white !important;
    }
    
    .text-white,
    .text-white\/80,
    .text-white\/60 {
        color: black !important;
    }
    
    .text-gold-400 {
        color: #92400e !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
        border-color: #f59e0b;
    }
    
    input,
    select,
    textarea {
        border-width: 2px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item:hover::before {
        opacity: 0.5;
    }
}
