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

/* Anchor scrolling offset for fixed header */
[id] {
    scroll-margin-top: 96px; /* ensures anchors don't hide behind sticky header */
}

/* Header Scroll Effect */
header.scrolled {
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

/* Accordion Styles */
.accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.accordion-content.active {
    max-height: 500px;
    opacity: 1;
}

.accordion-icon.active {
    transform: rotate(180deg);
}

/* Lightbox Styles */
#lightbox {
    transition: opacity 0.3s ease;
}

/* Form Success/Error Messages */
#formSuccess, #formError {
    transition: all 0.3s ease;
}

/* Gallery Item Hover Effect */
.gallery-item:hover img {
    transform: scale(1.05);
}

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

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

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Section Padding for Mobile */
@media (max-width: 768px) {
    section {
        padding-top: 4rem; /* py-16 */
        padding-bottom: 4rem;
    }
}

/* Nav Link Hover Effect */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #8B0000; /* primary color */
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: #8B0000; /* primary color */
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6d0000;
}