/* ===== Custom Styles for Hair by Lisa ===== */

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

/* ===== Navbar ===== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #2A2A31;
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #545461;
}

#navbar.scrolled .nav-link:hover {
    color: #FF4F2B;
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    position: relative;
}

/* Menu bar animation */
.menu-bar {
    transition: all 0.3s ease;
}

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

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

#mobile-menu-btn.active .menu-bar:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #FFC9B5;
    top: 5%;
    right: -5%;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #FFE8DE;
    bottom: 15%;
    left: 5%;
    animation-delay: 2s;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #FFA282;
    top: 40%;
    left: 10%;
    animation-delay: 4s;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: #FFE8DE;
    top: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation-delay: 1s;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    background: #FFC9B5;
    bottom: 25%;
    right: 8%;
    transform: rotate(20deg);
    animation-delay: 3s;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid #FFA282;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    opacity: 0.08;
}

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

/* Dot pattern */
.dot-pattern {
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, rgba(255, 201, 181, 0.5) 2px, transparent 2px);
    background-size: 12px 12px;
    animation: float 6s ease-in-out infinite;
}

/* ===== Scroll Indicator ===== */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .geo-shape {
        animation: none;
    }
    
    .scroll-dot {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #2A2A31;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #E83A1A;
}

/* ===== Selection ===== */
::selection {
    background: #FF6B4A;
    color: white;
}
