/* ==========================================================================
   About Page
   Personal bio and experience/CV section
   ========================================================================== */

/* Top Fade Gradient Overlay
   ========================================================================== */

.about-fade-overlay {
    display: none;
    position: fixed;
    z-index: 50;
}

/* About Page Container
   ========================================================================== */

.about-page {
    display: none;
    background-color: var(--color-bg);
    transition: background-color 0.3s ease;
    min-height: 100vh;
    overflow-x: clip;
}

/* About Container
   ========================================================================== */

.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 65px;
    padding-top: 150px;
    padding-bottom: 80px;
}

/* Hero Image Slider (Carousel)
   ========================================================================== */

.about-hero-slider {
    position: relative;
    width: 100%;
    max-width: 668px;
    margin: 0 auto 80px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.about-hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-hero-slider .about-hero-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-hero-slider .about-hero-image.loaded {
    opacity: 1;
}

/* Previous image - peeks from left, smaller and behind */
.about-hero-slider .about-hero-image.prev {
    width: 89%;
    height: 89%;
    transform: translate(calc(-50% - 20%), -50%);
    z-index: 1;
}

/* Active/current image - centered and on top */
.about-hero-slider .about-hero-image.active {
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* Next image - peeks from right, smaller and behind */
.about-hero-slider .about-hero-image.next {
    width: 89%;
    height: 89%;
    transform: translate(calc(-50% + 20%), -50%);
    z-index: 1;
}

/* Hidden images */
.about-hero-slider .about-hero-image.hidden {
    opacity: 0 !important;
    z-index: 0;
}

/* Bio Heading
   ========================================================================== */

.about-heading {
    max-width: 610px;
    margin: 0 auto 40px;
}

.about-heading-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.42px;
    margin: 0;
    transition: color 0.3s ease;
}

.about-heading-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-secondary);
    letter-spacing: -0.42px;
    margin: 0;
    transition: color 0.3s ease;
}

/* Bio Text
   ========================================================================== */

.about-text {
    max-width: 610px;
    margin: 0 auto 80px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 450;
    line-height: 1.5;
    color: var(--color-text-secondary);
    letter-spacing: -0.09px;
    transition: color 0.3s ease;
}

.about-text p {
    margin: 0 0 1.5em;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text .highlight {
    color: var(--color-text-primary);
    transition: color 0.3s ease;
}

/* Secondary Image
   ========================================================================== */

.about-image {
    max-width: 621px;
    margin: 0 auto 80px;
    background-color: var(--color-thumbnail-bg);
    border-radius: 14px;
    transition: background-color 0.3s ease;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-image img.loaded {
    opacity: 1;
}

/* Experience/CV Section
   ========================================================================== */

.about-experience {
    position: relative;
    background-color: var(--color-bg-secondary);
    padding: 60px 0 120px;
    transition: background-color 0.3s ease;
}

.about-experience-header {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 65px;
}

.about-experience-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.57px;
    margin: 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Experience List
   ========================================================================== */

.about-experience-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 65px;
}

/* Experience Row */
.experience-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 40px 0;
    gap: 60px;
}

/* Full-width separator lines */
.experience-row::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background-color: var(--color-separator);
    transition: background-color 0.3s ease;
}

.experience-row:last-of-type::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background-color: var(--color-separator);
    transition: background-color 0.3s ease;
}

/* Experience Info (left column) */
.experience-info {
    flex-shrink: 0;
    width: 240px;
}

.experience-role {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 21.3px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-primary);
    letter-spacing: 0.21px;
    margin: 0;
    transition: color 0.3s ease;
}

.experience-company {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 21.3px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-primary);
    letter-spacing: 0.21px;
    margin: 0 0 4px;
    transition: color 0.3s ease;
}

.experience-date {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 2;
    color: var(--color-text-secondary);
    letter-spacing: 0.17px;
    margin: 0;
    transition: color 0.3s ease;
}

/* Experience Description (right column) */
.experience-description {
    flex: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-text-secondary);
    letter-spacing: -0.08px;
    transition: color 0.3s ease;
}

.experience-description .highlight {
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

/* Read More Button
   ========================================================================== */

.about-read-more {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    height: 44px;
    border-radius: 39px;
    background: var(--color-bg-detail);
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.read-more-btn:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Responsive - About Page
   ========================================================================== */

@media (max-width: 768px) {
    .about-container {
        padding: 0 30px;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .about-hero-slider {
        max-width: 100%;
        margin-bottom: 60px;
    }

    .about-heading {
        margin-bottom: 30px;
    }

    .about-heading-title,
    .about-heading-subtitle {
        font-size: 22px;
    }

    .about-text {
        font-size: 18px;
        margin-bottom: 60px;
    }

    .about-image {
        margin-bottom: 60px;
    }

    .about-experience {
        padding: 40px 0 80px;
    }

    .about-experience-header {
        padding: 0 30px;
        margin-bottom: 30px;
    }

    .about-experience-title {
        font-size: 28px;
    }

    .about-experience-list {
        padding: 0 30px;
    }

    .experience-row {
        flex-direction: column;
        padding: 30px 0;
        gap: 20px;
    }

    .experience-info {
        width: 100%;
    }

    .experience-role,
    .experience-company {
        font-size: 18px;
    }

    .experience-date {
        font-size: 15px;
    }

    .experience-description {
        font-size: 15px;
    }

    .read-more-btn {
        font-size: 14px;
        padding: 11px 18px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 0 20px;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .about-hero-slider {
        margin-bottom: 40px;
    }

    .about-hero-slider .about-hero-image {
        border-radius: 10px;
    }

    .about-heading {
        margin-bottom: 24px;
    }

    .about-heading-title,
    .about-heading-subtitle {
        font-size: 18px;
    }

    .about-text {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .about-image {
        margin-bottom: 40px;
    }

    .about-image img {
        border-radius: 10px;
    }

    .about-experience {
        padding: 30px 0 60px;
    }

    .about-experience-header {
        padding: 0 20px;
        margin-bottom: 24px;
    }

    .about-experience-title {
        font-size: 22px;
    }

    .about-experience-list {
        padding: 0 20px;
    }

    .experience-row {
        padding: 25px 0;
        gap: 16px;
    }

    .experience-role,
    .experience-company {
        font-size: 16px;
    }

    .experience-date {
        font-size: 14px;
    }

    .experience-description {
        font-size: 14px;
    }

    .read-more-btn {
        font-size: 13px;
        padding: 10px 16px;
        height: 36px;
    }
}
