.journey-section/*
 * Our Journey Page - Complete Redesign
 * Modern Vertical Timeline Design
 */

/* Journey Section - Maritime Theme */
.journey-section {
    position: relative;
    padding: 80px 0 120px;
    /* background:
        linear-gradient(180deg, rgba(0, 113, 172, 0.02) 0%, transparent 100%),
        linear-gradient(180deg, #f0f8ff 0%, #ffffff 50%, #f0f8ff 100%); */
    overflow: hidden;
}

/* Ocean wave pattern background */
.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(0, 113, 172, 0.03) 50px,
            rgba(0, 113, 172, 0.03) 51px
        );
    z-index: 0;
    opacity: 0.5;
}

/* Animated waves at bottom */
.journey-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100'%3E%3Cpath fill='%23e3f2fd' d='M0,50 Q300,20 600,50 T1200,50 L1200,100 L0,100 Z'/%3E%3C/svg%3E") bottom repeat-x;
    background-size: 1200px 100px;
    animation: wave 15s linear infinite;
    opacity: 0;
    z-index: 0;
}

@keyframes wave {
    0% { background-position: 0 bottom; }
    100% { background-position: 1200px bottom; }
}

.journey-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

/* Compass rose decoration */
.journey-header::before {
    content: '🧭';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px;
    opacity: 0.15;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.journey-header h2 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #0071ac 0%, #004a6f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.journey-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0071ac, transparent);
}

.journey-header p {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Vertical Timeline */
.journey-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Timeline Center Line - Ship Route */
.journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background:
        repeating-linear-gradient(
            180deg,
            #0071ac 0px,
            #0071ac 3px,
            transparent 3px,
            transparent 8px,
            #0071ac 8px,
            #0071ac 11px,
            transparent 11px,
            transparent 16px
        );
    z-index: 0;
    opacity: 0.4;
}

/* Year Separator - Port/Harbor Marker */
.journey-year {
    position: relative;
    text-align: center;
    margin: 80px 0 60px;
    z-index: 2;
}

.journey-year-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 50px;
    background: linear-gradient(135deg, #0071ac 0%, #005a8a 100%);
    color: white;
    font-size: 28px;
    font-weight: 700;
    border-radius: 60px;
    box-shadow:
        0 10px 40px rgba(0, 113, 172, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 3;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.journey-year-badge::before {
    content: '⚓';
    font-size: 32px;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Nautical rope lines */
.journey-year::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background:
        repeating-linear-gradient(
            90deg,
            #0071ac 0px,
            #0071ac 10px,
            transparent 10px,
            transparent 20px
        );
    opacity: 0.3;
    z-index: 0;
}

/* Port markers on sides */
.journey-year::after {
    content: '🏢';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.5;
}

/* Timeline Item - Alternating Layout */
.journey-item {
    position: relative;
    margin-bottom: 60px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Right side items (odd) */
.journey-item:nth-child(odd) {
    flex-direction: row;
    justify-content: flex-start;
}

.journey-item:nth-child(odd) .journey-content {
    margin-left: calc(50% + 40px);
}

/* Left side items (even) */
.journey-item:nth-child(even) {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.journey-item:nth-child(even) .journey-content {
    margin-right: calc(50% + 40px);
}

/* Timeline Ship Icon */
.journey-dot {
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0071ac 0%, #005a8a 100%);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 113, 172, 0.3);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-dot::before {
    content: '⛴';
    font-size: 24px;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.journey-item:hover .journey-dot {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 6px 25px rgba(0, 113, 172, 0.5);


}

/* Floating animation for ship */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(-3deg);
    }
}

/* Water ripple effect */
.journey-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 113, 172, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* Content Card - Ship Container Style */
.journey-content {
    width: calc(50% - 80px);
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 113, 172, 0.1);
    position: relative;
}

/* Connecting Line from Dot to Card */
.journey-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #0071ac 0%, rgba(0, 113, 172, 0.3) 100%);
    transform: translateY(-50%);
}

.journey-item:nth-child(odd) .journey-content::before {
    left: -40px;
}

.journey-item:nth-child(even) .journey-content::before {
    right: -40px;
    background: linear-gradient(90deg, rgba(0, 113, 172, 0.3) 0%, #0071ac 100%);
}

.journey-item:hover .journey-content {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 113, 172, 0.15);
    border-color: rgba(0, 113, 172, 0.3);
}

.journey-item:hover .journey-content::before {
    background: #0071ac;
    height: 3px;
    transition: all 0.3s ease;
}

/* Arrow indicator on connecting line */
.journey-item:nth-child(odd) .journey-content::after {
    content: '→';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #0071ac;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.journey-item:nth-child(even) .journey-content::after {
    content: '←';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #0071ac;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.journey-item:hover .journey-content::after {
    color: #005a8a;
    transform: translateY(-50%) scale(1.3);
}

/* Modern Vertical Card Layout - Image on Top */
.journey-card-inner {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    position: relative;
}

/* Wave pattern at bottom */
.journey-card-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath fill='%230071ac' opacity='0.15' d='M0,5 Q25,0 50,5 T100,5 L100,10 L0,10 Z'/%3E%3C/svg%3E") repeat-x;
    background-size: 50px 10px;
    z-index: 2;
}

