@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Questrial&display=swap');

* {
    box-sizing: border-box;
}
body {
    background-color: #F4F3EF;
    color: #050517;
    font-family: 'Questrial', Arial, Helvetica, sans-serif;
}

/* header */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(244,243,239,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(5,5,23,.08);
  
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(16px, 4vw, 40px);
    margin: 0;
}
nav {
    display: flex;
    gap: 6px;
    align-items: center;
}
nav a {
    text-decoration: none;
    color: #818479;
    font-family: 'DM Sans', system-ui, Arial;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 999px;
    transition: .2s ease;
}
nav a:hover {
    background: rgba(135,61,72,.10);
    color: #873D48;
    transform: translateY(-1px);
}
nav a[aria-current="page"] {
    background: rgba(135,61,72,.14);
    color: #873D48;
    font-weight: 600;
}
#logo img {
    max-width: 92px;
    margin-top: 0;
    height: auto;
    display: block;
}
#logo img:hover {
    cursor: pointer;
}

/* hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle__bar {
    width: 22px;
    height: 2px;
    background: #873D48;
    border-radius: 2px;
    display: block;
    margin: 5px 0;
}
/* nav: desktop default */
.site-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}
  
/* index */
#intro {
    width: min(1100px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(5,5,23,.08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,.06);
  
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: center;
}
#introimg img {
    border-radius: 16px;
}
#introinfo { 
    text-align: left; 
    line-height: 1.6; 
}
#introinfo h1 {
    font-size: clamp(28px, 4vw, 44px); 
    margin: 0 0 6px; 
}
#introinfo h2 { 
    font-size: clamp(16px, 2vw, 20px); 
    margin: 0 0 14px; 
    color: #818479; 
}

/* index: section headings */
.section-title {
    width: min(1100px, calc(100% - 32px));
    margin: 56px auto 10px;
    font-family: 'DM Sans', system-ui, Arial;
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #050517;
    text-align: center;
    position: relative;
}
.section-title::after { 
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: rgba(135, 61, 72, .35);
}
.section-subtitle {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto 24px;
    text-align: center;
    color: #818479;
    font-size: 15px;
    line-height: 1.6;
}
/* index: project cards */
#featgallery {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.card {
    background: #fff;
    border: 1px solid rgba(5,5,23,.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.card__body {
    padding: 14px 16px 16px;
}
.card h3 { 
    margin: 0 0 8px; 
}
.card p { 
    margin: 0 0 12px; 
    color: #555; 
}
.chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.chips li {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(5,5,23,.10);
    background: rgba(135,61,72,.06);
}
.card:hover img { 
    transform: scale(1.04); 
}
.card:hover { 
    transform: translateY(-4px); 
    transition: transform .2s ease; 
}

/* index: lang and tech */
#skillslist {
    max-width: 1200px;
    margin: 0 auto;
}
#skillslist ul{
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
#skillslist li {
    list-style: none;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(5,5,23,.12);
    background: #fff;
    text-transform: none;
    max-width: none;
}

/* links */
.view, .more {
    font-family: 'DM Sans', Arial, Helvetica, sans-serif, serif;
    text-decoration: none;
    padding: 10px;
    border: 1px solid #873D48;
    border-radius: 50px;
    background-color: #F4F3EF;
    color: #873D48;
    text-transform: uppercase;
    font-size: smaller;
}
.more {
    display: block;
    margin: 0 auto;
    text-align: center;
    max-width: 350px;
    margin-top: 30px;
}
.view:hover, .more:hover {
    background-color: #873D48;
    color: #F4F3EF;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.15);
}

/* project list */
.title {
    text-align: center;
}
section {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto 60px;
}
.projlink {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
}
.projlist {
    background: #fff;
    border: 1px solid rgba(5,5,23,.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 0;
}
.projlist > div:last-child {
    padding: 18px;
    display: grid;
    gap: 10px;
    align-content: center;
}
.projlist img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}
.projlist:hover {
    transform: translateY(-4px);
    transition: .2s ease;
    border-color: rgba(135,61,72,.25);
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
}
.projlistdes {
    margin: 0;
    color: #555;
    line-height: 1.5;
}
.projlisttech {
    font-size: 14px;
    color: #818479;
    letter-spacing: .02em;
}

