*, html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    scroll-behavior: smooth;
}

@font-face {
    font-family: "AstonScriptProRegular";
    src: url('assets/fonts/AstonScriptPro.woff2') format('woff2'), url('assets/fonts/AstonScriptPro.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }

.header {
    width: 100%;
    background-color: #1F1F1F;
    padding: 65px 100px;
}

p {
    color: white;
    font-size: 24px;
    font-weight: 400;
}

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

.header nav a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 400;
}

.banner {
    font-size: 200px;
    color: #EEE;
    text-transform: uppercase;
    font-weight: 400;
    padding: 40px 0;
    width: 100%;
    text-align: center;
    line-height: 15rem;
}

.banner span {
    font-family: "AstonScriptProRegular", serif;
    font-size: 210px;
    font-weight: 400;
    text-transform: uppercase;
}

.sub-banner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.sub-banner .identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sub-banner .slogan {
    max-width: 400px;
    word-wrap: normal;
}

.image-banner {
    display: grid;
    grid-template-columns: 1fr 0.75fr 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    align-self: stretch;
}

.image-banner img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}


.content {
    display: grid;
    grid-template-columns: 1fr 0.75fr 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    margin: 0;
    padding: 0;
}

.about {
    background-color: #E8E5DF;
    border-right: 2px solid black;
    grid-area: 1 / 1 / 3 / 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 80px;
}

.overview {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.overview a {
    text-decoration: none;
    color: black;
    border: 1px solid black;
    border-radius: 5px;
    margin-top: 90px;
    padding: 10px 20px;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    color: black;
    max-width: 450px;
    padding-bottom: 110px
}

.about-content p {
    color: black;
}

.about-content h2 {
    font-size: 50px;
    font-weight: 400;
}

.about-content span {
    font-family: "AstonScriptProRegular", serif;
}

.image {
    width: 100%;
  height: 100%;
  object-fit: cover; /* keeps image proportional */
  display: block;
}

.image img {
    width: 100%;
    height: 100%;
    border-right:  2px solid black;
    border-bottom: 2px solid black;
}

.about-text {
    grid-area: 2 / 2 / 3 / 4; 
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 140px 50px;
}

.about-text p {
    color: black;
    max-width: 900px;
}

.img-and-nav {
    display: grid;
  grid-template-columns: 1fr 1fr; /* image | nav */
    grid-area: 1 / 2 / 2 / 4;
    align-items: stretch; 
}

.footer {
    background-color: #1F1F1F;
    color: #FDFDFD;
    margin: 0;
}

.footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    padding: 80px 0;
}

.footer-top-text {
    max-width: 20vw;
}

.footer-top-education {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-top-education a {
    text-decoration: none;
    color: #FDFDFD;
}

.footer-top-education p {
    text-align: right;
}

.footer-internship {
    width: 20vw;
    text-align: left;
    font-size: 52px;
    padding-top: 36px;
    z-index: 10;
}

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

.footer-year {
    font-size: 190px;
    z-index: 10;
}

.footer-contact {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    align-items: flex-end;
}

.footer-contact img {
    width: auto;
}

.footer-contact-content {
    display: flex;
    flex-direction: column;
}

footer-contact-content p {
min-width: 340px;
}

.footer-contact-content h1 {
    max-width: 360px;
    font-weight: 400;
    font-size: 60px;
    line-height: 5rem;
}

.footer-contact-content span {
    font-family: "AstonScriptProRegular", serif;
}

.footer-skills {
    display: grid;
    width: 40%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 24px;
    grid-row-gap: 24px;
    margin-top: 90px;
    padding-bottom: 100px;
    position: relative;
    left: 15%
}

.footer-skills span {
    border-radius: 5px;
    border: 1px solid #FFF;
    text-align: center;
    padding: 12px 9px;
    z-index: 10;
}

.footer-portrait {
    object-fit: contain;
    position: absolute;
    right: 0;
    margin-top: 150px;
    max-width: 35vw;
    z-index: 5;
}

@media screen and (max-width: 768px) {
    .header {
        padding: 20px
    }
    .banner {
        font-size: 40px;
    }
    
    .banner span {
        font-size: 45px;
    }
    
    .nav {
        flex-direction: column;
        gap: 20px;
    }

    .image-banner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .footer-year {
        font-size: 50px;
    }
}

@media screen and (max-width: 1200px) {
    .banner {
        font-size: 150px;
    }
    
    .banner span {
        font-size: 160px;
    }

    .footer-year {
        font-size: 140px;
    }
}

.stack-nav {
     display: flex;
  flex-direction: column;
    width: 100%;
    position: relative;
  }
  
  .nav-item {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    padding: 15px 18px;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    transition: opacity 0.3s ease, filter 0.3s ease;
    flex: 1;
  }

  .sub-nav {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
  }

  .sub-nav-item {
    background: none !important;
    padding-left: 25px;
  }

  .nav-hidden {
    opacity: 0.09;
    pointer-events: none;
    filter: blur(1px);
  }
  
  /* hover (desktop only) */
  @media (hover: hover) {
    .stack-nav:not(:has(.sub-nav)):hover .nav-item {
      opacity: 0.3;
    }

    .stack-nav:not(:has(.sub-nav)):hover .nav-item:hover {
      opacity: 1;
      background: #f2f2f2;
    }
  }
  
  /* mobile tweaks */
  @media (max-width: 600px) {
    .nav-item {
      padding: 1.2rem 1.2rem;
      letter-spacing: 0.05em;
    }
  }
  