/* ============================
   FEATURED PROJECTS
============================ */

.home-projects {
    padding: 130px 60px;
    background-color: var(--bg-body);
}

.home-projects-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 56px;
}

.home-projects-head h2 {
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 400;
    color: var(--text-body);
    max-width: 640px;
    line-height: 1.3;
    margin-top: 14px;
}

.home-projects-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-body);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    padding-bottom: 6px;
}

.home-projects-all::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-body);
    opacity: .3;
    transition: opacity .3s ease;
}

.home-projects-all i {
    font-size: 12px;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.home-projects-all:hover i {
    transform: translateX(6px);
}

.home-projects-all:hover::after {
    opacity: 1;
}

/* ============================
   ABOUT / TIMELINE
============================ */

.home-about {
    padding: 130px 60px;
    background-color: var(--bg-muted);
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
}

.home-about-intro h2 {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.3;
    margin: 14px 0 22px;
}

.home-about-intro p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 420px;
}

.home-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 52px;
    padding-left: 36px;
}

.home-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 4px;
    width: 1px;
    background-color: var(--border-soft);
}

.home-timeline-item {
    position: relative;
}

.home-timeline-dot {
    position: absolute;
    left: -36px;
    top: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--text-body);
    box-shadow: 0 0 0 4px var(--bg-muted);
}

.home-timeline-year {
    display: block;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.home-timeline-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-body);
    margin-bottom: 8px;
}

.home-timeline-content p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 440px;
}

/* ============================
   TARIHÇE (year selector, standalone section)
============================ */

.history-section {
    padding: 130px 60px;
    background-color: var(--bg-body);
}

.history-section-head {
    margin-bottom: 56px;
}

.history-section-head h2 {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.3;
    margin-top: 14px;
    max-width: 640px;
}

/* history / tarihçe widget */

.history-years {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    margin-bottom: 56px;
    scrollbar-width: none;
}

.history-years::-webkit-scrollbar {
    display: none;
}

.history-year-pill {
    flex-shrink: 0;
    font-family: var(--font-primary), sans-serif;
    font-size: 13px;
    color: var(--text-body);
    background-color: var(--bg-body);
    border: 1px solid var(--border-soft);
    padding: 11px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.history-year-pill:hover {
    border-color: var(--text-body);
}

.history-year-pill.is-active {
    background-color: var(--text-body);
    border-color: var(--text-body);
    color: var(--bg-body);
}

.history-panel {
    display: none;
    grid-template-columns: .55fr 1fr;
    gap: 60px;
}

.history-panel.is-active {
    display: grid;
}

.history-panel-year {
    font-family: var(--font-secondary), sans-serif;
    font-size: clamp(56px, 7vw, 96px);
    font-weight: 400;
    color: var(--text-body);
    line-height: 1;
    position: relative;
    padding-bottom: 26px;
}

.history-panel-year::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 1px;
    background-color: var(--text-body);
    opacity: .3;
}

.history-panel-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-body);
    margin-bottom: 10px;
}

.history-panel-body p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.history-panel-body p:last-child {
    margin-bottom: 0;
}

/* ============================
   RESPONSIVE
============================ */

@media screen and (max-width: 1024px) {
    .home-projects,
    .home-about,
    .history-section {
        padding: 90px 40px;
    }

    .home-about {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media screen and (max-width: 767px) {
    .home-projects,
    .home-about,
    .history-section {
        padding: 70px 24px;
    }

    .home-projects-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .home-timeline {
        gap: 40px;
    }

    .history-years {
        margin-bottom: 36px;
    }

    .history-panel {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .history-panel-year {
        padding-bottom: 16px;
    }
}
