/* Additional custom styles for Charm Esthetics */

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

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

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

.float-card-delay-1 {
    animation-delay: -2s;
}

.float-card-delay-2 {
    animation-delay: -4s;
}

/* Scroll reveal animation - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon {
    transition: transform 0.4s ease;
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(22, 101, 52, 0.3);
}

.btn-secondary {
    border: 2px solid #166534;
    color: #166534;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #166534;
    color: #fefdf8;
    transform: translateY(-2px);
}

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

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

/* Decorative pattern */
.pattern-dots {
    background-image: radial-gradient(circle, #166534 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
}

/* Image overlay */
.img-overlay {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.85) 0%, rgba(22, 101, 52, 0.7) 100%);
}

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

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

::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #166534;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .float-card,
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
