:root {
    --color-midnight: #2c3e50;
    --color-slate: #34495e;
    --color-gray: #7f8c8d;
    --color-silver: #bdc3c7;
    --color-cloud: #ecf0f1;
}

@font-face {
    font-family: 'Josefin Sans';
    src: url('../fonts/Josefin_Sans/JosefinSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Poppins;
    src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Poppins, sans-serif;
    background-color: hsl(192deg 15% 95%);
    font-size: 16px;
    padding: 32px 24px;
    line-height: 1.6;
    color: #243342;
    max-width: 900px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    margin: 0;
    padding: 0;
    color: #2c3e50;
}

h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.25rem
}

section {
    margin: 20px 0;
}

a {
    color: #2c3e50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

input,
textarea {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #ecf0f1;
    font-size: 0.9rem;
}

.intro-section {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 32px 48px;
    align-items: stretch;
}

.bio-header-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    aspect-ratio: auto;
    max-width: none;
    border-radius: 4px;
}

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

.bio-social-icons img {
    height: 32px;
    width: auto;
    display: block;
}

.text-container h1 {
    margin-top: 0;
    line-height: 1.1;
}

.bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--color-midnight);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    margin-bottom: 24px;
    padding-bottom: 8px;
}

.bar h2 {
    padding-left: 10px;
    padding-top: 10px;
}

.get-in-touch div h2 {
    border-left: 4px solid var(--color-midnight);
}

.get-in-touch h2 {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.toggle-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gray);
    border-radius: 8px;
    background: none;
    color: var(--accent);
    cursor: pointer;
    transition: border-color .15s, background .15s
}

.toggle-all:hover {
    border-color: var(--color-midnight);
    background: var(--chip)
}

.toggle-all:focus-visible,
.more:focus-visible {
    outline: 2px solid var(--color-midnight);
    outline-offset: 2px
}

@media (width <=700px) {
    .intro-section {
        grid-template-columns: 1fr;
    }

    .profile-img {
        max-width: 280px;
        margin-inline: auto;
    }
}


.image-container {
    background: radial-gradient(ellipse at center, #bdc3c7 20%, #ecf0f1 80%);
    flex: 1;
    min-height: 0;
}


.social-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bio-subtitle {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 500;
    font-style: italic;
    color: hsl(210deg 29% 29%);
}

.bio-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.bio-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.bio-meta-icon {
    font-size: 1.125rem;
    color: hsl(184deg 6% 40%);
}

.bio-meta-label {
    font-size: 0.875rem;
    color: hsl(184deg 6% 40%);
}

.bio-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 9px;
}

.bio-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--color-slate)
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-right: 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.90rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.btn-primary {
    color: #2c3e50;
}

.btn-primary:hover {
    transform: translateY(-1px);
    text-decoration: underline;
}

.send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 8px;
    padding: 10px 22px;
    font: inherit;
    font-weight: 400;
    color: #ecf0f1;
    background-color: #2c3e50;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, filter .15s;
}

.send-btn:hover {
    background-color: #ecf0f1;
    color: #2c3e50;
    box-shadow: 0 4px 14px rgb(0 0 0 / 18%);
}

.send-btn .material-symbols-outlined {
    font-size: 20px;
    transition: transform .15s;
}

.send-btn:hover .material-symbols-outlined {
    transform: translateX(3px);
}

.send-btn:active {
    transform: translateY(1px);
}

.send-btn:focus-visible {
    outline: 2px solid var(--accent, #0b5fff);
    outline-offset: 3px;
}

.send-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .send-btn,
    .send-btn .material-symbols-outlined {
        transition: none;
    }
}

.heading {
    font-size: .9rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.project {
    border: 1px solid hsl(204deg 8% 90%);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px hsl(204deg 8% 80%);
    transition: border-color .15s, box-shadow .15s
}

.project:hover {
    border-color: hsl(184deg 6% 75%);
    box-shadow: 0 1px 2px hsl(204deg 8% 80%);
    border-left: 4px solid var(--color-midnight);
}

.project:hover a {
    text-decoration: underline;
}

.project:focus-within {
    border-left: 4px solid var(--color-midnight);
}

.head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 2px 16px
}

.role {
    color: #34495e;
    font-size: .895rem
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none
}

.tags li {
    background: #bdc3c7;
    border-radius: 999px;
    padding: 2px 12px;
    font-size: .82rem;
    color: #2c3e50;
}

.more {
    background: none;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 6px 14px;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-midnight)
}

.more:hover {
    border-color: #34495e
}

.more:focus-visible {
    outline: 2px solid #34495e;
    outline-offset: 2px
}

.more::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--color-midnight);
    border-bottom: 2px solid var(--color-midnight);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s
}

.more[aria-expanded="true"]::after {
    transform: rotate(-135deg) translateY(-2px);    
}

.details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
    color: var(--color-midnight);
}

.details.open {
    grid-template-rows: 1fr
}

.details>div {
    overflow: hidden
}

.project-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line)
}

.project-grid h4 {
    margin: 8px 0 0;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7f8c8d;
    font-weight: 600
}

.project-grid p {
    margin: 4px;
}

b {
    font-weight: 600
}

.role .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 6px;
    border-radius: 50%;
    background: var(--color-midnight);
    vertical-align: middle;
}

@media (width <=520px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 2px
    }

    .project-grid p {
        margin-bottom: 12px
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        transition: none !important
    }
}

.italacize {
    font-style: italic;
}

.tag-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.role-highlight {
    font-weight: 600;
    color: #000;
    font-style: italic;
}

.tag {
    font-size: 0.8rem;
    font-weight: 400;
    background-color: #353644;
    color: #fff;
    margin: 4px 0;
    padding: 6px 10px;
    border-radius: 4px;
    max-width: fit-content;
    text-align: center;
}

.text-sm {
    font-size: 0.9rem;
}

.tagline {
    font-size: 0.975rem;
    font-weight: 400;
    color: #555;
}


.text-container {
    flex: 2;
}

.submit-btn {
    background-color: #353644;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.submit-btn:hover {
    background-color: #1a9a5e;
}

.contact-form {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    padding: 30px;
    border-radius: 4px;
    background-color: #2c3e50;
    box-shadow: 0 6px 24px rgb(0 0 0 / 10%);
}

.m-r-2 {
    margin-right: 8px;
}

.intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.list-item {
    padding: 6px 10px;
    border: 1px solid #7e8c8d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
}

.footer-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #34495e;
    border-radius: 4px;
    padding-bottom: 10px;
}

@media (width <=768px) {
    .flex {
        flex-direction: column;
    }

    .intro-section {
        grid-template-columns: 1fr;
    }

    .bio-header-top {
        align-items: center;
    }

    .image-container {
        width: 250px;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        margin-inline: auto;
        border-radius: 50%;
        overflow: hidden;
    }

    .profile-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }

    .contact-form {
        padding: 20px;
    }

    .intro {
        justify-self: start;
        flex-direction: column;
    }

    .footer-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section p {
        margin: 5px 0;
    }
}