/* ===== Custom Styles for Beth's Salon ===== */

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

/* Navbar scroll state */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(245, 245, 220, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(27, 94, 32, 0.1);
}

/* Mobile menu */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #1B5E20;
    padding-left: 8px;
}

/* Hero geometric shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: #D4A84B;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: #F5F5DC;
    bottom: 10%;
    left: 5%;
    animation-delay: 2s;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: #C65D3E;
    top: 30%;
    left: -50px;
    animation-delay: 4s;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0.1;
    animation: spin 12s linear infinite;
}

.geo-triangle-1 {
    border-width: 0 60px 100px 60px;
    border-color: transparent transparent #F5F5DC transparent;
    top: 20%;
    right: 10%;
}

.geo-square {
    position: absolute;
    opacity: 0.08;
    animation: spin 15s linear infinite;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    background: #D4A84B;
    bottom: 20%;
    right: 15%;
}

.geo-dots {
    position: absolute;
    bottom: 15%;
    right: 25%;
    display: grid;
    grid-template-columns: repeat(4, 12px) * 3;
    gap: 12px;
    opacity: 0.15;
}

.geo-dots::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #F5F5DC 2px, transparent 2px);
    background-size: 12px 12px;
}

/* Service cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Gallery */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

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

/* Keyframe animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Button focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #1B5E20;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #1B5E20;
    color: #F5F5DC;
}
