/* Custom styles for Lauren's Hair Designs */

/* Geometric shapes for hero */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #5eead4;
    top: -200px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #2dd4bf;
    bottom: 10%;
    left: -80px;
    animation: float 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #99f6e4;
    top: 40%;
    right: 10%;
    animation: float 12s ease-in-out infinite;
}

.geo-rect-1 {
    width: 200px;
    height: 200px;
    background: #14b8a6;
    top: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin 25s linear infinite;
}

.geo-rect-2 {
    width: 120px;
    height: 120px;
    background: #5eead4;
    bottom: 25%;
    right: 5%;
    transform: rotate(20deg);
    animation: spin 20s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #2dd4bf;
    top: 60%;
    left: 15%;
    animation: float 18s ease-in-out infinite;
}

.geo-circle-4 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #5eead4;
    bottom: -150px;
    right: -100px;
    animation: float 18s ease-in-out infinite;
}

.geo-rect-3 {
    width: 160px;
    height: 160px;
    background: #14b8a6;
    top: 10%;
    left: -50px;
    transform: rotate(30deg);
    animation: spin 22s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

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

/* Service card animations */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* Scroll reveal for below-fold sections */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Mobile links */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .service-card,
    .reveal {
        animation: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Image hover transitions */
.aspect-\[3\/4\] img,
.aspect-\[4\/5\] img {
    transition: transform 0.5s ease;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-blur-md;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
