/* Custom Styles for Maitri's Beauty Mark */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1d8752;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}

.reveal-up.delay-100 {
    animation-delay: 0.1s;
}

.reveal-up.delay-200 {
    animation-delay: 0.2s;
}

.reveal-up.delay-300 {
    animation-delay: 0.3s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Card Hover Effects */
.service-card {
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1d8752;
    transition: width 0.3s ease;
}

.service-card:hover::after {
    width: 100%;
}

/* Gallery Hover Effects */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 69, 44, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    background: rgba(15, 69, 44, 0.2);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1d8752;
    box-shadow: 0 0 0 3px rgba(29, 135, 82, 0.1);
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}

/* Image Loading Optimization */
img {
    will-change: transform;
}

/* Reduced Motion Preference */
@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;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
