/* ===== Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Variables ===== */
:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --cyan: #b8f0f0;
    --gray: #555;
    --light-gray: #888;
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #2eb8b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1a8a8a;
}

/* ===== Layout ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Headings ===== */
h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--black);
    text-align: center;
    margin-bottom: 24px;
}

/* ===== Hero ===== */
.hero {
    background: var(--white);
    padding: 32px 0 48px;
    text-align: center;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 140px;
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--black);
    text-transform: uppercase;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.hero-image {
    margin: -56px auto 0;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-tagline {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: #0000008C;
    text-transform: uppercase;
    max-width: 800px;
    margin: 16px auto 0;
}

/* ===== About ===== */
.about {
    padding: 100px 0 80px;
}

.roles {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0000008C;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 48px;
}

.body-text {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    color: #333;
}

.body-text p {
    margin-bottom: 18px;
}

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

/* ===== What I Build ===== */
.build {
    background: var(--white);
    padding: 100px 0;
}

.build-grid {
    display: flex;
    align-items: flex-start;
    gap: 64px;
}

.build-heading {
    flex-shrink: 0;
    width: 340px;
}

.build-heading h2 {
    text-align: left;
    font-size: 72px;
    line-height: 0.95;
    margin-bottom: 0;
}

.build-list {
    flex: 1;
    padding-top: 8px;
}

.build-item {
    border-top: 2px solid var(--black);
    padding: 22px 0;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 16px;
    transition: opacity 0.2s ease;
}

.build-item:last-child {
    border-bottom: 2px solid var(--black);
}

.build-item:hover {
    opacity: 0.7;
}

.build-item-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    grid-column: 1;
    grid-row: 1;
}

.build-item-arrow {
    font-size: 22px;
    grid-column: 2;
    grid-row: 1;
    transition: transform 0.3s ease;
}

.build-item.open .build-item-arrow {
    transform: rotate(90deg);
}

.build-item-body {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding-top: 0;
}

.build-item.open .build-item-body {
    max-height: 300px;
    padding-top: 16px;
}

.build-item-body p {
    font-size: 14px;
    line-height: 1.75;
    color: #222;
    margin: 0;
}

/* ===== Personal ===== */
.personal {
    padding: 100px 0 160px;
}

.photo-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 120px;
    align-items: start;
}

.photo-cell {
    border-radius: 8px;
    overflow: hidden;
}

.photo-cell:nth-child(odd) {
    margin-top: 40px;
}

.photo-cell:nth-child(even) {
    margin-top: 0;
}

.photo-cell img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-cell:hover img {
    transform: scale(1.04);
}

/* ===== Contact ===== */
.contact {
    padding: 80px 0 60px;
}

.contact .body-text {
    margin-bottom: 40px;
}

.contact-details {
    max-width: 400px;
    margin: 0 auto 40px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.contact-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.contact-row a {
    font-size: 14px;
}

.social-note {
    font-size: 13px;
    color: var(--light-gray);
    text-align: center;
    margin-bottom: 24px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    background: #222;
    color: var(--white);
}

/* ===== Footer ===== */
footer {
    padding: 32px 0;
    text-align: center;
}

.copyright {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--light-gray);
    text-transform: uppercase;
}

/* ===== Tablet / iPad (768px - 1024px) ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .hero h1 {
        font-size: 110px;
    }

    .hero-image {
        max-width: 380px;
        margin-top: -32px;
    }

    .hero-tagline {
        font-size: 26px;
    }

    h2 {
        font-size: 52px;
    }

    .build-grid {
        flex-direction: column;
        gap: 40px;
    }

    .build-heading {
        width: 100%;
    }

    .build-heading h2 {
        text-align: center;
        font-size: 56px;
    }

    .build-item-title {
        font-size: 20px;
    }

    .photo-row {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .photo-cell:nth-child(odd) {
        margin-top: 28px;
    }

    .photo-cell img {
        height: 320px;
    }
}

/* ===== Small tablet / large phone (481px - 767px) ===== */
@media (max-width: 767px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 24px 0 32px;
    }

    .hero h1 {
        font-size: 72px;
    }

    .hero-image {
        max-width: 300px;
        margin-top: -24px;
    }

    .hero-tagline {
        font-size: 20px;
        max-width: 500px;
    }

    h2 {
        font-size: 42px;
    }

    .about,
    .personal {
        padding: 72px 0 80px;
    }

    .build {
        padding: 72px 0;
    }

    .build-heading h2 {
        font-size: 42px;
        text-align: center;
    }

    .build-item-title {
        font-size: 18px;
    }

    .body-text {
        text-align: left;
    }

    .photo-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .photo-cell:nth-child(odd) {
        margin-top: 24px;
    }

    .photo-cell img {
        height: 260px;
    }

    .contact-details {
        max-width: 100%;
    }

    .contact-row {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }
}

/* ===== Mobile (480px and below) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 20px 0 24px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-image {
        max-width: 240px;
        margin-top: -16px;
    }

    .hero-tagline {
        font-size: 15px;
        letter-spacing: 0.03em;
        max-width: 340px;
    }

    h2 {
        font-size: 32px;
        margin-bottom: 18px;
    }

    .about,
    .personal {
        padding: 56px 0 64px;
    }

    .build {
        padding: 56px 0;
    }

    .build-heading h2 {
        font-size: 32px;
        text-align: center;
    }

    .build-item-title {
        font-size: 15px;
    }

    .build-item-body p {
        font-size: 13px;
    }

    .photo-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .photo-cell:nth-child(odd) {
        margin-top: 0;
    }

    .photo-cell img {
        height: 280px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
    }

    .contact {
        padding: 56px 0 48px;
    }
}
