/* ==========================================================================
   Michael Barringer — Portfolio Styles
   ==========================================================================
   Table of Contents:
   1. Reset & Base
   2. Layout Container
   3. Header (Name + Email)
   4. Bio Section (Text + Portrait)
   5. Divider
   6. Section Headers
   7. Project Cards
   8. Lightbox (Video Modal)
   9. Toast Notification
  10. Responsive — Tablet (<=1024px)
  11. Responsive — Mobile (<=768px)
  12. Responsive — Small Mobile (<=480px)
   ========================================================================== */


/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #F8F5F0;
    color: #000;
}

a {
    color: #000;
    transition: color 0.15s ease;
}

a:hover {
    color: #0000EE;
}


/* ==========================================================================
   2. Layout Container
   ========================================================================== */

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 96px 128px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* ==========================================================================
   3. Header (Name + Email)
   ========================================================================== */

.header {
    display: flex;
    gap: 10px;
}

.header-name {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header-name h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1.08px;
    line-height: normal;
}

.header-name .subtitle {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.18px;
    line-height: normal;
}

.header-email {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-email a {
    font-size: 18px;
    letter-spacing: -0.18px;
    line-height: normal;
    text-decoration: underline;
}

.header-email a:hover {
    text-decoration: none;
}


/* ==========================================================================
   4. Bio Section (Text + Portrait)
   ========================================================================== */

.intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.bio-section {
    display: flex;
    gap: 96px;
    padding: 24px 0;
    overflow: hidden;
}

.bio-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.bio-headline {
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 24px;
    padding-bottom: 12px;
}

.bio-headline strong {
    font-weight: 700;
}

.bio-body {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 21px;
}

.bio-body p {
    margin-bottom: 24px;
}

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

.bio-body a {
    text-decoration: underline;
}

.bio-body a:hover {
    text-decoration: none;
}

.bio-body strong {
    font-weight: 700;
}

.bio-photo {
    width: 280px;
    height: 420px;
    flex-shrink: 0;
}

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


/* ==========================================================================
   5. Divider
   ========================================================================== */

.divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   6. Section Headers
   ========================================================================== */

.section-header {
    padding: 10px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1.08px;
    line-height: normal;
}


/* ==========================================================================
   7. Project Cards
   ========================================================================== */

.work {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.project {
    display: flex;
    gap: 24px;
    border-radius: 4px;
    overflow: hidden;
}

.project-info {
    width: 394px;
    flex-shrink: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-title {
    font-size: 18px;
    letter-spacing: -0.18px;
    line-height: normal;
}

.project-title strong {
    font-weight: 700;
}

.project-title .role {
    font-weight: 400;
}

.project-description {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.14px;
    line-height: 18px;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-links a {
    font-size: 14px;
    letter-spacing: -0.14px;
    line-height: 18px;
    text-decoration: underline;
    color: #000;
}

.project-links a:hover {
    text-decoration: none;
}

.project-image {
    flex: 1;
    height: 431px;
    position: relative;
}

.project-image[data-video] {
    cursor: pointer;
}

.project-image img,
.project-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: block;
}

/* Play button overlay */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.project-image:hover .play-btn {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}


/* ==========================================================================
   8. Lightbox (Video Modal)
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-content {
    width: 90vw;
    max-width: 960px;
    aspect-ratio: 16 / 9;
}

.lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}


/* ==========================================================================
   9. Toast Notification
   ========================================================================== */

.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


/* ==========================================================================
   10. Responsive — Tablet (<=1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .container {
        padding: 64px 64px;
    }

    .bio-section {
        gap: 48px;
    }

    .bio-photo {
        width: 300px;
        height: 450px;
    }

    .project-info {
        width: 300px;
    }

    .project-image {
        height: 350px;
    }
}


/* ==========================================================================
   11. Responsive — Mobile (<=768px)
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 48px 24px;
        gap: 20px;
    }

    .header {
        flex-direction: column;
        gap: 8px;
    }

    .header-name h1 {
        font-size: 28px;
        letter-spacing: -0.84px;
    }

    .header-email {
        justify-content: flex-start;
    }

    .bio-section {
        flex-direction: column;
        gap: 24px;
        padding: 16px 0;
    }

    .bio-photo {
        width: 50%;
        height: auto;
        aspect-ratio: 1667 / 2500;
        order: -1;
    }

    .section-header {
        padding: 10px 0;
    }

    .section-header h2 {
        font-size: 28px;
        letter-spacing: -0.84px;
    }

    .work {
        gap: 40px;
    }

    .project {
        flex-direction: column;
        gap: 16px;
    }

    .project-info {
        width: 100%;
        padding: 0;
        gap: 12px;
    }

    .project-image {
        height: auto;
        aspect-ratio: 16 / 9;
        order: -1;
    }

    .project-links {
        gap: 6px;
    }

    .project-links a {
        font-size: 15px;
        line-height: 20px;
        padding: 2px 0;
    }

    .play-btn {
        width: 52px;
        height: 52px;
    }

    .play-btn svg {
        width: 16px;
        height: 20px;
    }

    .lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 32px;
    }
}


/* ==========================================================================
   12. Responsive — Small Mobile (<=480px)
   ========================================================================== */

@media (max-width: 480px) {
    .container {
        padding: 32px 16px;
    }

    .header-name h1 {
        font-size: 24px;
        letter-spacing: -0.72px;
    }

    .header-name .subtitle {
        font-size: 16px;
    }

    .header-email a {
        font-size: 16px;
    }

    .bio-headline {
        font-size: 18px;
        line-height: 22px;
    }

    .bio-body {
        font-size: 15px;
        line-height: 20px;
    }

    .bio-body p {
        margin-bottom: 16px;
    }

    .bio-photo {
        width: 55%;
        max-height: 400px;
    }

    .work {
        gap: 36px;
    }

    .project-description {
        font-size: 14px;
        line-height: 19px;
    }
}
