/* ============================================================
   INFANTJS — ABOUT PAGE
   Matches site aesthetic: black bg, #ffda00 yellow, Helvetica Neue
   ============================================================ */

/* --- 1. GLOBAL RESET --- */
*, *::before, *::after { box-sizing: border-box; }

img { max-width: 100%; height: auto; display: block; }

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s, color 0.4s;
}

main { padding: 0; }
.page-buffer { height: 120px; width: 100%; }

/* --- 2. FIXED HEADER / NAV --- */
.overlay-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 30px;
    z-index: 200;
    box-sizing: border-box;
    /* fade to transparent so hero content scrolls under cleanly */
    background: linear-gradient(to bottom, var(--bg-color) 55%, transparent);
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--nav-text, #fff);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.site-title:hover { opacity: 0.55; cursor: pointer; }

.site-subtitle {
    margin: 5px 0 0;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.5;
}

.top-nav { display: flex; gap: 16px; align-items: center; }

.top-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 3px;
    transition: opacity 0.25s ease;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--text-color);
    transition: width 0.3s ease;
}
.top-nav a:hover::after { width: 100%; }
.top-nav a:hover { opacity: 0.65; }

/* --- 3. PAGE CONTAINER --- */
.about-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 48px 120px;
}

/* --- 4. PAGE HEADER --- */
.about-header {
    padding-bottom: 56px;
    margin-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.about-eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #ffda00;
    margin-bottom: 20px;
    opacity: 0.9;
}

.about-title {
    font-size: clamp(38px, 5.5vw, 72px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.0;
    text-transform: uppercase;
    margin: 0 0 24px;
}

.about-subtitle {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-color);
    opacity: 0.55;
    margin: 0;
    max-width: 560px;
}

/* --- 5. TEAM GRID --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;          /* tight seam between cards */
    margin-bottom: 80px;
}

/* --- 6. DEVELOPER CARD --- */
.dev-card {
    display: flex;
    flex-direction: row;
    gap: 28px;
    padding: 40px 36px;
    border: 1px solid rgba(255,255,255,0.07);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
    align-items: flex-start;
}

/* Yellow left-edge reveal on hover */
.dev-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 0;
    background: #ffda00;
    transition: height 0.4s ease;
}

.dev-card:hover {
    background: rgba(255,255,255,0.025);
    border-color: rgba(255,255,255,0.18);
}
.dev-card:hover::before { height: 100%; }

/* --- 7. PHOTO COLUMN --- */
.dev-photo-wrap {
    position: relative;
    flex-shrink: 0;
    width: 96px;
}

.dev-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
}

.dev-card:hover .dev-photo {
    filter: grayscale(0%);
    border-color: rgba(255, 218, 0, 0.4);
}

/* Decorative ring that appears on hover */
.dev-photo-border {
    position: absolute;
    top: -5px; left: -5px;
    width: 106px; height: 106px;
    border-radius: 50%;
    border: 1px solid rgba(255,218,0,0);
    transition: border-color 0.35s ease;
    pointer-events: none;
}
.dev-card:hover .dev-photo-border {
    border-color: rgba(255,218,0,0.35);
}

/* Index number in corner of photo */
.dev-index {
    position: absolute;
    bottom: 0; right: -4px;
    width: 22px; height: 22px;
    background: #ffda00;
    color: #000;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 8. INFO COLUMN --- */
.dev-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.dev-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.dev-role {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffda00;
    opacity: 0.8;
    display: block;
    margin-bottom: 4px;
}

.dev-bio {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.62;
    margin: 0 0 14px;
}

.dev-bio code {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(255,218,0,0.12);
    color: #ffda00;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.dev-bio em { font-style: italic; opacity: 0.85; }

/* --- 9. TAGS --- */
.dev-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tag {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 2px;
    color: var(--text-color);
    opacity: 0.45;
    transition: opacity 0.25s ease, border-color 0.25s ease;
}

.dev-card:hover .tag {
    opacity: 0.7;
    border-color: rgba(255,255,255,0.22);
}

/* --- 10. PAGE FOOTER --- */
.about-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.about-footer p {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-color);
    opacity: 0.35;
}

.about-footer p code {
    font-family: 'Courier New', Courier, monospace;
    color: #ffda00;
    opacity: 0.8;
}

.heart { color: #ff6b6b; opacity: 0.9; }

.footer-link {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.5;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 2px;
    transition: opacity 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.footer-link:hover {
    opacity: 1;
    color: #ffda00;
    border-color: #ffda00;
}

/* --- 11. RESPONSIVE --- */
@media (max-width: 900px) {
    .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .about-container { padding: 0 20px 80px; }
    .about-title { font-size: 36px; }

    .dev-card {
        flex-direction: column;
        gap: 20px;
        padding: 28px 22px;
    }
    .dev-photo-wrap { width: 80px; }
    .dev-photo, .dev-photo-border { width: 80px; height: 80px; }
    .dev-photo-border { top: -5px; left: -5px; width: 90px; height: 90px; }

    .overlay-header {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
        align-items: center;
    }
    .logo-wrapper { align-items: center; text-align: center; }
    .top-nav { gap: 10px; justify-content: center; flex-wrap: wrap; }
    .page-buffer { height: 110px; }

    .about-footer { flex-direction: column; align-items: flex-start; }
}
