/* Landing page — wireframe-based layout, keeps editorial aesthetic */

body.landing-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Top nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.landing-title {
    font-size: 1.6rem;
    font-weight: 400;
    color: #000;
    letter-spacing: -0.5px;
}

.top-nav-links {
    display: flex;
    gap: 28px;
}

.top-nav-links a {
    font-size: 0.84rem;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-nav-links a:hover {
    color: #2d34eb;
}

.top-nav-links a.active {
    color: #000;
    font-weight: 500;
}

/* Grid */
.landing-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6.6fr);
    gap: 73px;
    align-items: start;
}

/* Left column */
.left-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.photo-contact-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: start;
}

.photo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background-color: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-fallback-text {
    display: none;
    font-size: 1.6rem;
    color: #2d34eb;
    font-weight: 500;
    letter-spacing: 1px;
}

.photo.photo-fallback .photo-fallback-text {
    display: block;
}

.contact h2 {
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.contact p {
    font-size: 0.78rem;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.5;
}

.contact a {
    color: #2d34eb;
    text-decoration: none;
}

.contact a:hover { color: #dfdddd; }

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}

.social-icons a {
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: #2d34eb;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #dfdddd;
}

.social-icons svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Summary */
.summary {
    padding: 4px 0 0;
}

.summary h2 {
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 14px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.summary p {
    font-size: 0.8rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: none;
}

.skills-block {
    margin-top: 18px;
}

.skills-heading {
    font-size: 0.7rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.stack-group {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.stack-group:last-child {
    margin-bottom: 0;
}

.stack-cat {
    font-size: 0.74rem;
    color: #000;
    font-weight: 500;
    margin: 0;
    flex: 0 0 220px;
    white-space: nowrap;
}

.skill-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-chips li {
    font-size: 0.72rem;
    color: #333;
    padding: 3px 9px;
    border: 1px solid #eee;
    border-radius: 999px;
    line-height: 1.5;
    white-space: nowrap;
}

.summary-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-mini .stat-num {
    font-size: 0.94rem;
    font-weight: 500;
    color: #2d34eb;
}

.stat-mini .stat-label {
    font-size: 0.68rem;
    color: #666;
    line-height: 1.3;
}

/* Right column */
.right-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: 0.84rem;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.see-all {
    font-size: 0.76rem;
    color: #2d34eb;
    text-decoration: none;
}

.see-all:hover { color: #dfdddd; }

/* Portfolio */
.portfolio-section {
    padding: 0;
}

.portfolio-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.portfolio-scroll::-webkit-scrollbar {
    height: 6px;
}

.portfolio-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.proj-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.proj-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(45, 52, 235, 0.12);
}

.proj-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #fff;
    overflow: hidden;
}

.proj-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.proj-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.proj-body h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: #000;
    line-height: 1.4;
}

.proj-body p {
    font-size: 0.74rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* GitHub */
.github-section {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.gh-activity {
    width: 100%;
    overflow-x: auto;
}

.gh-activity svg {
    width: 100%;
    max-width: 100%;
    display: block;
}

.gh-loading {
    font-size: 0.76rem;
    color: #666;
    margin: 0;
}

.gh-loading a {
    color: #2d34eb;
    text-decoration: none;
}

.gh-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    justify-content: flex-end;
}

.gh-legend-label {
    font-size: 0.68rem;
    color: #666;
    padding: 0 4px;
}

.gh-legend-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.gh-note {
    font-size: 0.72rem;
    color: #666;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    body.landing-page {
        padding: 1.5rem 1.25rem;
    }

    .landing-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .top-nav-links {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stack-cat {
        flex: 0 0 100%;
        margin-bottom: 4px;
    }
}

@media (max-width: 520px) {
    .photo-contact-row {
        grid-template-columns: 80px 1fr;
        gap: 14px;
    }

    .photo {
        width: 80px;
        height: 80px;
    }

    .summary-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .proj-card {
        flex: 0 0 180px;
    }
}
