@font-face {
    font-family: "Interstate";
    src: url("../fonts/Interstate-Bold.otf") format("opentype");
    font-weight: 700;
}

@font-face {
    font-family: "Interstate";
    src: url("../fonts/Interstate-Regular.otf") format("opentype");
    font-weight: 400;
}

@font-face {
    font-family: "Interstate";
    src: url("../fonts/Interstate-Light.otf") format("opentype");
    font-weight: 300;
}

@font-face {
    font-family: "InterstateCondensed";
    src: url("../fonts/InterstateCondensed-Light.otf") format("opentype");
    font-weight: 300;
}

body {
    font-family: "Interstate", sans-serif;
    font-weight: 400;
}
h1 {
    font-weight: 700;
    font-size: 2.5rem;
}
p {
    font-weight: 400;
}
button {
    font-family: "Interstate", sans-serif;
}

.condensed {
    font-weight: 300;
}

body {
    margin: 3% 22% 0 22%;
    padding: 0;
    overflow-x: clip;
}

html {
    background-color: #0d1117;
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 30%, transparent 60%),
        url("https://d2u58cn0c7j5d2.cloudfront.net/images/background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

.logo {
    width: 175px;
    height: auto;
    margin-bottom: 24px;
}

.header-container {
    display: flex;
    flex-direction: row;
    gap: 48px;
    margin-top: 30px;
}

.text-content {
    flex: 1;
    color: white;

    h1 {
        margin: 0 0 16px 0;
        line-height: 1.2;
    }

    p {
        font-size: 1.5rem;
        font-weight: 400;
        margin: 0 0 24px 0;
        line-height: 1.5;
    }
}

.video-container {
    flex: 1;

    video {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    }
}

.brochure-button {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;

    img {
        width: 30px;
        height: auto;
        margin-left: 10px;
    }

    &:hover {
        background-color: #d6d6d6;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transform: translateY(-1px);
        cursor: pointer;
    }
}

.logo-banner {
    width: auto;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 90px;
    gap: 24px;

    h2 {
        max-width: 600px;
        text-align: center;
        margin: 0 0 16px 0;
        color: white;
    }

    .logo-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 40px 75px;
        justify-content: center;

        img {
            height: 40px;
            width: auto;
        }
    }
}

.project-manager-container {
    background-color: white;
    border-radius: 5px;
    margin-top: 90px;
    padding: 50px;
}

.pm-layout {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
}

.pm-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.headshot-wrapper {
    position: relative;
    width: 300px;
    background: linear-gradient(to bottom left, #0a0d14, #7b8cb5);
    border-radius: 4px;

    img.pm-headshot {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
    }
}

.pm-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    color: white;

    .pm-name {
        font-weight: 700;
        font-size: 1rem;
    }

    .pm-title {
        font-weight: 300;
        font-size: 0.85rem;
    }
}

.lets-connect-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #5b6b9a;
    color: white;
    border: none;
    padding: 18px;
    font-family: "Interstate", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;

    &:hover {
        background-color: #4a5a88;
        transform: translateY(-1px);
    }
}

.pm-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;

    .pm-heading {
        font-weight: 700;
        font-size: 1.4rem;
        margin: 0;
        line-height: 1.3;
    }

    .pm-description,
    .pm-footer-text {
        margin: 0;
        font-size: 0.78rem;
        line-height: 1.6;
    }
}

.pm-stats {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: center;
}

.pm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pm-stat-box {
    background-color: #5b6b9a;
    border-radius: 4px;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;

    .pm-stat-number {
        color: white;
        font-size: 3rem;
        font-weight: 700;
        line-height: 1;
    }
}

.pm-stat-label {
    font-family: "Interstate", sans-serif;
    font-size: 0.85rem;
    max-width: 150px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.3;
    color: #333;
}

.projects-container {
    background-color: white;
    border-radius: 5px;
    margin-top: 90px;
    padding: 50px;
}

.projects-header {
    text-align: center;
    margin-bottom: 32px;

    h2 {
        font-size: 1.6rem;
        font-weight: 700;
        margin: 0 0 8px 0;
    }

    p {
        font-size: 1rem;
        margin: 0;
        color: #444;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-image-wrapper {
    position: relative;
    margin-bottom: 10px;

    img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
        border-radius: 2px;
        cursor: pointer;
    }

    .project-link-icon {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: white;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 2px;
        padding: 6px;
        cursor: pointer;
        transition:
            background-color 0.2s ease,
            transform 0.2s ease;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.2s ease;
        }

        &:hover {
            background-color: #f0f0f0;
            transform: scale(1.1);

            img {
                transform: translate(2px, -2px);
            }
        }
    }
}

