/* Custom styles for Lydsta Photography */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f2eb;
}
::-webkit-scrollbar-thumb {
    background: #2d5a30;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a3a2a;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(245, 242, 235, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(26, 58, 42, 0.08);
}

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

#navbar.scrolled .menu-line {
    background: #1a3a2a;
}

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

#mobileMenu.open .mobile-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

/* Menu button animation */
.menu-btn-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-btn-active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Service card hover */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Portfolio item hover */
.portfolio-item {
    transition: box-shadow 0.5s ease;
}
.portfolio-item:hover {
    box-shadow: 0 20px 60px rgba(26, 58, 42, 0.2);
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    border-color: #528d54 !important;
    box-shadow: 0 0 0 3px rgba(82, 141, 84, 0.15) !important;
}

/* Selection color */
::selection {
    background: #2d5a30;
    color: #f5f2eb;
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtle pulse for decorative elements */
@keyframes softPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card:hover {
        transform: none;
    }
}
