/* Custom styles and animations */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(250, 249, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar-scrolled .text-stone-700 {
    color: #292524 !important;
}

.navbar-scrolled .text-stone-500 {
    color: #78716c !important;
}

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

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

.mobile-menu-active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-active .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Input focus styles */
input:focus,
textarea:focus {
    border-color: #b08968 !important;
}

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

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

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

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

/* Selection color */
::selection {
    background: #e0cec7;
    color: #3a2518;
}

/* Smooth image loading */
img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* Hover underline animation for links */
a:not(.rounded-full):hover {
    position: relative;
}

a:not(.rounded-full):hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #b08968;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}
