/* Dieko African Hair Braiding — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdf6ed;
}
::-webkit-scrollbar-thumb {
    background: #e88f78;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c94f30;
}

/* Selection color */
::selection {
    background: #f9d8cc;
    color: #6f2a1d;
}

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

/* Nav active state */
nav a.active {
    color: #c94f30;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu button animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Subtle line decoration */
.deco-line {
    position: relative;
}
.deco-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #c94f30, transparent);
}

/* Card hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(201, 79, 48, 0.1);
}

/* Image reveal animation */
.img-reveal {
    overflow: hidden;
    border-radius: 16px;
}
.img-reveal img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-reveal:hover img {
    transform: scale(1.05);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.float-1 { animation: float 4s ease-in-out infinite; }
.float-2 { animation: float 4s ease-in-out 0.5s infinite; }
.float-3 { animation: float 4s ease-in-out 1s infinite; }

/* Print styles */
@media print {
    nav, .scroll-indicator, #contactForm {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}

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