/* =============================================
   A B O U T   M E   P A G E   S T Y L E S
============================================= */

/* Main content wrapper */
.about .about-content-wrapper {
    background: #fdfdff;
    border-radius: 1.5rem;
    padding: 4rem;
    border: 1px solid #e8e6ff;
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.05);
}

/* Colorful heading */
.about .heading span {
    color: #6c63ff; /* Purple */
}

/* Increase heading size */
.about .heading {
    font-size: 4.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* --- Section Styling --- */
.about-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #3d3d5e;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
}

.section-title i {
    font-size: 2.4rem;
    color: #ffffff;
    margin-right: 1.5rem;
    background: linear-gradient(135deg, #6c63ff 0%, #3fa39a 100%);
    padding: 0.8rem;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.about-content p {
    font-size: 1.7rem;
    line-height: 1.8;
    color: #555;
}

.about-content p strong {
    color: #3d3d5e;
    font-weight: 600;
}

/* --- Stats Cards --- */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: #f7f7f9;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.stat-card h4 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #6c63ff;
}

.stat-card p {
    font-size: 1.5rem;
    color: #7a7a7a;
    margin: 0;
}

/* === DUAL TIMELINE SYSTEM === */
.dual-timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Dual Timeline Content */
.dual-timeline-content {
    position: relative;
    min-height: 120rem; /* Increased height for month-based positioning */
    padding: 2rem;
}

/* Timeline Tracks */
.timeline-track {
    position: absolute;
    width: 45%;
    height: 100%;
    top: 0;
}

.education-track {
    left: 0;
}

.work-track {
    right: 0;
}

/* Timeline Lines */
.education-track::before,
.work-track::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #e8e6ff, #6c63ff, #e8e6ff);
    top: 0;
    z-index: 1;
}

.education-track::before {
    right: 0;
}

.work-track::before {
    left: 0;
}

/* Year Markers */
.year-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    border: 2px solid #e8e6ff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.year-marker:hover {
    background: #f8f8ff;
    border-color: #6c63ff;
    transform: translateX(-50%) scale(1.05);
}

.year-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3d3d5e;
}

/* Timeline Items in Dual System */
.dual-timeline-content .timeline-item {
    position: absolute;
    width: 100%;
    padding: 0 2rem;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    min-height: 8rem; /* Minimum height for small duration items */
}

.dual-timeline-content .timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure minimum spacing between cards */
.dual-timeline-content .timeline-item[style*="height: 6%"] {
    min-height: 12rem;
}

.dual-timeline-content .timeline-item[style*="height: 9%"] {
    min-height: 15rem;
}

.dual-timeline-content .timeline-item[style*="height: 15%"] {
    min-height: 20rem;
}

/* Education items align to the right */
.education-track .timeline-item {
    text-align: right;
}

.education-track .timeline-item .timeline-content {
    margin-right: 2rem;
}

/* Work items align to the left */
.work-track .timeline-item {
    text-align: left;
}

.work-track .timeline-item .timeline-content {
    margin-left: 2rem;
}

/* Timeline Content Styling */
.dual-timeline-content .timeline-content {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Arrows pointing to timeline lines */
.education-track .timeline-content::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left: 10px solid white;
}

.work-track .timeline-content::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right: 10px solid white;
}

/* Timeline Dots - positioned at START of each experience */
.dual-timeline-content .timeline-dot {
    position: absolute;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: white;
    border: 4px solid #6c63ff;
    z-index: 5;
    top: 0;
}

.education-track .timeline-dot {
    right: -1rem;
    border-color: #6c63ff;
}

.work-track .timeline-dot {
    left: -1rem;
    border-color: #3fa39a;
}

/* Remove duration pills */
.dual-timeline-content .timeline-duration {
    display: none;
}

/* Timeline content typography - clean and centered */
.dual-timeline-content .timeline-content h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #3d3d5e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    padding-top: 0;
}

