/* Custom styles for Nails and Wax by Helen */

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

/* Base font settings */
body {
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Serif font class */
.font-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll reveal animated - only applied via JS when in viewport */
.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar transition */
.navbar-scrolled {
    background: rgba(17, 25, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Gold accent line animation */
.gold-line {
    position: relative;
    display: inline-block;
}

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

.gold-line:hover::after {
    width: 100%;
}

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

::-webkit-scrollbar-track {
    background: #111928;
}

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

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

/* Selection color */
::selection {
    background: rgba(207, 155, 14, 0.3);
    color: #ffffff;
}

/* Image aspect ratio utilities */
.aspect-card {
    aspect-ratio: 4 / 5;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(rgba(207, 155, 14, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Card hover effects */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Button focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #cf9b0e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form styles */
input,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease, background 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #cf9b0e;
    background: rgba(255, 255, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Success message */
.form-success {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Gallery image hover */
.gallery-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

.float-1 {
    animation: float 6s ease-in-out infinite;
}

.float-2 {
    animation: float 6s ease-in-out infinite 1s;
}

.float-3 {
    animation: float 6s ease-in-out infinite 2s;
}

/* Gold gradient text */
.gold-gradient-text {
    background: linear-gradient(135deg, #cf9b0e, #e4bc22, #cf9b0e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
