/* Custom styles for Spray Tans By Crystal */

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

/* Base styles */
body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Playfair Display display font */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(17, 19, 22, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 90, 42, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Navigation links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff7a4a, #ff5a2a);
    transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-link {
    position: relative;
    padding-left: 16px;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: #ff5a2a;
    transition: height 0.3s ease;
}

.mobile-link:hover::before {
    height: 60%;
}

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

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

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

#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
    background: #ff7a4a;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Geometric decorative elements */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Service card hover glow */
.group:hover .group-hover\\:bg-coral-500\\/30 {
    background: rgba(255, 90, 42, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #1e2024;
}

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

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

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

/* Button press effect */
button, a {
    transition: all 0.2s ease;
}

button:active, a:active {
    transform: scale(0.98);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #2d3035 0%, #1e2024 100%);
}

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

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu.hidden {
    animation: slideUp 0.2s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Form focus states */
input:focus, textarea:focus {
    border-color: #ff5a2a !important;
    box-shadow: 0 0 0 1px #ff5a2a !important;
}

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

/* Testimonial card hover */
.scroll-reveal:hover {
    border-color: rgba(255, 90, 42, 0.3) !important;
}
