/* ========================================
   JOURNEY.CSS - PROFESSIONAL JOURNEY PAGE
   Self-contained styles following case study design
   ======================================== */

/* Import the clean base styles */
@import url('./base.css');

/* ========================================
   JOURNEY-SPECIFIC VARIABLES
   ======================================== */
:root {
    /* Journey-specific colors */
    --journey-primary: #1a1a1a;
    --journey-secondary: #e713dc;
    --journey-accent: #ff9af3;
    --journey-success: #50C878;
    --journey-warning: #ff3535;
    
    /* Timeline colors */
    --timeline-line: rgba(224, 0, 168, 0.3);
    --timeline-active: var(--accent-color);
    
    /* Gradients */
    --journey-gradient: linear-gradient(135deg, var(--journey-primary) 0%, var(--journey-secondary) 100%);
    --success-gradient: linear-gradient(135deg, var(--journey-success) 0%, var(--journey-accent) 100%);
}

/* ========================================
   HERO SECTION
   ======================================== */
.journey-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--journey-gradient);
    position: relative;
    overflow: hidden;
}

.journey-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(224, 0, 168, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.journey-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, 
        var(--text-primary) 0%, 
        var(--journey-accent) 50%, 
        var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 90%;
}

/* Journey Stats */
.journey-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: var(--card-radius);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--journey-accent);
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ========================================
   HERO VISUAL - PHOTO STACK
   ======================================== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.photo-stack {
    position: relative;
    transform-style: preserve-3d;
}

.photo-container {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.now-photo {
    transform: rotateY(-15deg) rotateX(5deg);
    z-index: 2;
}

.then-photo {
    position: absolute;
    top: 20px;
    left: -50px;
    transform: rotateY(15deg) rotateX(-5deg);
    z-index: 1;
    opacity: 0.8;
}

.photo-stack:hover .now-photo {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.05);
}

.photo-stack:hover .then-photo {
    transform: rotateY(5deg) rotateX(-2deg) scale(1.02);
    opacity: 1;
}

.journey-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* ========================================
   TIMELINE SECTION
   ======================================== */
.timeline-section {
    background: var(--bg-secondary);
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Timeline Line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        var(--timeline-line) 0%, 
        var(--timeline-active) 50%, 
        var(--timeline-line) 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    padding-right: calc(50% + 3rem);
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: calc(50% + 3rem);
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 2rem;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.year-badge {
    background: var(--accent-color);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.milestone-icon {
    background: var(--bg-secondary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 8px var(--bg-secondary);
    z-index: 99999;
}

.timeline-item.current .milestone-icon {
    background: var(--accent-color);
    animation: pulse 2s infinite;
    z-index: 999999;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 8px var(--bg-secondary), 0 0 0 0 rgba(224, 0, 168, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 8px var(--bg-secondary), 0 0 0 20px rgba(224, 0, 168, 0);
    }
}

/* ========================================
   TIMELINE CONTENT
   ======================================== */
.timeline-content {
    background: var(--bg-primary);
    border-radius: var(--card-radius);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--journey-gradient);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.timeline-text h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.milestone-subtitle {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.milestone-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.milestone-description em {
    color: var(--accent-color);
    font-style: normal;
    font-weight: 600;
}

/* Milestone Details */
.milestone-details {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 120px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: right;
    font-style: italic;
}

/* ========================================
   MILESTONE GALLERY
   ======================================== */
.timeline-visual {
    margin-top: 2rem;
}

.milestone-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.milestone-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    font-size: 0.8rem;
    text-align: center;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .image-caption {
    transform: translateY(0);
}

.gallery-item.personal {
    border: 2px solid var(--journey-accent);
}

/* ========================================
   SKILLS EVOLUTION SECTION
   ======================================== */
.skills-evolution-section {
    background: linear-gradient(135deg, 
        var(--bg-primary) 0%, 
        var(--bg-tertiary) 100%);
}

.skills-timeline {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skill-category {
    text-align: center;
}

.skill-category h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: var(--card-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(224, 0, 168, 0.1), transparent);
    transition: left 0.5s;
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.skill-item h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================
   FUTURE SECTION
   ======================================== */
.future-section {
    background: var(--bg-secondary);
}

.future-content {
    max-width: 1000px;
    margin: 0 auto;
}

.future-goals h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 600;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.goal-item {
    background: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: var(--card-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.goal-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.goal-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}

.goal-item h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.goal-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================
   BACK NAVIGATION
   ======================================== */
.journey-back {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .hero-content {
        gap: 3rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .timeline-container::before {
        left: 2rem;
    }
    
    .timeline-marker {
        left: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .journey-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .photo-stack {
        margin-top: 2rem;
    }

    .then-photo {
        position: static;
        margin-top: 1rem;
        transform: none;
        opacity: 1;
    }

    .timeline-container::before {
        left: 1.5rem;
    }

    .timeline-marker {
        left: 1.5rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 4rem;
        padding: 2rem;
    }

    .milestone-gallery {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .goals-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .journey-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .milestone-details {
        padding: 1rem;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .detail-value {
        text-align: left;
    }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */
.timeline-item:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.skill-item:focus-within,
.goal-item:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ========================================
   REDUCED MOTION SUPPORT
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .journey-hero::before {
        animation: none;
    }
    
    .timeline-item.current .milestone-icon {
        animation: none;
    }
    
    .timeline-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    .skill-item::before {
        display: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .journey-hero {
        background: white;
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .journey-hero::before,
    .journey-hero::after {
        display: none;
    }
    
    .hero-text h1 {
        color: black !important;
        -webkit-text-fill-color: initial;
    }
    
    .timeline-container::before {
        background: #ccc;
    }
    
    .timeline-content {
        background: white;
        color: black;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .milestone-gallery {
        display: none;
    }
}