/* ===== Custom Styles for Kella McCall ===== */

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

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

/* Selection color */
::selection {
    background-color: rgba(132, 29, 55, 0.15);
    color: #841d37;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(255, 248, 247, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(132, 29, 55, 0.08);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .group img {
        transition: none;
    }
}

/* ===== Input Focus ===== */
input:focus,
textarea:focus {
    border-bottom-color: #841d37 !important;
}

/* ===== Button Hover ===== */
button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(132, 29, 55, 0.25);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ===== Image hover ===== */
.group img {
    will-change: transform;
}

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

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

::-webkit-scrollbar-thumb {
    background: #f5a5b8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc4466;
}

/* ===== Mobile menu animation ===== */
#menuLine1 {
    transition-delay: 0.1s;
}
#menuLine2 {
    transition-delay: 0s;
}
#menuLine3 {
    transition-delay: 0.1s;
}

body.menu-open #menuLine1 {
    transform: rotate(45deg) translate(3px, 3px);
    transition-delay: 0s;
}
body.menu-open #menuLine2 {
    opacity: 0;
    transition-delay: 0.1s;
}
body.menu-open #menuLine3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
    transition-delay: 0s;
}

/* ===== Active nav link ===== */
nav a.active {
    color: #841d37 !important;
}
