/* Custom CSS for Mercy Nails - Editorial Design */

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Navigation styles */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background-color: rgba(26, 26, 26, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Button styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Service card hover effect */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.15);
}

/* Image hover effect */
.service-image {
    transition: transform 0.5s ease;
}

/* Coral accent underline */
.coral-underline {
    position: relative;
    display: inline-block;
}

.coral-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: #FF6B6B;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.coral-underline:hover::after {
    transform: scaleX(1);
}

/* Navigation link styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #FF6B6B;
    transition: width 0.3s ease;
}

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

/* Form input styles */
input,
textarea,
select {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    color: #ffffff;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Decorative line */
.decorative-line {
    width: 60px;
    height: 3px;
    background: #FF6B6B;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Scroll reveal animation */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery image hover */
.aspect-square {
    overflow: hidden;
    border-radius: 0.5rem;
}

.aspect-square img {
    transition: transform 0.5s ease;
}

.aspect-square:hover img {
    transform: scale(1.1);
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .editorial-headline {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .editorial-subheadline {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #FF6B6B;
    color: #ffffff;
}
