:root {
  --header-icon-size: clamp(24px, 3vw, 36px);
  --header-side-width: clamp(60px, 8vw, 90px);
  --gap: clamp(10px, 2vw, 20px);
}

body {
    background-image: url("AdobeStock_752630905.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;

    font-family: 'Clash Display', sans-serif;
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

header {
  display: grid;
  grid-template-columns: var(--header-side-width) 1fr var(--header-side-width);
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 0 var(--gap);
  box-sizing: border-box;
}

.menu-wrapper {
  grid-column: 1;
  justify-self: start;
  position: relative;
}

#lottie {
  width: var(--header-icon-size);
  height: var(--header-icon-size);
  cursor: pointer;
}

.dropdown-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-sizing: border-box;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;

  z-index: 100;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  color: black;
  text-decoration: none;
  font-size: clamp(28px, 5vw, 48px);
  padding: 12px 24px;
  border-radius: 12px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.08);
}

h1 {
  grid-column: 2;
  text-align: center;
  font-size: clamp(1.75em, 4vw, 3em);
  margin: 0;
  padding: 0 var(--gap);
}

h2 {
  font-size: clamp(1.25em, 2.5vw, 2em);
  text-align: center;
  margin: 0.5em 0;
}

footer {
  margin-top: auto;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2vh;

  padding: clamp(5px, 1vw, 10px) clamp(10px, 2vw, 25px);

  box-sizing: border-box;
  text-align: center;

  font-size: clamp(15px, 1.5vw, 18px);

  border-radius: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(5, 3, 3, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

footer img {
  height: auto;
  vertical-align: middle;
}

footer a {
  color: black;
  vertical-align: middle;
}

.resume-link:visited {
  color: rgba(128, 0, 32, 0.8);
}

.profile-pic {
  display: block;
  margin: 10px auto;

  width: clamp(150px, 18vw, 200px);
  height: clamp(150px, 18vw, 200px);

  object-fit: cover;
  object-position: center;

  border-radius: 50%;

  border: 3px solid rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-me {
  width: 90%;
  max-width: 800px;
  margin: 30px auto;

  padding: 20px 30px;
  box-sizing: border-box;

  text-align: center;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.6;

  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 30px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.bio {
  width: 90%;
  max-width: 720px;
  margin: 40px auto 60px;
  position: relative;
}

.bio::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.bio-block {
  position: relative;
  padding: 0 0 0 clamp(24px, 4vw, 40px);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.bio-block:last-child {
  margin-bottom: 0;
}

.bio-block::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: black;
}

.bio-block p {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: black;

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 20px;

  padding: clamp(18px, 2.5vw, 28px);
  box-sizing: border-box;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.resume {
  width: 90%;
  max-width: 1000px;
  margin: 50px auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.resume-col {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 20px;

  padding: clamp(20px, 2.5vw, 28px);
  box-sizing: border-box;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.resume-heading {
  margin: 0 0 18px 0;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);

  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.edu-item, .job-item {
  margin-bottom: 18px;
}
.edu-item:last-child, .job-item:last-child {
  margin-bottom: 0;
}

.edu-top, .job-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.edu-degree, .job-title {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  color: black;
}

.edu-year, .job-year {
  font-size: clamp(11px, 1.2vw, 12px);
  color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.edu-school, .job-org {
  display: block;
  margin-top: 3px;
  font-size: clamp(12px, 1.3vw, 14px);
  color: rgba(0, 0, 0, 0.65);
}

.job-desc {
  margin: 8px 0 0 0;
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-pill {
  font-family: 'Courier New', monospace;
  font-size: clamp(12px, 1.3vw, 13px);
  color: black;

  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.4);

  transition: background 0.2s ease, transform 0.15s ease;
}

.lang-pill:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.projects {
  width: 90%;
  max-width: 800px;
  margin: 50px auto;

  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 36px);
}

.projects-block {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 20px;

  padding: clamp(22px, 3vw, 32px);
  box-sizing: border-box;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  position: relative;
}

.projects-heading {
  margin: 0 0 6px 0;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: black;
}

.projects-sub {
  margin: 0 0 20px 0;
  font-size: clamp(13px, 1.4vw, 15px);
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.5;
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pub-item a {
  display: flex;
  flex-direction: column;
  gap: 3px;

  text-decoration: none;
  color: black;

  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.3);

  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pub-item a:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.5);
  transform: translateX(4px);
}

.pub-name {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
}

.pub-desc {
  font-size: clamp(12px, 1.3vw, 13px);
  color: rgba(0, 0, 0, 0.6);
}

.coming-soon {
  text-align: center;
}

.coming-soon .projects-heading,
.coming-soon .projects-sub {
  text-align: center;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: black;
  margin: 0 auto 14px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.github-link {
  display: inline-block;
  margin-top: 4px;

  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 600;
  color: black;
  text-decoration: none;

  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.4);

  transition: background 0.2s ease, transform 0.15s ease;
}

.github-link:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.contact {
  width: 90%;
  max-width: 600px;
  margin: 50px auto;

  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 32px);
}

.contact-form {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 20px;

  padding: clamp(22px, 3vw, 32px);
  box-sizing: border-box;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-size: clamp(12px, 1.3vw, 13px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: -6px;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: clamp(14px, 1.5vw, 15px);
  color: black;

  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.5);

  box-sizing: border-box;
  resize: vertical;

  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.75);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 6px;

  font-family: inherit;
  font-size: clamp(14px, 1.5vw, 15px);
  font-weight: 600;
  color: white;

  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  background: black;
  cursor: pointer;

  transition: background 0.2s ease, transform 0.15s ease;
}

.contact-form button:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
}

.contact-alt {
  text-align: center;

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 20px;

  padding: clamp(20px, 3vw, 28px);
  box-sizing: border-box;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.contact-alt p {
  margin: 0 0 14px 0;
  font-size: clamp(14px, 1.5vw, 15px);
  color: rgba(0, 0, 0, 0.65);
}

.linkedin-link {
  display: inline-block;

  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 600;
  color: black;
  text-decoration: none;

  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.4);

  transition: background 0.2s ease, transform 0.15s ease;
}

.linkedin-link:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.form-status {
  margin: 4px 0 0 0;
  font-size: clamp(13px, 1.4vw, 14px);
  color: rgba(0, 0, 0, 0.6);
  min-height: 18px;
}

.form-status.success {
  color: #2d6a3e;
  font-weight: 600;
}

/* ============================
   RESPONSIVE BREAKPOINTS
   (kept at the very end so they always win the cascade)
   ============================ */

@media (max-width: 700px) {
  .resume {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  :root {
    --header-side-width: 50px;
    --gap: 10px;
  }

  footer img {
    width: 20px;
  }

  .contact-form button {
    align-self: stretch;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot {
    animation: none;
  }

  .dropdown-menu,
  .contact-form button,
  .github-link,
  .linkedin-link,
  .pub-item a,
  .lang-pill {
    transition: none;
  }
}