:root {
  --background_color: #05001a;
  --primary_color: cyan;
  --secondary_color: #3a3a4a;
  --text_color: white;
  --address_bar: darkgreen;
  --proj_color: red;
}

/* GLOBAL */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* ===== BODY ===== */
body {
  margin: 0 auto;
  padding: 0 16px;
  background-color: var(--background_color);
  color: var(--text_color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1100px;
  box-sizing: border-box;

}

/* ===== HEADING ===== */
h1 {
  text-align: center;
  margin-top: 40px;
  font-size: clamp(40px, 8vw, 80px);
}

/* ===== NAVBAR ===== */
.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 8px;

  margin: 20px auto;
  padding: 8px 12px;

  width: fit-content;
  max-width: 100%;

  background: var(--secondary_color);
  border-radius: 50px;
  flex-wrap: wrap;
}

.nav-list a {
  color: var(--primary_color);
  text-decoration: none;
  font-size: clamp(13px, 3.5vw, 18px);
  padding: 6px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

.nav-list a:hover {
  color: white;
  background-color: var(--address_bar);
}

.nav-list a.now {
  background-color: var(--address_bar);
  color: white;
}

/* ===== ANIMATIONS ===== */
@keyframes popUp {
  0% { opacity: 0; transform: translateY(30px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popUpLeft {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes popUpRight {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ===== ABOUT ===== */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 100px 50px;
}

.about img {
  width: 200px;
  border-radius: 50%;
  border: 3px solid var(--primary_color);
  animation: popUpRight 0.8s ease;
  transition: transform 0.3s;
}

.about img:hover {
  transform: scale(1.08);
}

.about p {
  font-size: 28px;
  max-width: 500px;
  animation: popUpLeft 0.8s ease;
}

/* ===== PROGRESS NAV ===== */
  .progress-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* z-index: 100; */
  }
/* dots */
.progress-dots {
  display: flex;
  flex-direction: column;
  gap: 45px;
}
.progress-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--background_color);
  border: 2px solid var(--text_color);
  transition: all 0.3s ease;
  cursor: pointer;
}
.progress-dot.active {
  background: var(--primary_color);
  border-color: var(--primary_color);
  box-shadow: 0 0 8px var(--primary_color);
  transform: scale(1.3);
}

/* ===== PROJECT LAYOUT ===== */
.project-grid {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  max-width: 750px;
  margin: 0 auto;
}


.project-grid  li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.project-grid article.text {
  background: var(--secondary_color);
  padding: 30px;
  border-radius: 12px;
  font-size: 20px;
  width: 100%;

  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}
h3.project-title {
  font-size: 24px;
  margin-top: 0;
  color: var(--primary_color);
  text-align: center;
}

.project-grid article.text.revealed {
  opacity: 1;
  transform: translateY(0);
}

.project-grid article.text:hover {
  transform: translateY(-5px) scale(1.02);
}

/* ===== PROJECT HEADER ===== */
.projects {
  padding: 80px 100px 0; /* prevents overlap with dots */
}

.projects h2 {
  font-size: clamp(30px, 5vw, 50px);
  text-align: center;
}

.scroll-hint {
  text-align: center;
  color: var(--primary_color);
  opacity: 1;
  animation: hintFloat 2s infinite;
  font-size: 20px;
}

@keyframes hintFloat {
  50% {
    transform: translateY(5px);
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .progress-nav {
    right: 10px;
  }
  .projects {
    padding: 60px 20px 0;
  }
  .project-grid article.text {
    font-size: 18px;
  }
  .project-grid li
  {
    min-height: 70vw;
  }
  .progress-dots {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--background_color);
  border: 2px solid var(--text_color);
  transition: all 0.3s ease;
  cursor: pointer;
}
.progress-dot.active {
  background: var(--primary_color);
  border-color: var(--primary_color);
  box-shadow: 0 0 8px var(--primary_color);
  transform: scale(1.3);
}

}
/* ===== CONTACT ===== */
.contact {
  text-align: center;
  padding: 15px 20px;
}

.contact h2 {
  font-size: clamp(30px, 5vw, 50px);
  margin-bottom: 40px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;

  list-style: none;
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-list li {
  background: var(--secondary_color);
  padding: 25px;
  border-radius: 12px;
  transition: 0.3s;
  animation: popUp 0.6s ease;
}

.contact-list li:hover {
  transform: translateY(-5px) scale(1.02);
}

/* BUTTONS */
.contact-list button {
  width: 100%;
  padding: 15px;
  font-size: 18px;

  background: transparent;
  color: var(--primary_color);
  border: 2px solid var(--primary_color);
  border-radius: 8px;

  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}

.contact-list button:hover {
  background: var(--primary_color);
  color: var(--background_color);
}

/* ===== SOCIALS ===== */
.socials {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.socials img {
  width: 60px;
  transition: 0.3s;
  animation: popUp 0.6s ease;
}

.socials img:hover {
  transform: scale(1.2);
}

/* ===== DIALOG ===== */
dialog {
  border: none;
  border-radius: 12px;
  padding: 25px;
  width: min(90vw, 350px);

  background: var(--secondary_color);
  color: var(--text_color);

  animation: popUp 0.4s ease;
}

dialog form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

dialog input,
dialog textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #222;
  background: #1a1a2e;
  color: white;
}

dialog footer {
  display: flex;
  justify-content: space-between;
}

dialog button {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

dialog button[type="submit"] {
  background: var(--primary_color);
  color: var(--background_color);
}

#closeBtn {
  background: transparent;
  color: var(--text_color);
}

/* ===== ABOUT PAGE ===== */
.about_p {
  text-align: center;
  padding: 60px 20px;
  animation: popUp 0.8s ease;
}
.about_p img {
 width: 200px;
  border-radius: 25%;
  border: 3px solid var(--primary_color);
  margin-bottom: 20px;
}

.about_p p {
  font-size: 22px;
  max-width: 90vw;
  padding-bottom: 30px;
  margin: auto;
}

.about_p h2 {
  font-size: 30px;
  color: var(--primary_color);
}
.about_p h3 {
  font-size: 24px;
  color: var(--primary_color);
}

/* ===== TIMELINE FIXED ===== */
.timeline-section h2
{
  text-align: center;
  font-size: 40px;
}
.timeline {
  list-style: none;
  max-width: 700px;
  margin: auto;
  padding-left: 40px;
  position: relative;
}

/* vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondary_color);
}

/* each item */
.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

/* button reset */
.timeline-trigger {
  all: unset;
  cursor: pointer;
  display: block;
  position: relative;
  width: 100%;
}

/* dot */
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--background_color);
  border: 3px solid var(--primary_color);
}

/* date */
.timeline-year {
  color: var(--primary_color);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  font-size: 20px;
}

/* card */
.timeline-card {
  background: var(--secondary_color);
  padding: 18px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 18px;
  animation: popUpRight 0.4s ease;
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
  }

  .about p {
    font-size: 18px;
  }
}