@import url('https://fonts.googleapis.com/css2?family=Bitcount+Single:wght,ELSH@500,0.8&family=Fjalla+One&family=Jost:wght@700&family=Poppins&family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Press Start 2P", system-ui;
    font-weight: 400;
    font-style: normal;
}


html {
    scroll-behavior: smooth;
}

p {
    color: rgb(85, 85, 85);
}

a {
    transition: all 300ms ease;
}

.good-writing,
article {
    font-family: "Jost", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    color: black;
}

.dot-writing {
    font-family: "Press Start 2P", system-ui;
    font-weight: 400;
    font-style: normal;
}

/* desktop nav */
nav,
.nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;;
    font-size: 1rem;    /* make the font 1.5rem */
}

a, .btn {
    color:black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color:gray;
    text-decoration: underline;
    text-underline-offset: 0.5rem;
    text-decoration-color: rgb(181, 181, 181);
}

.logo {
    font-size: 1.5rem;
}

.logo:hover {
    cursor: default;
}

#dark{
  color: black;
}

/* menu */
#menu-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
}

.menu {
    position: relative;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 28px;
    cursor: pointer;
}

.menu-icon span {
    width: 100%;
    height: 3px;
    background: black;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 120%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-in-out;
  z-index: 1000;
}

.menu-links li {
  list-style: none;
}

.menu-links a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: black;
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;   
}

/* open state */
.menu-links.open {
  max-height: 300px;
}

/* open state → cross */
.menu-icon.open span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.open span:nth-child(2) {
  opacity: 0;
}

.menu-icon.open span:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Sections */
section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
  display: flex;
}


/* Profile */
#profile {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section-pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section-text {
  align-self: center;
  text-align: center;
}

.section-text p {
    font-weight: 600;
}

.section-text-p1 {
    text-align: center;
}

.section-text-p2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 1.5rem;
    text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* icons */
.icon {
    cursor: pointer;
    height: 3rem;
}

/* buttons */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1 {
    border: rgb(0, 0, 0) 0.2rem solid;
}

.btn-color-1:hover  {
    cursor: pointer;
    background-color: black;
    color: white;
}

.btn-container {
  gap: 1rem;
}

/* about */
/* about section */
#about {
  position: relative;
}

.about-container {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-container,
.about-details-container {
  display: flex;
}

.about-pic {
  height: 420px;
  /* width: 420px; */
  border-radius: 2rem;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section-pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* experience */
#experience {
  position: relative;
}

.experience-subtitle {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

/* projects */
#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 100%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* skills */
#skills {
    position: relative;
}

article .icon {
  cursor: default;
}


/* contact */
#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 3.5rem;
  cursor: default;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

/* scroll-block */
@keyframes appear {
  from {
    opacity: 0;
    scale: 0.5;
    /* transform: translate(-100px); */
  }
  to {
    opacity: 1;
    scale: 1;
    /* transform: translate(0px); */
  }
}

.scroll-block {
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* body {
  background: #0e0e0e;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
} */

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;          /* fill the container */
  max-width: unset;     /* remove the 1000px cap */
}

/* ── CARD ── */
.card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 6/4;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.07);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.4s cubic-bezier(0.23,1,0.32,1);
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}

.card-image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.card:hover .card-image { transform: scale(1.06); }

.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.5)  45%,
    transparent      100%);
  opacity: 1;
  transition: opacity 0.4s ease;
}
.card:hover .card-overlay { opacity: 1; }

.card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  transform: translateY(10px);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), opacity 0.4s ease;
}
.card:hover .card-body { transform: translateY(0); opacity: 1; }

.card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.1rem;
  color: #fff; margin-bottom: 4px;
}
.card-desc {
  font-size: 0.83rem; font-weight: 300;
  color: rgba(255,255,255,0.7); line-height: 1.5;
}

/* ── BACKDROP ── */
.backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.backdrop.open { opacity: 1; pointer-events: all; }

/* ── MODAL ── */
.modal {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  width: 100%; max-width: 660px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), opacity 0.4s ease;
}
.backdrop.open .modal { transform: none; opacity: 1; }

.modal-image-wrap {
  width: 100%; aspect-ratio: 6/4;
  overflow: hidden; position: relative;
}
.modal-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}

.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.15); }

.modal-body { padding: 22px 24px 26px; }

.modal-role {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-family: 'Syne', sans-serif;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px; padding: 3px 12px; margin-bottom: 14px;
}
.modal-role::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #6ee7b7; box-shadow: 0 0 6px #6ee7b7aa;
}

.modal-cols { display: flex; gap: 24px; align-items: flex-start; }
.modal-left { flex: 1; min-width: 0; }
.modal-right { flex-shrink: 0; width: 170px; }

.modal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.4rem;
  color: #fff; margin-bottom: 8px; line-height: 1.2;
}
.modal-desc {
  font-size: 0.87rem; font-weight: 300;
  color: rgba(255,255,255,0.6); line-height: 1.65;
}

.modal-stack-label {
  font-size: 0.67rem; font-family: 'Syne', sans-serif;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 10px;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-tag {
  font-size: 0.7rem; font-family: 'Syne', sans-serif;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px; padding: 4px 10px;
}

.modal-divider {
  height: 1px; background: rgba(255,255,255,0.07); margin: 20px 0;
}

.modal-github {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem; font-family: 'Syne', sans-serif; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 9px 18px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.modal-github:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

@media (max-width: 500px) {
  .modal-cols { flex-direction: column; }
  .modal-right { width: 100%; }
}

.marker {
  background: linear-gradient(120deg, #f9ca24 0%, #f9ca24 100%);
  background-repeat: no-repeat;
  background-size: 0% 40%;     /* starts at 0 width */
  background-position: 0 90%;
  padding: 0 3px;
  transition: background-size 1s ease;
}

.marker.visible {
  background-size: 100% 40%;   /* expands to full width */
}

.shift {
  margin-left: 20px;
}