/* project details */
.projdes {
    width: min(1100px, calc(100% - 32px));
    margin: 40px auto 24px;
    padding: 22px clamp(16px, 3vw, 28px);
  
    text-align: left;
    background: #fff;
    border: 1px solid rgba(5,5,23,.08);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.06);
}
.projname { 
    margin: 0 0 10px;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -0.02em;
}
.projdes p {
    margin: 8px 0;
    color: #555;
    line-height: 1.6;
}  
.projdes span {
    font-weight: 700;
    color: #050517;
}  
.projdes .view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}
section {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto 70px;
    display: grid;
    gap: 16px;
}  
article {
    background: #fff;
    border: 1px solid rgba(5,5,23,.08);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
    overflow: hidden;
  
    padding: 18px;
    text-align: left;
}
article h3 { 
    margin: 0 0 12px;
    font-size: 18px;
    letter-spacing: -0.01em;
}
article figure img {
    max-height: 520px;      
    object-fit: contain;
    object-position: top;   
}
figure {
    margin: 0;
}
figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(5,5,23,.08);
}
figcaption {
    margin-top: 12px;
    padding: 0;
    text-transform: none;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
figcaption p {
    margin: 6px 0;
}

/* graphic */
.side-to-side {
    display: flex;
}

/* about */
.about {
    margin-bottom: 40px;
}
.about-hero {
    width: min(1100px, calc(100% - 32px));
    margin: 16px auto 0;
    background: #fff;
    border: 1px solid rgba(5,5,23,.08);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,.06);
    padding: clamp(18px, 3vw, 28px);
}
.about-hero__container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: center;
}
.about-hero__photo {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    border: 1px solid rgba(5,5,23,.08);
    display: block;
}
.about-hero__text h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.02em;
}
.about-hero__role {
    margin: 0 0 12px;
    color: #818479;
    font-family: 'DM Sans', system-ui, Arial;
}
.about-section {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.about-card {
    padding: 16px 14px;
    background: #fff;
    border: 1px solid rgba(5,5,23,.08);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
    text-align: center;
    font-size: 14px;
}
.about-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.about-skill {
    background: #fff;
    border: 1px solid rgba(5,5,23,.08);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
    padding: 16px;
}
.about-skill h3 {
    margin: 0 0 10px;
    font-size: 16px;
}
.about-skill ul {
    margin: 0;
    padding-left: 18px;
    color: #555;
}
.about-process {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}
.about-process li {
    background: #fff;
    border: 1px solid rgba(5,5,23,.08);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
    padding: 16px;
}
.about-process strong {
    display: inline-block;
    margin-bottom: 6px;
    color: #050517;
}
.about-process p { 
    margin: 0;
    color: #555;
}
.about-highlight {
    background: rgba(135,61,72,.06);
    border: 1px solid rgba(135,61,72,.18);
    border-radius: 18px;
    padding: 18px;
    margin-top: 10px;
    text-align: center;
    color: #555;
}
.about-personal {
    text-align: center;
    color: #555;
}
.about-cta {
    text-align: center;
}

/* contact */
.contact-form {
    width: min(720px, calc(100% - 32px));
    margin: 30px auto 70px;
    padding: 22px clamp(16px, 3vw, 28px);
    background: #fff;
    border: 1px solid rgba(5,5,23,.08);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.06);
    display: grid;
    gap: 14px;
}
  
.contact-form label {
    display: grid;
    gap: 8px;
    font-family: 'DM Sans', system-ui, Arial;
    color: #050517;
    font-size: 14px;
}
  
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(5,5,23,.12);
    background: #fff;
    font-family: inherit;
    font-size: 15px;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: rgba(135,61,72,.45);
    box-shadow: 0 0 0 4px rgba(135,61,72,.12);
}
.contact-form button.view {
    justify-self: start;
}
  
/* footer */
footer {
    text-align: center;
    color: #818479;
    padding: 1rem;
    margin-top: 50px;
    margin: 0 auto;
}
.footer__links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}
.footer__links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(5,5,23,.12);
    color: #818479;
    transition: .2s ease;
    text-decoration: none;
}
.footer__links a:hover{
    background: rgba(135,61,72,.12);
    transform: translateY(-2px);
    color: #873D48;
}
.fa-envelope, .fa-linkedin-in, .fa-github {
    font-size: 20px;
    color: #818479;
    gap: 10px;
}

/* thanks */
.thanks-page {
    display: grid;
    place-items: center;
    padding: 32px 16px;
}
.thanks-container {
    width: min(720px, calc(100% - 32px));
    background: #fff;
    border: 1px solid rgba(5, 5, 23, 0.08);
    border-radius: 22px;
    padding: clamp(24px, 4vw, 40px);
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}
.thanks-container h1 {
    font-size: clamp(26px, 4vw, 36px);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.thanks-container p {
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.6;
}
.thanks-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid #873D48;
    background: transparent;
    color: #873D48;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
}
.thanks-btn:hover {
    background: #873D48;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* media queries */
@media (max-width: 820px){
    .projlist { 
        grid-template-columns: 1fr; 
    }
    .projlist img { 
        min-height: 200px; 
    }
    figure:has(img + img) {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
      figure:has(img + img) figcaption {
        grid-column: 1 / -1;
    }
    .about-hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-hero__photo {
        margin: 0 auto;
    }
}

@media (max-width: 720px){
    .nav-toggle {
        display: grid;
    }
    /* hide nav until opened */
    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
    
        padding: 12px;
        background: rgba(244,243,239,.98);
        border: 1px solid rgba(5,5,23,.08);
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(0,0,0,.10);
    
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        z-index: 20;
    }
    .site-nav a {
        display: block;
        text-align: left;
        padding: 12px 14px;
        border-radius: 14px;
    }
    /* when open */
      .site-nav.open {
        display: flex;
    }
    #intro { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    #introinfo { 
        text-align: center; 
    }
    .projdes {
        text-align: left;
    }
      article {
        padding: 14px;
    }
}