.journey-image {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.journey-image img {
    width: 100%;
    height: 100%;
    object-fit: unset;
    transition: transform 0.6s ease;
}

.journey-item:hover .journey-image img {
    transform: scale(1.1);
}
.journey-image-with-fit img {
    object-fit: cover;
}
.journey-image-with-none img {
    object-fit: none;
}

.journey-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 113, 172, 0.7) 0%, rgba(0, 74, 111, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.journey-item:hover .journey-image::after {
    opacity: 1;
}

/* Content Details */
.journey-details {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.journey-month {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #0071ac 0%, #005a8a 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 16px;
    width: fit-content;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect */
.journey-month::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.journey-month i {
    font-size: 16px;
}

.journey-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* Event Type Badge */
.journey-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #0071ac;
    color: #0071ac;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 992px) {
    .journey-timeline::before {
        left: 30px;
    }

    .journey-dot {
        left: 30px;
    }

    .journey-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .journey-year-badge::before,
    .journey-year-badge::after {
        display: none;
    }

    .journey-image {
        flex: 0 0 250px;
    }

    .journey-details {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .journey-header h2 {
        font-size: 36px;
    }

    .journey-header p {
        font-size: 16px;
    }

    .journey-year-badge {
        font-size: 20px;
        padding: 10px 30px;
    }

    .journey-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .journey-item {
        margin-bottom: 50px;
    }
    .journey-item:nth-child(even) .journey-content{
        margin-right: 0px;
    }
    .journey-item{
        opacity: 1;
        /* animation:unset !important */
    }
}

@media (max-width: 576px) {
    .journey-timeline::before {
        left: 20px;
    }

    .journey-dot {
        left: 0px;
        top: 0;
        /* width: 16px;
        height: 16px; */
    }

    .journey-item:hover .journey-dot {
        width: 20px;
        height: 20px;
    }

    .journey-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }

    .journey-image {
        flex: 0 0 200px;
    }

    .journey-details {
        padding: 20px;
    }

    .journey-text {
        font-size: 14px;
    }
}

/* Scroll Reveal Animation */
.journey-item {
    opacity: 1;
    /* animation: fadeInUp 0.6s ease forwards; */
}

.journey-item:nth-child(1) { animation-delay: 0.1s; }
.journey-item:nth-child(2) { animation-delay: 0.2s; }
.journey-item:nth-child(3) { animation-delay: 0.3s; }
.journey-item:nth-child(4) { animation-delay: 0.4s; }
.journey-item:nth-child(5) { animation-delay: 0.5s; }

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