/* base */
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
}
body {
    font-family:
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
}

/* HERO wrapper */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;

    /* fallback gradient if image doesn't load */
    /* Fallback gradient – deeper blue, closer to reference */
    background:
        radial-gradient(
            900px 600px at 35% 65%,
            rgba(0, 170, 255, 0.55),
            transparent 60%
        ),
        radial-gradient(
            800px 500px at 65% 35%,
            rgba(80, 200, 255, 0.45),
            transparent 60%
        ),
        linear-gradient(180deg, #bfe6ff 0%, #6cc6f3 45%, #3bb0e8 100%);
}

/* background */
.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* generic box */
.box {
    position: absolute; /* ✅ each item is its own movable box */
    z-index: 2;
    /* OPTIONAL: turn on while positioning */
    /* outline: 1px dashed rgba(255,255,255,0.35); */
    /* outline: 1px dashed red; */
}

/* BOX 1: Brand */
.box--brand {
    top: 55px;
    left: 70px;
}
.brand__name {
    color: #fff;
    font-weight: 300;
    font-size: 100px;
    letter-spacing: 2px;
}
.brand__dot {
    color: #f59b31; /* orange dot */
    font-weight: 700;
}
.brand__tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 25px;
    margin-top: 6px;
}

/* shared headline */
.headline {
    color: #fff;
    font-weight: 300;
    line-height: 0.95;
}
.headline--left {
    font-size: 200px;
}
.headline--right {
    font-size: 200px;
    text-align: right;
}
.punct {
    font-weight: 400;
}

/* BOX 2: One Purpose */
.box--one-purpose {
    left: 80px;
    bottom: 100px;
}

/* BOX 3: Two Engines */
.box--two-engines {
    right: 90px;
    top: 10px;
}

/* BOX 4: Subcopy */
.box--subcopy {
    color: rgba(255, 255, 255, 0.85);
    right: 50px;
    top: 70%;
    font-size: 50px;
    position: absolute; /* assuming you're positioning boxes */
    width: 620px; /* FIXED box size */
    max-width: 620px;

    /* keep text inside the box */
    white-space: normal; /* allow wrapping */
    overflow-wrap: anywhere; /* prevent overflow */
    line-height: 1.2;
}

/* =========================
   FEATURES SECTION
========================= */

.features {
    background: #f6fbff; /* very light blue */
    border-top: 1px solid #d6e6f7;
}

.features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px;
}

/* one row */
.feature-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    column-gap: 40px;
    padding: 28px 0;
    border-bottom: 1px solid #2a2a2a;
}

/* remove last divider */
.feature-row:last-child {
    border-bottom: none;
}

/* left column */
.feature-title {
    color: #3bb0e8;
    font-size: 50px;
    font-weight: 400;
}

/* right column */
.feature-desc {
    color: #1f1f1f;
    font-size: 25px;
    line-height: 1.6;
    max-width: 700px;
}

/* responsive */
@media (max-width: 800px) {
    .feature-row {
        grid-template-columns: 1fr;
        row-gap: 14px;
    }

    .feature-title {
        font-size: 22px;
    }
}

/* =========================
   TEAM SECTION
========================= */

.team {
    background:
        radial-gradient(
            900px 600px at 35% 65%,
            rgba(0, 170, 255, 0.55),
            transparent 60%
        ),
        radial-gradient(
            800px 500px at 65% 35%,
            rgba(80, 200, 255, 0.45),
            transparent 60%
        ),
        linear-gradient(180deg, #bfe6ff 0%, #6cc6f3 45%, #3bb0e8 100%);
    padding: 50px 0 70px;
}

.team__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* "Our Team" pill */
.team__label {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    color: white;
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 30px;
}

/* Cards layout */
.team__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Individual card */
.team-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

/* Image wrapper */
.team-card__image {
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 18px;
    height: 300px;
    background: rgba(255, 255, 255, 0.35); /* placeholder color */
}

.team-card__image img,
.team-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-img--zoom {
    transform: scale(1); /* increase as needed */
    transform-origin: down;
    object-position: center down;
}

/* Text */
.team-card__info {
    text-align: center;
    color: white;
}

.team-card__name {
    font-size: 16px;
    margin-bottom: 6px;
}

.team-card__edu {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
}

/* =========================
   CONTACT SECTION
========================= */

.contact {
    padding: 70px 0;
}

.contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* LEFT */
.contact__left {
    background:
        radial-gradient(
            900px 600px at 35% 65%,
            rgba(0, 170, 255, 0.55),
            transparent 60%
        ),
        radial-gradient(
            800px 500px at 65% 35%,
            rgba(80, 200, 255, 0.45),
            transparent 60%
        ),
        linear-gradient(180deg, #bfe6ff 0%, #6cc6f3 45%, #3bb0e8 100%);
    border-radius: 36px;
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact__brand {
    font-size: 18px;
    opacity: 0.9;
}

.contact-brand-dot {
    color: #f59b31; /* IOMAI orange */
}

.contact__headline {
    font-size: 56px;
    font-weight: 300;
    line-height: 1.05;
    margin: 10px 0;
    margin-bottom: 250px;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact__email {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.contact__email img {
    width: 22px;
    height: 22px;
    opacity: 0.9;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.contact__email a:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* RIGHT */
.contact__right {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 36px;
    padding: 40px;

    /* NEW */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact__form label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #222;
}

.contact__form input,
.contact__form textarea {
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #aaa;
    font-size: 14px;
}

.contact__form button {
    margin-top: 10px;
    padding: 12px;
    border-radius: 999px;
    border: none;
    background: #7fc8f8;
    font-size: 16px;
    cursor: pointer;
}

.contact__disclaimer {
    font-size: 11px;
    color: #555;
    text-align: center;
}

/* =========================
   THANK YOU MODAL
========================= */

.thankyou-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.thankyou-box {
    background: white;
    padding: 36px 42px;
    border-radius: 26px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.thankyou-box h2 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 10px;
}

.thankyou-box p {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 22px;
    line-height: 1.5;
}

.thankyou-box button {
    border: none;
    padding: 10px 26px;
    border-radius: 999px;
    background: #7fc8f8;
    font-size: 14px;
    cursor: pointer;
}

.thankyou-check {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.thankyou-check svg {
    width: 64px;
    height: 64px;
}

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

    .team-card__image {
        height: 260px;
    }

    .hero {
        min-height: auto;
        padding: 28px 18px 36px;
    }

    /* stop absolute layout on mobile */
    .box {
        position: static;
        z-index: 2;
        width: 100%;
    }

    /* stack everything nicely */
    .hero {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        align-content: start;
    }

    /* scale typography down */
    .brand__name {
        font-size: clamp(44px, 10vw, 76px);
    }

    .brand__tagline {
        font-size: clamp(16px, 3.8vw, 22px);
    }

    .headline--left,
    .headline--right {
        font-size: clamp(56px, 14vw, 110px);
        text-align: left; /* keep readable on mobile */
        line-height: 0.95;
    }

    .box--subcopy {
        width: 100%;
        max-width: 100%;
        font-size: clamp(16px, 4.2vw, 22px);
        line-height: 1.35;
    }

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

    .contact__headline {
        font-size: 42px;
    }
}
