/* Navigation Link Animations */
.nav-link-animated {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333 !important;
    padding: 12px 20px !important;
    border-radius: 25px;
    overflow: hidden;
}

.nav-link-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 90, 39, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-link-animated::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 50%;
    background: linear-gradient(90deg, #2d5a27, #4a7c59);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link-animated:hover {
    color: #2d5a27 !important;
    transform: translateY(-2px);
    background: rgba(45, 90, 39, 0.05);
}

.nav-link-animated:hover::before {
    left: 100%;
}

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

/* Active state for navigation */
.nav-link-animated.active {
    color: #2d5a27 !important;
    background: rgba(45, 90, 39, 0.1);
}

.nav-link-animated.active::after {
    width: 80%;
}

/* Book Button Animation - Minimal */
.book-btn-animated {
    transition: all 0.3s ease;
    position: relative;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.book-btn-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.3);
}

.book-btn-animated:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Gallery Description Styles */
.gallery-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gallery-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #2d5a27, #4a7c59);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.gallery-item:hover + .gallery-description .gallery-title {
    color: #2d5a27;
    transform: translateY(-2px);
}

.gallery-item:hover + .gallery-description .gallery-title::after {
    width: 60%;
}

/* Enhanced transitions for all interactive elements */
.service-card, .gallery-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card:hover, .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(45, 90, 39, 0.15);
}

.service-card::before, .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.05), rgba(143, 188, 143, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    z-index: 1;
}

.service-card:hover::before, .gallery-item:hover::before {
    opacity: 1;
}

/* Smooth navbar transitions */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(45, 90, 39, 0.1);
}

/* Gallery Title Animation */
.gallery-title {
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #2d5a27, #4a7c59);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.gallery-item:hover + .gallery-description .gallery-title::after {
    width: 60%;
}

/* Gallery Portrait Frames */
.gallery-item {
    height: 400px !important;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .gallery-item {
        height: 350px !important;
    }
}

/* View More Gallery Styles */
.view-more-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.view-more-trigger:hover {
    transform: scale(1.02);
}

.view-more-trigger .gallery-overlay {
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.view-more-trigger:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.view-more-text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(45, 90, 39, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.view-more-trigger:hover .view-more-text {
    opacity: 1;
}

.view-more-trigger .gallery-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.additional-gallery {
    transition: all 0.5s ease;
}

.additional-gallery.show {
    display: block !important;
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .nav-link-animated:hover {
        transform: none;
    }
    
    .book-btn-animated:hover {
        transform: none;
    }
}
