/* C & M Beauty Spa - Custom Styles */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0a1929;
    color: #d9e2ec;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

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

/* Custom selection color */
::selection {
    background-color: #4ade80;
    color: #0a1929;
}

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

/* Button animations */
.btn-mint {
    position: relative;
    overflow: hidden;
}

.btn-mint::after {
    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;
}

.btn-mint:active::after {
    width: 300px;
    height: 300px;
}

/* Image hover effects */
.rounded-xl img,
.rounded-2xl img {
    transition: transform 0.5s ease;
}

.rounded-xl:hover img,
.rounded-2xl:hover img {
    transform: scale(1.05);
}

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

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

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Reduced motion support */
@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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    #contactForm {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-midnight-950,
    .bg-midnight-900,
    .bg-midnight-800 {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    .btn-mint {
        border: 2px solid currentColor;
    }
}

/* Reduced data mode */
@media (prefers-reduced-data: reduce) {
    .hero-pattern {
        background-image: none;
        background-color: #102a43;
    }
    
    .grid-pattern {
        background-image: none;
    }
    
    .service-card img,
    #gallery img {
        background: linear-gradient(135deg, #102a43, #243b53);
    }
}