.dual-timeline-content .timeline-content h4 i {
    font-size: 1.6rem;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.timeline-item.education h4 i {
    color: #6c63ff;
}

.timeline-item.work h4 i {
    color: #3fa39a;
}

.dual-timeline-content .timeline-content p {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
    color: #666;
}

/* Remove description span and GPA badges */
.dual-timeline-content .timeline-content span {
    display: none;
}

.dual-timeline-content .timeline-badge {
    display: none;
}

/* Add subtle borders to distinguish education vs work */
.timeline-item.education .timeline-content {
    border-left: 3px solid #6c63ff;
}

.timeline-item.work .timeline-content {
    border-left: 3px solid #3fa39a;
}

/* Responsive Design for Dual Timeline */
@media screen and (max-width: 768px) {
    .dual-timeline-content {
        min-height: auto;
        padding: 1rem;
    }
    
    .timeline-track {
        position: relative;
        width: 100%;
        height: auto;
        margin-bottom: 3rem;
    }
    
    .education-track::before,
    .work-track::before {
        left: 2rem;
        width: 2px;
    }
    
    .dual-timeline-content .timeline-item {
        position: relative;
        width: 100%;
        padding-left: 6rem;
        padding-right: 2rem;
        margin-bottom: 2rem;
        text-align: left;
    }
    
    .dual-timeline-content .timeline-content {
        margin: 0;
        padding: 1.5rem;
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .dual-timeline-content .timeline-dot {
        left: 1rem;
        top: 1rem;
    }
    
    .education-track .timeline-content::after,
    .work-track .timeline-content::after {
        left: -10px;
        top: 2rem;
        transform: none;
        border: 10px solid transparent;
        border-right: 10px solid white;
        border-left-color: transparent;
    }
    
    .year-marker {
        display: none;
    }

    /* Mobile typography adjustments */
    .dual-timeline-content .timeline-content h4 {
        font-size: 1.4rem;
        justify-content: flex-start;
        text-align: left;
    }
    
    .dual-timeline-content .timeline-content p {
        font-size: 1.2rem;
        text-align: left;
    }
}

/* Story Content Layout */
.story-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
}

.story-text {
    flex: 1;
}

.story-image {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.story-image:hover {
    transform: scale(1.05);
}

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

/* Responsive design for story content */
@media (max-width: 768px) {
    .story-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .story-image {
        width: 250px;
        height: 250px;
    }
}

/* --- New Sections Styling --- */

/* Placeholder Text */
.placeholder-text {
    font-style: italic;
    color: #888;
    background-color: #f9f9f9;
    border-left: 3px solid #6c63ff;
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Personal Interests List */
.interests-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.interests-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 120px;
}

.interests-list i {
    font-size: 3rem;
    color: #ffffff;
    background: linear-gradient(135deg, #fd7e14 0%, #6c63ff 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.interests-list li:hover i {
    transform: scale(1.1) rotate(10deg);
}

.interests-list span {
    font-size: 1.5rem;
    font-weight: 500;
    color: #555;
}

/* Enhanced overlapping visualization */
.timeline-item.overlapping-work {
    position: relative;
}

.timeline-item.overlapping-work::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3fa39a, transparent);
    border-radius: 2px;
    opacity: 0.6;
}

.timeline-item.long-education::before {
    content: '';
    position: absolute;
    right: -2rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #6c63ff, transparent);
    border-radius: 2px;
    opacity: 0.6;
}

/* Enhanced hover effects */
.timeline-item:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.timeline-item.overlapping-work:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.timeline-item.long-education:hover {
    transform: translateY(-3px);
    z-index: 5;
}

/* Timeline year clickable styling */
.timeline-year:hover {
    background: #6c63ff;
    color: white;
    transform: translateX(-50%) scale(1.05);
}

/* Responsive adjustments for overlapping */
@media screen and (max-width: 768px) {
    .timeline-item[data-duration="7"] {
        min-height: 35rem;
    }
    
    .timeline-item.long-duration {
        min-height: 40rem;
    }
    
    .timeline-item.overlapping-work::before,
    .timeline-item.long-education::before {
        display: none;
    }
}

/* --- Overlapping Timeline Styles --- */
.timeline-overlap-wrapper {
    position: relative;
    padding: 1rem 0;
    /* Total height for 2014-2021 period. 7 years * 8rem/year + buffer */
    height: 60rem; 
}

.timeline-overlap-wrapper .timeline-item {
    position: absolute;
    width: 50%;
    margin: 0;
    padding: 0 3rem;
    /* Base height for a single year */
    --year-height: 8rem; 
}

.timeline-overlap-wrapper .parent {
    height: calc(7 * var(--year-height)); /* 2021 - 2014 = 7 years */
    top: 0;
}

.timeline-overlap-wrapper .child[data-start="2018"] {
    /* (2021 - 2020) = 1 year from top. */
    top: calc(1 * var(--year-height)); 
    height: calc(2 * var(--year-height)); /* Duration: 2 years */
}

.timeline-overlap-wrapper .child[data-start="2017"] {
    /* (2021 - 2018) = 3 years from top */
    top: calc(3 * var(--year-height)); 
    height: calc(1 * var(--year-height)); /* Duration: 1 year */
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

/* Adjust dot position for standard vs. overlapping items */
.timeline > .timeline-item .timeline-dot {
    right: -1rem;
    top: 1.5rem;
}
.timeline > .timeline-item.right .timeline-dot {
    left: -1rem;
}

.timeline-overlap-wrapper .timeline-item .timeline-dot {
    top: 1.5rem; /* Keep dots aligned at the top */
}

.timeline-overlap-wrapper .timeline-item.left .timeline-dot {
    right: -1rem;
}

.timeline-overlap-wrapper .timeline-item.right .timeline-dot {
    left: -1rem;
}

@media screen and (max-width: 768px) {
    /* Place the timelime to the left */
    .timeline::after {
        left: 31px;
    }
    
    /* Full-width containers */
    .timeline-item,
    .timeline-overlap-wrapper .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    /* Make sure that all arrows are pointing leftwards */
    .timeline-item .timeline-content::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .timeline-item.left .timeline-dot, 
    .timeline-item.right .timeline-dot,
    .timeline-overlap-wrapper .timeline-item .timeline-dot {
        left: 15px;
    }
    
    /* Make all right containers behave like the left ones */
    .timeline-item.right,
    .timeline-overlap-wrapper .timeline-item.right {
        left: 0%;
    }

    /* Responsive adjustments for overlapping wrapper */
    .timeline-overlap-wrapper {
        height: auto; /* Let items flow naturally on mobile */
    }
    .timeline-overlap-wrapper .timeline-item {
        position: relative; /* Remove absolute positioning */
        height: auto;
        top: auto;
        margin-bottom: 2rem;
    }
}

/* === Highlight Colors for Keywords === */
.highlight-data {
    color: #6c63ff;
    font-weight: 700;
}

.highlight-dreams {
    color: #ffc107;
    font-weight: 700;
}

.highlight-dharma {
    color: #3fa39a;
    font-weight: 700;
}

/* === Section-specific Color Themes === */
.story-section .section-title { color: #6c63ff; }
.story-section .section-title i { background: #6c63ff; }

.journey-section .section-title { color: #20c997; }
.journey-section .section-title i { background: #20c997; }

.philosophy-section .section-title { color: #198754; }
.philosophy-section .section-title i { background: #198754; }

.interests-section .section-title { color: #fd7e14; }
.interests-section .section-title i { background: #fd7e14; }

.goals-section .section-title { color: #0d6efd; }
.goals-section .section-title i { background: #0d6efd; }

.section-title i { color:#ffffff; } 