/* ── Reset ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base ── */
body {
    background-color: #000000;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2a2a2a;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* ── Landing Page ── */
.landing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.landing h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8vw;
    font-weight: 300;
    color: #2a2a2a;
    letter-spacing: 0.15em;
    white-space: nowrap;
    text-align: center;
    z-index: 0;
    padding: 0 5vw;
}

.panda-image {
    max-width: 80%;
    max-height: 80vh;
    width: auto;
    height: auto;
    position: relative;
    z-index: 1;
    transition: opacity 2s ease-in-out;
    animation: pulsate 3s ease-in-out infinite;
}

.panda-image.fade-out {
    opacity: 0;
    animation-play-state: paused;
    pointer-events: none;
}

@keyframes pulsate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ── Tagline ── */
.tagline {
    position: absolute;
    top: calc(50% + 5vw);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 300;
    color: #666;
    letter-spacing: 0.08em;
    white-space: nowrap;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.tagline.revealed {
    opacity: 1;
}

/* ── Nav Cards ── */
.nav-cards {
    position: absolute;
    bottom: 12vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5vw;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.nav-cards.revealed {
    opacity: 1;
    pointer-events: auto;
}

.nav-card {
    text-decoration: none;
    color: #888;
    text-align: center;
    padding: 1.2rem 1.5rem;
    border: 1px solid #333;
    transition: color 0.3s ease, border-color 0.3s ease;
    width: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-card:hover {
    color: #ccc;
    border-color: #666;
}

.nav-card-title {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 0.4rem;
    white-space: nowrap;
}

.nav-card-desc {
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* ── Section Pages ── */
.section-page {
    min-height: 100vh;
    padding: 4rem 6vw;
}

.back-link {
    display: inline-block;
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 4rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #ccc;
}

.section-title {
    font-size: 5vw;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 4rem;
    color: #888;
}

/* ── Card Grid ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card {
    border: 1px solid #333;
    padding: 2rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: #555;
}

.card-name {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: #aaa;
}

.card-summary {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #777;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.tag {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    padding: 0.3rem 0.7rem;
    border: 1px solid #444;
    color: #777;
    text-transform: uppercase;
}

.card-role {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    color: #666;
}

.card-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding-top 0.5s ease;
    padding-top: 0;
}

.card.expanded .card-detail {
    max-height: 500px;
    padding-top: 1.5rem;
}

.card.expanded .card-tags {
    margin-bottom: 0;
}

.card-detail p {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.card-detail p {
    color: #777;
}

.card-detail a {
    color: #888;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.card-detail a:hover {
    color: #aaa;
}

.status-pill {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    padding: 0.3rem 0.7rem;
    border: 1px solid #444;
    color: #777;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* ── About ── */
.headshot {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2.5rem;
    filter: grayscale(100%);
}

.about-content {
    max-width: 600px;
}

.about-content p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: #777;
    margin-bottom: 1.2rem;
}

/* ── Skills & Tools ── */
.skills-section {
    margin-bottom: 4rem;
}

.skills-category {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #aaa;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-pill {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    color: #777;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.skill-pill:hover {
    border-color: #555;
    color: #ccc;
}

/* ── Responsive: Tablet ── */
@media (max-width: 768px) {
    .landing h1 {
        font-size: 10vw;
        letter-spacing: 0.1em;
        white-space: normal;
        word-break: break-word;
    }

    .panda-image {
        max-width: 90%;
    }

    .nav-cards {
        flex-direction: column;
        gap: 1.5rem;
        bottom: 8vh;
    }

    .section-title {
        font-size: 7vw;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Responsive: Mobile ── */
@media (max-width: 480px) {
    .landing h1 {
        font-size: 12vw;
        letter-spacing: 0.05em;
    }

    .section-page {
        padding: 3rem 5vw;
    }

    .section-title {
        font-size: 9vw;
        margin-bottom: 3rem;
    }

    .nav-card {
        padding: 1rem 1.5rem;
    }
}
