/* Custom styles for JoeFresh */

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

/* Geometric blob animations */
.geo-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-plum {
    background: #9d174d;
}

.blob-amber {
    background: #f59e0b;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* Hero geometric shapes */
.hero-shape {
    position: absolute;
    opacity: 0.08;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border: 3px solid #fbbf24;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: shapeRotate 20s linear infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: #fbbf24;
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation: shapePulse 4s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #fbbf24;
    top: 30%;
    left: 10%;
    animation: shapeRotate 15s linear infinite reverse;
}

.shape-square {
    width: 120px;
    height: 120px;
    border: 3px solid #f9a8d4;
    top: 20%;
    right: 15%;
    animation: shapeRotate 12s linear infinite;
    transform-origin: center;
}

.shape-ring {
    width: 200px;
    height: 200px;
    border: 4px solid #fbbf24;
    border-radius: 50%;
    bottom: 20%;
    right: 25%;
    animation: shapePulse 3s ease-in-out infinite;
}

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

@keyframes shapePulse {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

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

/* Mobile menu animations */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.4rem;
}

/* Mobile link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* 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.revealed {
        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; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 244, 249, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Custom selection color */
::selection {
    background: #fbbf24;
    color: #500724;
}
