/* Custom styles for Mane Teaze */

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

/* Geometric animated shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.6) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation-delay: -3s;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.5) 0%, transparent 70%);
    top: 30%;
    left: -50px;
    animation-delay: -5s;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 24px;
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: -2s;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    bottom: 25%;
    right: 25%;
    transform: rotate(20deg);
    animation-delay: -4s;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(244, 114, 182, 0.2);
    top: 60%;
    right: 5%;
    animation-delay: -6s;
}

.geo-dots {
    background-image: radial-gradient(rgba(255,255,255,0.3) 2px, transparent 2px);
    background-size: 30px 30px;
    width: 200px;
    height: 200px;
    top: 15%;
    left: 15%;
    animation-delay: -1s;
}

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

/* Hero animations */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

.hero-badge span:first-child {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Scroll reveal animations (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only apply JS-driven reveal on devices that support it and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

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

.menu-open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-logo-text {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.nav-scrolled .nav-logo-text {
    color: rgb(74, 7, 36);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, rgb(190, 24, 93), rgb(245, 158, 11));
    transition: width 0.3s ease;
}

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: rgb(219, 39, 119) !important;
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.15) !important;
}

/* Button hover lift effect */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

::-webkit-scrollbar-track {
    background: rgb(253, 244, 248);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgb(190, 24, 93), rgb(245, 158, 11));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, rgb(157, 23, 77), rgb(217, 115, 13));
}

/* Selection color */
::selection {
    background: rgb(244, 114, 182);
    color: white;
}
