/* Parallax Navigation Styles with Tailwind */
.parallax-nav {
    @apply fixed right-8 top-1/2 transform -translate-y-1/2 z-[1000] opacity-0;
    animation: fadeInNav 0.8s ease-out 1s forwards;
}

.parallax-nav-list {
    @apply list-none m-0 p-0 flex flex-col gap-4;
}

.parallax-nav-btn {
    @apply bg-transparent border-0 cursor-pointer p-2 transition-all duration-300 ease rounded-full;
}

.parallax-nav-btn:hover .nav-dot {
    @apply scale-110 bg-white/80;
}

.parallax-nav-btn.active .nav-dot {
    @apply bg-white scale-125;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.nav-dot {
    @apply block w-3 h-3 rounded-full bg-white/40 transition-all duration-300 ease-out border-2 border-white/60;
}

/* Parallax Body States - Lock Viewport (using !important for override) */
body.parallax-enabled,
html.parallax-enabled {
    @apply overflow-hidden h-screen fixed w-full top-0 left-0;
}

.parallax-enabled {
    @apply overflow-hidden h-screen;
}

/* Parallax Container */
.parallax-container {
    @apply fixed inset-0 w-full h-screen overflow-hidden z-10;
}

.parallax-enabled .parallax-section {
    @apply absolute inset-0 w-full h-screen overflow-hidden;
}

/* Enhanced Section Animations - Fade Focus with Tailwind */
.parallax-section {
    @apply relative opacity-100 transition-opacity duration-700 ease-out;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Content Animation Enhancements - Subtle Movement Only */
.parallax-content {
    @apply transition-opacity duration-500 ease-out;
    will-change: opacity;
    backface-visibility: hidden;
}

.parallax-section:not(.active) .parallax-content {
    @apply opacity-80;
}

.parallax-section.active .parallax-content {
    @apply opacity-100;
}

/* Background Parallax Effects */
.parallax-section[style*="background-image"] {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Advanced Animation States */
@keyframes parallaxFadeIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes parallaxSlideLeft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes parallaxSlideRight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes parallaxScale {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fadeInNav {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Enhanced Animation Types */
.parallax-section[data-animation="fade-enhanced"] {
    opacity: 0;
    animation: parallaxFadeIn var(--duration, 1s) ease-out var(--delay, 0s) forwards;
}

.parallax-section[data-animation="slide-up-enhanced"] {
    opacity: 0;
    transform: translateY(100px);
    animation: parallaxSlideUp var(--duration, 1s) ease-out var(--delay, 0s) forwards;
}

.parallax-section[data-animation="slide-left-enhanced"] {
    opacity: 0;
    transform: translateX(100px);
    animation: parallaxSlideLeft var(--duration, 1s) ease-out var(--delay, 0s) forwards;
}

.parallax-section[data-animation="slide-right-enhanced"] {
    opacity: 0;
    transform: translateX(-100px);
    animation: parallaxSlideRight var(--duration, 1s) ease-out var(--delay, 0s) forwards;
}

.parallax-section[data-animation="scale-enhanced"] {
    opacity: 0;
    transform: scale(0.8) rotate(5deg);
    animation: parallaxScale var(--duration, 1s) ease-out var(--delay, 0s) forwards;
}

/* Content Element Staggered Animations - Pure Fade Focus with Tailwind */
.parallax-title {
    @apply opacity-0 transition-opacity duration-700 ease-out;
}

.parallax-subtitle {
    @apply opacity-0 transition-opacity duration-500 ease-out;
}

.parallax-description {
    @apply opacity-0 transition-opacity duration-600 ease-out;
}

.parallax-buttons {
    @apply opacity-0 transition-opacity duration-700 ease-out;
}

/* Trigger fade animations when section becomes active */
.parallax-section.active .parallax-subtitle {
    @apply opacity-100;
    transition-delay: 0.1s;
}

.parallax-section.active .parallax-title {
    @apply opacity-100;
    transition-delay: 0.3s;
}

.parallax-section.active .parallax-description {
    @apply opacity-100;
    transition-delay: 0.5s;
}

.parallax-section.active .parallax-buttons {
    @apply opacity-100;
    transition-delay: 0.7s;
}

/* Button Hover Effects */
.parallax-btn {
    position: relative;
    overflow: hidden;
}

.parallax-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
}

.parallax-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    animation: fadeInScroll 1s ease-out 2s forwards;
}

.scroll-indicator-arrow {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0.5rem auto 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes fadeInScroll {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-10px); }
    60% { transform: rotate(45deg) translateY(-5px); }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .parallax-nav {
        right: 1rem;
        opacity: 0.8;
    }
    
    .parallax-nav-list {
        gap: 0.8rem;
    }
    
    .nav-dot {
        width: 8px;
        height: 8px;
    }
    
    .parallax-section[style*="background-image"] {
        background-attachment: scroll;
    }
    
    .scroll-indicator {
        bottom: 1rem;
        font-size: 0.8rem;
    }
    
    /* Reduce motion on mobile for performance */
    .parallax-content {
        will-change: auto;
    }
    
    .parallax-section:not(.active) .parallax-content {
        transform: translateY(10px) scale(0.98);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .parallax-section,
    .parallax-content,
    .parallax-title,
    .parallax-subtitle,
    .parallax-description,
    .parallax-buttons,
    .parallax-btn {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }
    
    .parallax-section[style*="background-image"] {
        background-attachment: scroll !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-dot {
        border-width: 3px;
    }
    
    .parallax-nav-btn.active .nav-dot {
        box-shadow: none;
        border-color: #fff;
    }
}