/* ========== JOURNEY PAGE STYLES ========== */

.journey-hero {
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.journey-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

/* FIX: Ensure heading and role are on separate lines */
.journey-hero-content .main-name {
    display: block;
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #0f0, #0ff, #f0f, #0ff, #0f0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
    font-weight: 800;
}

.journey-hero-content .role {
    display: block;
    font-size: 1.2rem;
    color: #0ff;
    opacity: 0.9;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
    /* Removed any pseudo-element underline */
}

/* No green underline for role */
.journey-hero-content .role::after {
    display: none !important;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 30px 0 20px;
}

.stat-item {
    text-align: center;
    background: rgba(0, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    min-width: 120px;
    transition: all 0.3s ease;
    cursor: default;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #0ff;
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0ff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: #aaa;
}

.hero-decoration {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #0ff, #f0f);
    margin: 30px auto 0;
    animation: expandWidth 1.5s ease forwards;
}

.journey-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px 80px;
    position: relative;
    z-index: 2;
}

.journey-section {
    margin-bottom: 60px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 32px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header i {
    font-size: 2.5rem;
    color: #0ff;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.section-header:hover i {
    transform: scale(1.1);
}

.section-header h2 {
    font-size: 1.8rem;
    color: #0ff;
    margin-bottom: 8px;
}

.section-header p {
    color: #888;
    font-size: 0.9rem;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.edu-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.edu-card:hover {
    transform: translateY(-8px);
    border-color: #0ff;
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.15);
}

.edu-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.edu-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1a1e2a;
    border: 2px solid #0ff;
    transition: all 0.3s ease;
    object-fit: cover;
}

.edu-card:hover .edu-logo img {
    transform: scale(1.05);
    border-color: #f0f;
}

.logo-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 255, 255, 0.5);
    animation: rotateRing 8s linear infinite;
    pointer-events: none;
}

.edu-year {
    font-size: 0.9rem;
    color: #0ff;
    font-family: monospace;
    margin-bottom: 10px;
}

.edu-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
}

.edu-card p {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 5px;
}

.edu-location {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.edu-percent {
    display: inline-block;
    background: rgba(0, 255, 255, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #0ff;
    transition: all 0.3s ease;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #0ff, #f0f, #0ff);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #0ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #0ff;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: #f0f;
}

.timeline-item.current .timeline-dot {
    animation: pulseDot 1.5s infinite;
}

.timeline-date {
    margin-bottom: 10px;
}

.timeline-date .date {
    color: #0ff;
    font-family: monospace;
    font-weight: 500;
}

.timeline-date .duration {
    color: #888;
    font-size: 0.8rem;
    margin-left: 8px;
}

.timeline-content {
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: #0ff;
    margin-bottom: 12px;
    font-weight: 500;
}

.exp-section {
    margin-top: 20px;
}

.exp-section h5 {
    color: #0ff;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 2px solid #0ff;
    padding-left: 10px;
}

.tech-categories {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
}

.tech-cat {
    font-size: 0.85rem;
    padding: 6px 0;
    color: #ccc;
    line-height: 1.5;
    border-bottom: 1px dashed rgba(0, 255, 255, 0.1);
}

.tech-cat:last-child {
    border-bottom: none;
}

.tech-cat strong {
    color: #0ff;
    font-size: 0.85rem;
    min-width: 120px;
    display: inline-block;
}

.sub-role {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

.sub-role h5 {
    color: #0ff;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 2px solid #0ff;
    padding-left: 10px;
}

.sub-role-date {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 12px;
    font-family: monospace;
    padding-left: 12px;
}

.sub-role ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.sub-role li {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}

.sub-role li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #0ff;
}

.sub-tech {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.timeline-content li {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #0ff;
}

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

.future-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.future-card:hover {
    transform: translateY(-8px);
    border-color: #0ff;
}

.future-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 1px solid #0ff;
    transition: all 0.3s ease;
}

.future-card:hover .future-icon {
    transform: scale(1.1) rotate(5deg);
}

.future-icon i {
    font-size: 1.8rem;
    color: #0ff;
}

.future-card h3 {
    font-size: 1.2rem;
    color: #0ff;
    margin-bottom: 10px;
}

.future-card p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 12px;
}

.future-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.future-status.in-progress {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffc107;
}

.future-status.planned {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid #0ff;
    color: #0ff;
}

.future-status.target {
    background: rgba(255, 0, 255, 0.2);
    border: 1px solid #f0f;
    color: #f0f;
}

.future-status:hover {
    transform: scale(1.05);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 255, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    background: #0ff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* Animations */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 5px #0ff;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
        box-shadow: 0 0 15px #0ff;
    }
}

/* Light mode overrides */
body.light .journey-section {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 102, 255, 0.15);
}

body.light .section-header i,
body.light .section-header h2 {
    color: #0066ff;
}

body.light .stat-number,
body.light .timeline-date .date,
body.light .timeline-content h4,
body.light .exp-section h5,
body.light .tech-cat strong,
body.light .sub-role h5,
body.light .future-card h3 {
    color: #0066ff;
}

body.light .timeline-dot {
    background: #0066ff;
}

body.light .timeline::before {
    background: linear-gradient(180deg, #0066ff, #ff00ff, #0066ff);
}

body.light .back-to-top {
    background: rgba(0, 102, 255, 0.9);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .journey-hero {
        padding: 120px 20px 50px;
    }
    
    .journey-hero-content .main-name {
        font-size: 2.5rem;
    }
    
    .stats-container {
        gap: 15px;
    }
    
    .stat-item {
        padding: 10px 15px;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .journey-container {
        padding: 20px;
    }
    
    .journey-section {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-dot {
        left: -26px;
    }
    
    .tech-cat strong {
        display: block;
        margin-bottom: 4px;
    }
    
    .future-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}