/* Custom Styles for Soonsoo HAIR design */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #a83d3d;
    color: #fff;
}

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

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

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

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

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

.scroll-reveal:not(.revealed) {
    opacity: 1;
    transform: translateY(20px);
}

/* Navbar Active State */
.nav-logo {
    color: #fff;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
}

/* Light Navbar Styles */
.navbar-light .nav-logo {
    color: #1c1917;
}

.navbar-light .nav-link {
    color: #44403c;
}

.navbar-light .nav-link:hover {
    color: #1c1917;
}

.navbar-light .border-white\/40 {
    border-color: rgba(28, 25, 23, 0.3);
}

.navbar-light .border-white\/40:hover {
    border-color: rgba(28, 25, 23, 0.6);
    color: #381010;
}

/* Mobile Menu */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

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

/* Menu Button Animation */
.menu-line-1 {
    transform-origin: center;
}

.menu-line-2 {
    transform-origin: center;
}

.menu-btn.active .menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-btn.active .menu-line-2 {
    transform: rotate(-45deg) translate(0px, 0px);
}

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

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}

/* Image Loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    nav,
    #contactForm,
    .scroll-reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

@media (min-width: 768px) {
    .font-serif {
        font-size: clamp(2.5rem, 4vw, 3.75rem);
    }
}

@media (min-width: 1024px) {
    .font-serif {
        font-size: clamp(3rem, 3.5vw, 4.5rem);
    }
}
