/* Journey Page Specific Styles */

/* Parallax Hero Section */
.journey-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--clr-obsidian);
}

.parallax-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
    z-index: 1;
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.7;
}

.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 2;
    background: linear-gradient(to bottom,
        rgba(18, 18, 18, 0) 0%,
        rgba(18, 18, 18, 0.3) 50%,
        rgba(18, 18, 18, 0.8) 80%,
        rgba(18, 18, 18, 0.95) 100%
    );
}

.journey-title {
    font-size: 8rem;
    color: var(--clr-bone-white);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4rem;
    margin-left: 4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Timeline Section */
.journey-timeline {
    background-color: var(--clr-obsidian);
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.timeline-intro {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.timeline-intro h2 {
    font-size: 3rem;
    color: var(--clr-ash-gold);
    margin-bottom: 1.5rem;
}

.timeline-intro p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(245, 245, 240, 0.9);
}

/* Timeline Container */
.timeline-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Timeline Entry */
.timeline-entry {
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Alternating Layout */
.timeline-entry.right .timeline-content {
    direction: rtl;
}

.timeline-entry.right .timeline-text {
    direction: ltr;
}

/* Timeline Text */
.timeline-text {
    padding: 2rem;
}

.timeline-year {
    font-size: 4rem;
    color: var(--clr-ash-gold);
    margin-bottom: 1rem;
    font-weight: 700;
    opacity: 0.8;
}

.timeline-title {
    font-size: 2rem;
    color: var(--clr-bone-white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timeline-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(245, 245, 240, 0.85);
}

.timeline-text strong {
    color: var(--clr-ash-gold);
    font-weight: 600;
}

/* Timeline Image with Glow */
.timeline-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(50%);
    transition: all 0.5s ease;
}

.timeline-entry:hover .timeline-image img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Glow Effect */
.image-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--clr-ash-gold), 
        rgba(203, 161, 53, 0.4),
        var(--clr-ash-gold),
        rgba(203, 161, 53, 0.4)
    );
    background-size: 400% 400%;
    animation: glowAnimation 8s ease infinite;
    border-radius: 8px;
    z-index: -1;
    opacity: 0.6;
}

@keyframes glowAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.timeline-entry:hover .image-glow {
    opacity: 1;
}

/* Journey CTA */
.journey-cta {
    text-align: center;
    max-width: 50rem;
    margin: 6rem auto 0;
    padding: 4rem 2rem;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(203, 161, 53, 0.2);
    position: relative;
}

.journey-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--clr-ash-gold);
}

.journey-cta h3 {
    font-size: 2.5rem;
    color: var(--clr-ash-gold);
    margin-bottom: 1.5rem;
}

.journey-cta p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(245, 245, 240, 0.9);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid var(--clr-ash-gold);
    color: var(--clr-ash-gold);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--clr-ash-gold);
    color: var(--clr-obsidian);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .journey-title {
        font-size: 6rem;
        margin-left: 3rem;
        margin-bottom: 3rem;
    }
    
    .timeline-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-entry.right .timeline-content {
        direction: ltr;
    }
    
    .timeline-entry {
        margin-bottom: 5rem;
    }
    
    .timeline-year {
        font-size: 3rem;
    }
    
    .parallax-image {
        object-position: 75% center;
    }
}

@media (max-width: 768px) {
    .journey-hero {
        height: 70vh;
    }
    
    .journey-title {
        font-size: 4rem;
        margin-left: 2rem;
        margin-bottom: 2rem;
    }
    
    .hero-content-overlay {
        background: linear-gradient(to bottom,
            rgba(18, 18, 18, 0.3) 0%,
            rgba(18, 18, 18, 0.5) 50%,
            rgba(18, 18, 18, 0.85) 80%,
            rgba(18, 18, 18, 0.98) 100%
        );
    }
    
    .parallax-image {
        object-position: 70% center;
    }
    
    .timeline-intro h2 {
        font-size: 2rem;
    }
    
    .timeline-intro p {
        font-size: 1.125rem;
    }
    
    .timeline-text {
        padding: 1.5rem;
    }
    
    .timeline-year {
        font-size: 2.5rem;
    }
    
    .timeline-title {
        font-size: 1.5rem;
    }
    
    .timeline-text p {
        font-size: 1rem;
    }
    
    .journey-cta {
        padding: 3rem 1.5rem;
    }
    
    .journey-cta h3 {
        font-size: 2rem;
    }
    
    .journey-cta p {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .journey-hero {
        height: 60vh;
    }
    
    .journey-title {
        font-size: 3rem;
        margin-left: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content-overlay {
        align-items: center;
        justify-content: center;
    }
    
    .journey-title {
        margin: 0;
        margin-top: 10rem;
    }
    
    .timeline-intro h2 {
        font-size: 1.75rem;
    }
    
    .timeline-entry {
        margin-bottom: 3rem;
    }
    
    .timeline-text {
        padding: 1rem;
    }
    
    .timeline-year {
        font-size: 2rem;
    }
    
    .timeline-title {
        font-size: 1.25rem;
    }
    
    .image-glow {
        opacity: 0.4;
    }
    
    .journey-cta {
        padding: 2rem 1rem;
        background: var(--clr-wine);
    }
    
    .journey-cta h3 {
        font-size: 1.75rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
}

/* Ensure active state for nav */
.nav-links a.active {
    color: var(--clr-ash-gold);
}