/* Animated Logo Navigation Sitemap */

/* All logos - header, footer, hero, and standalone - get pulse animation */
.footer-logo,
.logo,
header .logo,
.header-logo-link,
.logo-large {
    cursor: pointer;
}

.footer-logo img,
.logo img,
header .logo img,
.header-logo,
.header-logo-link img,
.logo-large img {
    display: inline-block;
    position: relative;
    animation: gentle-pulse 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* Hover effect - grow and glow (all logos) */
.footer-logo:hover img,
.logo:hover img,
header .logo:hover img,
.header-logo-link:hover img,
.logo-large:hover img {
    animation: none;
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px rgba(218, 165, 32, 0.6));
}

/* Sitemap overlay */
.logo-sitemap-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 25, 60, 0.97);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo-sitemap-overlay.active {
    display: flex;
    opacity: 1;
}

/* Sitemap container - Horizontal Layout */
.sitemap-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo-sitemap-overlay.active .sitemap-container {
    transform: scale(1);
    opacity: 1;
}

/* Logo in sitemap - Center */
.sitemap-logo {
    flex-shrink: 0;
    animation: logo-reveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logo-reveal {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.sitemap-logo img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(218, 165, 32, 0.5));
}

/* Navigation links - Left and Right sides */
.sitemap-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sitemap-nav-left {
    align-items: flex-end;
    text-align: right;
}

.sitemap-nav-right {
    align-items: flex-start;
    text-align: left;
}

.sitemap-nav a {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    position: relative;
    padding: 12px 35px;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    white-space: nowrap;
}

/* Left side slides from left */
.sitemap-nav-left a {
    transform: translateX(-50px);
    animation: slide-from-left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Right side slides from right */
.sitemap-nav-right a {
    transform: translateX(50px);
    animation: slide-from-right 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered animation for links */
.sitemap-nav a:nth-child(1) { animation-delay: 0.2s; }
.sitemap-nav a:nth-child(2) { animation-delay: 0.3s; }
.sitemap-nav a:nth-child(3) { animation-delay: 0.4s; }

@keyframes slide-from-left {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-from-right {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sitemap-nav a:hover {
    color: #daa520;
    border-color: #daa520;
    background: rgba(218, 165, 32, 0.1);
    transform: scale(1.05);
    box-shadow: 0 5px 30px rgba(218, 165, 32, 0.3);
}

.sitemap-nav a i {
    margin-right: 12px;
    font-size: 1.8rem;
    vertical-align: middle;
}

/* Close button */
.sitemap-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fade-in 0.5s ease 0.6s forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

.sitemap-close:hover {
    background: #daa520;
    border-color: #daa520;
    transform: rotate(90deg);
}

.sitemap-close::before,
.sitemap-close::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: white;
}

.sitemap-close::before {
    transform: rotate(45deg);
}

.sitemap-close::after {
    transform: rotate(-45deg);
}

/* Responsive design */
@media (max-width: 1024px) {
    .sitemap-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .sitemap-nav-left,
    .sitemap-nav-right {
        align-items: center;
        text-align: center;
    }
    
    .sitemap-nav-left a,
    .sitemap-nav-right a {
        transform: translateY(30px);
        animation: slide-from-bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    @keyframes slide-from-bottom {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 768px) {
    .sitemap-container {
        gap: 30px;
        padding: 0 20px;
    }
    
    .sitemap-logo img {
        width: 120px;
    }
    
    .sitemap-nav {
        gap: 18px;
    }
    
    .sitemap-nav a {
        font-size: 1.6rem;
        padding: 10px 25px;
    }
    
    .sitemap-nav a i {
        font-size: 1.4rem;
        margin-right: 8px;
    }
    
    .sitemap-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .sitemap-close::before,
    .sitemap-close::after {
        width: 20px;
    }
}