.project-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.project-description {
    font-size: 0.775rem;
    margin: 0;
    line-height: 1.3;
    color: #333;
}

.project-card ul {
    padding-inline-start: 0;
    padding-left: 0;
    list-style-position: inside;
    margin: 0;
}

.project-meta {
    font-size: 0.875rem;
    margin: 0;
    color: #333;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;

    &.active {
        display: flex;
    }
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;

    img {
        display: block;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 4px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    }
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;

    &:hover {
        background: #e0e0e0;
    }
}

.features-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px -22vw 0;
    padding: 0 22% 20px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    color: #fff;

    h2,
    h3 {
        text-align: center;
        margin-bottom: 0;
        color: white;
    }
}

.differentiator-content {
    display: flex;
    flex-direction: row;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.differentiator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    h4 {
        color: white;
        font-weight: 700;
        text-align: center;
    }

    .light-text {
        font-weight: 400;
    }

    img {
        width: 110px;
        height: auto;
    }
}

footer {
    position: relative;
    margin-top: 0;
    margin-left: -22vw;
    margin-right: -22vw;
    padding: 20px 0 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 40%, #000 70%);
    color: #fff;
}

hr {
    border-color: rgba(255, 255, 255, 1);
    border-width: 2px;
    margin: 0 0 24px;
}

.footer-inner {
    margin: 0 22%;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.copyright-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #fff;

    p {
        text-align: right;
        margin-bottom: 0;
    }
}

.social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;

    a {
        img {
            width: 30px;
            height: auto;
            margin-right: 16px;
            transition: transform 0.2s ease;

            &:hover {
                transform: translateY(-2px);
            }
        }
    }
}

/* ── Large desktop / small desktop ──────────────────── */
@media (max-width: 1650px) {
    body {
        margin: 3% 10% 0 10%;
    }

    footer {
        margin-left: -10vw;
        margin-right: -10vw;
    }

    .features-content {
        margin: 20px -10vw 0;
        padding: 0 10% 20px;
    }

    .footer-inner {
        margin: 0 10%;
    }
}

/* ── Tablet ─────────────────────────────────────────── */
@media (max-width: 1100px) {
    body {
        margin: 3% 6% 0 6%;
    }

    footer {
        margin-left: -6vw;
        margin-right: -6vw;
    }

    .features-content {
        margin: 20px -6vw 0;
        padding: 0 6% 20px;
    }

    .footer-inner {
        margin: 0 6%;
    }

    .logo-banner .logo-container {
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
    }

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

    .text-content p {
        font-size: 1.1rem;
    }

    .pm-layout {
        flex-direction: column;
        align-items: center;
    }

    .pm-left {
        width: 100%;
        align-items: center;
    }

    .headshot-wrapper {
        width: 100%;
        max-width: 320px;
    }

    .lets-connect-btn {
        max-width: 320px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 24px;
    }

    footer {
        margin-left: -24px;
        margin-right: -24px;
        padding: 40px 24px 40px;
    }

    .features-content {
        margin: 20px -24px 0;
        padding: 0 24px 20px;
    }

    .footer-inner {
        margin: 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    /* Hero */
    .header-container {
        flex-direction: column;
        gap: 24px;
        margin-top: 20px;
    }

    .text-content p {
        font-size: 1.1rem;
    }

    /* Logo banner */
    .logo-banner {
        padding: 32px 24px;
        margin-top: 32px;
    }

    .logo-banner .logo-container {
        flex-wrap: wrap;
        gap: 28px;
        justify-content: center;
    }

    /* Project manager */
    .project-manager-container {
        margin-top: 32px;
        padding: 24px;
    }

    .pm-layout {
        flex-direction: column;
        align-items: center;
    }

    .pm-left {
        width: 100%;
        align-items: center;
    }

    .headshot-wrapper {
        width: 100%;
        max-width: 320px;
    }

    .lets-connect-btn {
        max-width: 320px;
    }

    .pm-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pm-stat-box {
        width: 110px;
        height: 110px;
    }

    .pm-stat-box .pm-stat-number {
        font-size: 2.2rem;
    }

    .pm-stat-label {
        max-width: 110px;
    }

    /* Projects */
    .projects-container {
        margin-top: 32px;
        padding: 24px;
    }

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