/* ===== Custom Styles for Pamper and Polish Nail Spa ===== */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(5deg); }
    66% { transform: translateY(-8px) rotate(-3deg); }
}

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

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-scroll-down {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* Floating petals decoration */
.floating-petal {
    position: absolute;
    width: 12px;
    height: 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.6), rgba(244, 114, 182, 0.4));
    border-radius: 50% 0 50% 50%;
    animation: float 4s ease-in-out infinite;
    pointer-events: none;
}

.floating-petal:nth-child(2) {
    width: 8px;
    height: 12px;
    animation-duration: 5s;
    animation-delay: 1s;
}

.floating-petal:nth-child(3) {
    width: 10px;
    height: 14px;
    animation-duration: 6s;
}

.floating-petal:nth-child(4) {
    width: 6px;
    height: 10px;
    animation-duration: 4.5s;
    animation-delay: 2s;
}

.floating-petal:nth-child(5) {
    width: 14px;
    height: 18px;
    animation-duration: 5.5s;
    animation-delay: 0.5s;
}

.floating-petal:nth-child(6) {
    width: 9px;
    height: 13px;
    animation-duration: 6.5s;
    animation-delay: 3s;
}

/* ===== Reveal on Scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* ===== Navbar ===== */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #be185d;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 21, 56, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #4a0d26;
}

.nav-scrolled .nav-link {
    color: #7a7168;
}

.nav-scrolled .nav-link:hover {
    color: #9d174d;
}

.nav-scrolled #hamburger span {
    background: #6b1538 !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
#bar1.open {
    transform: translateY(5px) rotate(45deg);
}

#bar2.open {
    opacity: 0;
}

#bar3.open {
    transform: translateY(-5px) rotate(-45deg);
}

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

/* ===== Gallery Hover ===== */
.group:hover .group-hover\:from-plum-200 {
    background: linear-gradient(135deg, #fbcfe8, #fde68a);
}

/* ===== Custom Selection ===== */
::selection {
    background: rgba(190, 24, 93, 0.15);
    color: #4a0d26;
}

/* ===== Focus Styles ===== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #be185d, #d97706);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9d174d, #b45309);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .floating-petal {
        display: none;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, #back-to-top, .floating-petal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
