/* ===== Custom Styles for Nail and Spa Story ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfcf8;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* ===== Geometric Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(52, 211, 153, 0.15);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: spin-slow 30s linear infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    border-radius: 50%;
    top: 30%;
    right: 15%;
    animation: floatReverse 6s ease-in-out infinite;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    background: rgba(52, 211, 153, 0.08);
    top: 60%;
    left: 10%;
    animation: spin-slow 20s linear infinite;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(52, 211, 153, 0.2);
    bottom: 15%;
    right: 25%;
    animation: float 7s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(212, 165, 116, 0.1);
    top: 40%;
    right: 8%;
    animation: floatReverse 9s ease-in-out infinite;
}

/* ===== Marquee ===== */
.marquee-track {
    animation: marquee 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* ===== Service Cards ===== */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

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

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.1) !important;
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    max-height: 0;
}

#mobile-menu.open {
    max-height: 500px;
}

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

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== Back to Top ===== */
#back-to-top.visible {
    opacity: 1;
    translate: 0;
    pointer-events: auto;
}

/* ===== Selection ===== */
::selection {
    background: #064e3b;
    color: #fdfcf8;
}

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

/* ===== Print ===== */
@media print {
    #navbar, #back-to-top, .geo-shape {
        display: none !important;
    }
}
