/* Custom styles for Hair Outfitter & Spa */

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

/* Geometric shapes */
.geo-shape-1 {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #fce4d9 0%, #f8c4b5 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.5;
    animation: morphShape 8s ease-in-out infinite;
}

.geo-shape-2 {
    position: absolute;
    bottom: 10%;
    left: 40%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 100%);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.geo-shape-3 {
    position: absolute;
    top: 40%;
    left: 35%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
    border-radius: 20px;
    opacity: 0.2;
    transform: rotate(45deg);
    animation: rotate 12s linear infinite;
}

.geo-shape-4 {
    position: absolute;
    bottom: 25%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f8c4b5 0%, #f3a08a 100%);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 4s ease-in-out infinite reverse;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 37% 63% / 52% 68% 32% 48%;
    }
    50% {
        border-radius: 42% 58% 63% 37% / 68% 48% 52% 32%;
    }
    75% {
        border-radius: 63% 37% 42% 58% / 32% 52% 68% 48%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(45deg);
    }
    to {
        transform: rotate(405deg);
    }
}

/* Service cards */
.service-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gallery items */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(232, 90, 58, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(250, 247, 242, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .logo-text {
    color: #d14428 !important;
}

/* Mobile menu */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#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: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile links */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e85a3a;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #e85a3a, #d14428);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #d14428, #ad3420);
}

/* Selection color */
::selection {
    background: #fce4d9;
    color: #8b2d1f;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #e85a3a;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geo-shape-1 {
        width: 200px;
        height: 200px;
        opacity: 0.3;
    }
    
    .geo-shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .geo-shape-3 {
        width: 80px;
        height: 80px;
    }
    
    .geo-shape-4 {
        display: none;
    }
}

/* Print styles */
@media print {
    .geo-shape-1,
    .geo-shape-2,
    .geo-shape-3,
    .geo-shape-4 {
        display: none;
    }
}
