/* =========================================================================
   LAYOUT SYSTEM (Left Fixed, Right Scroll)
   ========================================================================= */
.layout-container {
    display: flex;
    flex-direction: column;
    /* Mobile by default */
    min-height: 100vh;
    padding: 2rem 1.5rem;
    gap: 4rem;
    max-width: 1440px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .layout-container {
        flex-direction: row;
        padding: 4rem 2rem;
        gap: 4rem;
    }

    .left-column {
        width: 40%;
        position: sticky;
        top: 4rem;
        height: calc(100vh - 8rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow-y: auto;
        /* Hide scrollbar for clean look */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .left-column::-webkit-scrollbar {
        display: none;
    }

    .right-column {
        width: 60%;
    }
}

/* =========================================================================
   LEFT COLUMN (Profile & Info)
   ========================================================================= */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-image-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
    position: relative;
    background-color: #e0e0e0;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bio-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.24px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 460px;
    line-height: 1.5;
}

.name-title {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.48px;
    margin-bottom: 0.25rem;
}

.bio-tag {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.24px;
}

.skills-list {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 0;
    align-items: stretch;
    font-size: 0.85rem;
    letter-spacing: -0.1px;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
    /* border: 1px solid #e0e4e8; */
    overflow: hidden;
}

.skills-list dt,
.skills-list dd {
    padding: 0.4rem 0.6rem;
    margin: 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e4e8;
}

.skills-list dt:nth-last-of-type(1),
.skills-list dd:nth-last-of-type(1) {
    border-bottom: none;
}

.skills-list dt {
    font-weight: 600;
    /* background-color: #f8f9fa; */
    /* border-right: 1px solid #e0e4e8; */
}

.skills-list strong {
    font-weight: 700;
    color: var(--text-heading);
}

.contact-links {
    display: flex;
    gap: 1.5rem;
}

/* =========================================================================
   RIGHT COLUMN (Timeline & Projects)
   ========================================================================= */
.right-column {
    position: relative;
    padding-bottom: 1px;
    padding-top: 1px;
}

/* Filter Navigation */
.filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.3rem 1.2rem;
    border-radius: 100px;
    border: 1.5px solid #e0e4e8;
    background-color: var(--bg-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.1px;
}

.filter-btn:hover {
    background-color: #f8f9fa;
    border-color: #c0c4c8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
    background-color: var(--text-heading);
    color: white;
    border-color: var(--text-heading);
}

/* Visibility State */
.project-card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: none;
                
}

.timeline-item.hidden {
    display: none;
}

.timeline-item, .project-card {
    opacity: 0;
    transform: translateY(20px);
}

.timeline-item.visible, .project-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 0.8, 0.7, 1), 
                transform 0.8s cubic-bezier(0.16, 0.8, 0.7, 1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .right-column {
        padding-left: 3rem; 
    }

    .right-column::before {
        content: '';
        position: absolute;
        top: -100px;
        bottom: -100px;
        left: 1rem;
        transform: translateX(-50%);
        width: 10px;
        background: linear-gradient(to bottom, rgba(193, 196, 199, 0.5), rgba(152, 155, 159, 0.8));
        z-index: 0;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -2rem;
        transform: translateX(-50%);
        box-sizing: border-box;
        width: 30px;
        height: 30px;
        background-color: #f8f4e9;
        border: 6px solid rgb(255, 111, 0);
        border-radius: 50%;
        z-index: 2;
        box-shadow: 0 0px 10px rgba(62, 60, 58, 0.3);
    }

    .timeline-item {
        margin-bottom: 7rem;
    }

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

.timeline-header {
    margin-bottom: 1.5rem;
}

.date-stamp {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
}

.project-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--card-bg, #ccc);
    border-radius: 21px;
    padding: 3rem;
    height: 300px;
    overflow: hidden;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 900;
    z-index: 2;
    color: white;
}

.card-description {
    font-size: 1rem;
    font-weight: 600;
    z-index: 2;
    color: white;
    margin-top: 0.5rem;
}

.card-image-placeholder {
    position: absolute;
    bottom: -15%;
    right: 5%;
    width: 60%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.2);
    /* Just a placeholder mockup shape */
    border-radius: 12px;
    transform: rotate(-2deg);
    z-index: 1;
}

.card-mockup-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 21px;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--card-bg);
    z-index: 1;
    border-radius: 21px;
    pointer-events: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.project-card:hover .card-overlay {
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));
}

.description-list {
    padding: 0 1rem;
    font-weight: 500;
    letter-spacing: -0.24px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* =========================================================================
   ULTRA-WIDE (2K / 2560px Optimization)
   ========================================================================= */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }

    .layout-container {
        max-width: 1800px;
    }
}
