/* —— Design tokens —— */
:root {
  --blue: #1e3a5f;
  --blue-soft: #2c5aa0;
  --cream: #f9f4e8;
  --orange: #ff6b35;
  --orange-deep: #e55a2b;
  --orange-coral: #ff8c42;
  --black: #121212;
  --white: #faf8f3;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  /* Hero (reference layout) */
  --hero-bg: #12213f;
  --hero-orange: #ff6b35;
  --hero-light: #e8f4fd;
  --hero-social-bg: #0f1a2a;
} 

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--blue);
  background: var(--cream);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--cream);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a:not(.btn-nav) {
  color: rgba(249, 244, 232, 0.92);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a:not(.btn-nav):hover {
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-nav {
  background: var(--orange);
  color: var(--black);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-linkedin {
  background: var(--orange-coral);
  color: var(--white);
  margin-top: 0.5rem;
}

.btn-linkedin__icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}

/* —— Hero —— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--hero-bg);
  color: var(--cream);
  min-height: 100vh;
  padding: clamp(5.5rem, 12vw, 7rem) clamp(1.25rem, 4vw, 3.5rem) clamp(5.5rem, 12vw, 6.5rem);
  overflow: hidden;
}

.hero__stage {
  --hero-type-size: clamp(7.25rem, 9vw, 5.25rem);
  --hero-line-height: calc(0.82 * var(--hero-type-size));
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: clamp(400px, 62vh, 640px);
}

/* Gold PORTFOLIO lines — behind portrait (z-index 1) */
.hero__titles-gold {
  position: absolute;
  z-index: 1;
  left: 20%;
  right: 22%;
  top: 50%;
  transform: translateY(calc(-50% + 0.5 * var(--hero-line-height)));
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

/* White PORTFOLIO — in front of portrait (z-index 3) */
.hero__titles-white {
  position: absolute;
  z-index: 3;
  left: 20%;
  right: 22%;
  top: 50%;
  transform: translateY(calc(-50% - 1.5 * var(--hero-line-height)));
  margin: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero__portfolio-line {
  display: block;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: var(--hero-type-size);
  line-height: 0.82;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.hero__portfolio-line--white {
  color: #ffffff;
}

.hero__portfolio-line--gold {
  color: var(--hero-orange);
}

/* Portrait — between gold type and white type (z-index 2) */
.hero__photo-shell {
  position: absolute;
  z-index: 2;
  left: clamp(0rem, 2vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(34vw, 300px);
  min-width: 200px;
}

.hero__photo-frame {
  position: relative;
  background: var(--hero-light);
  padding: clamp(10px, 1.2vw, 14px);
  box-shadow: 16px 22px 44px rgba(0, 0, 0, 0.28);
}

.hero__photo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero__photo-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(232, 244, 253, 0) 0%,
    rgba(173, 216, 230, 0.55) 45%,
    rgba(135, 206, 235, 0.72) 100%
  );
  pointer-events: none;
}

.hero__spark {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ffffff;
  clip-path: polygon(50% 0%, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0% 50%, 39% 35%);
  z-index: 3;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.hero__spark--tl1 {
  top: 4%;
  left: 6%;
}

.hero__spark--tl2 {
  top: 9%;
  left: 18%;
  width: 11px;
  height: 11px;
}

.hero__spark--br {
  bottom: 8%;
  right: 6%;
  width: 14px;
  height: 14px;
}

/* Dark green social card — above type + photo */
.hero__social-box {
  position: absolute;
  z-index: 4;
  right: clamp(8rem, 1vw, 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--hero-social-bg);
  padding: 1.35rem 1.85rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  line-height: 1.55;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.hero__social-box p {
  margin: 0.2em 0;
}

/* Bottom-left bio */
.hero__bio {
  position: relative;
  z-index: 4;
  max-width: 32rem;
  margin:1.5rem auto 0 0;
  padding-right: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 1.65vw, 0.95rem);
  line-height: 1.65;
  font-weight: 500;
  color: #141814;
  text-shadow: 0 0 1px rgba(249, 244, 232, 0.35);
  color: var(--cream);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  top: 92%;
  /* Nearer the bottom of the hero; does not change .hero__bio (document flow) */
  bottom: clamp(0rem, 1.25vw, 0.65rem);
  transform: translateX(-50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  z-index: 0;
}

.hero__scroll:hover {
  background: var(--orange-deep);
}

/* —— About —— */
.about {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(4rem, 10vw, 6rem);
  background: var(--cream);
  position: relative;
  z-index:0;
}

.about__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.section-title--dark {
  color: var(--blue-soft);
  color: var(--blue);
}

.section-title--amber {
  color: var(--orange);
}

.section-title--green {
  color: var(--blue);
}

.about__copy p {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 0.95rem;
}

.about__visual {
  position: relative;
}

.about__green {
  position: relative;
  background: var(--blue);
  border-radius: 4px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2rem) 0;
  min-height: 420px;
  box-shadow: 0 24px 50px rgba(30, 58, 95, 0.35);
}

.about__avatar-ring {
  width: min(240px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--cream);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: url("images/115e91b1-2746-4d6d-b92c-4767978f6358.jpg");
  background-size: cover;
  background-position: center 15%;
}

.pill {
  position: absolute;
  z-index: 3;
  background: var(--orange);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.pill--tl {
  top: 14%;
  left: 6%;
}

.pill--br {
  bottom: 38%;
  right: 4%;
}

.about__contact-card {
  position: relative;
  margin: 1.5rem -1.5rem -2rem;
  padding: 1.35rem 1.5rem 1.5rem;
  background: var(--black);
  color: var(--cream);
  border-radius: 2px;
}

.about__contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--cream);
}

.about__contact-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.7;
}

.about__contact-card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-top: 0.12em;
}

.projects-list {
  list-style: disc;
  margin: 1rem 0;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.projects-list li {
  margin-bottom: 0.75rem;
}

.projects-list strong {
  color: var(--blue-soft);
}

/* —— Resume —— */
.resume {
  position: relative;
  background: var(--blue);
  color: var(--cream);
  padding: clamp(3.5rem, 8vw, 5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.resume__bg-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  padding-right: 2%;
  gap: 0.15em;
  z-index: 0;
}

.resume__bg-text span {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 107, 53, 0.22);
  text-stroke: 1px rgba(255, 107, 53, 0.22);
  opacity: 0.9;
}

.resume__layout {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 0;
  align-items: start;
}

.resume__col--left {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-right: clamp(-2rem, -4vw, -4rem);
}

.education-block {
  background: var(--blue-soft);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 2px 0 0 0;
}

.experience-block {
  position: relative;
  z-index: 2;
  background: var(--orange);
  color: var(--blue);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem) clamp(2rem, 4vw, 2.75rem);
  margin-top: -1.25rem;
  margin-right: clamp(0.5rem, 3vw, 2.5rem);
  box-shadow: 18px 28px 50px rgba(0, 0, 0, 0.28);
  border-radius: 2px;
}

.experience-block .timeline__year {
  color: var(--blue);
}

.experience-block .timeline__detail {
  color: rgba(18, 18, 18, 0.88);
}

.experience-block .timeline li::before {
  background: var(--black);
  box-shadow: 0 0 0 2px rgba(18, 18, 18, 0.2);
}

.resume__col--right {
  position: relative;
  z-index: 1;
  background: rgba(30, 58, 95, 0.92);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 0 2px 2px 0;
  min-height: 100%;
  border-left: 1px solid rgba(255, 107, 53, 0.15);
}

.resume__col--right .section-title {
  margin-bottom: 1rem;
}

.skills__label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249, 244, 232, 0.75);
}

.software-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
}

.software {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 10px;
  background: #3a3a3a;
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.coding-list {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: rgba(249, 244, 232, 0.9);
  max-width: 22rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-flat {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: rgba(255, 107, 53, 0.45);
}

.timeline li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 1.25rem;
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  background: var(--orange-coral);
  transform: rotate(45deg);
  border-radius: 1px;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.35);
}

.timeline__year {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.2rem;
}

.timeline__detail {
  font-size: 0.88rem;
  color: rgba(249, 244, 232, 0.95);
  line-height: 1.55;
}

.timeline--cream .timeline__detail {
  color: rgba(249, 244, 232, 0.95);
}

.experience-block .timeline::before {
  background: rgba(30, 58, 95, 0.35);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(30, 58, 95, 0.2);
}

.tag {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  background: var(--cream);
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 3.5rem);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer__block {
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.footer__lang {
  margin-bottom: clamp(2.25rem, 5vw, 3rem);
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 720px;
}

.lang-grid strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--blue);
  font-family: var(--font-serif);
}

.lang-grid span {
  font-size: 0.85rem;
  color: rgba(46, 70, 50, 0.75);
}

.footer__lower {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.timeline--activities::before {
  background: rgba(255, 140, 66, 0.45);
}

.timeline--activities li::before {
  background: var(--orange-coral);
}

.timeline--activities .timeline__year {
  color: var(--orange-coral);
}

.timeline--activities .timeline__detail {
  color: var(--blue);
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hobby {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue);
}

.hobby__icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 0.65rem;
  border-radius: 12px;
  background: var(--orange);
  position: relative;
}

.hobby__icon--note::before {
  content: "♪";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--black);
}

.hobby__icon--ball::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--black);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hobby__icon--palette::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 18px;
  border-radius: 50% 50% 40% 40%;
  background: var(--black);
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: -6px 4px 0 -2px var(--black), 6px 4px 0 -2px var(--black);
}

.hobby__icon--paws::before {
  content: "🐾";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  filter: grayscale(1) contrast(1.2);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero__stage {
    --hero-type-size: clamp(2rem, 10vw, 3.25rem);
    min-height: 0;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .hero__titles-gold,
  .hero__titles-white {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    pointer-events: auto;
  }

  .hero__titles-white {
    order: 2;
    padding: 0.5rem 0 0;
  }

  .hero__titles-gold {
    order: 3;
    padding: 0;
  }

  .hero__photo-shell {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(88vw, 320px);
    order: 1;
  }

  .hero__social-box {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    order: 4;
    width: 100%;
    max-width: 280px;
  }

  .hero__bio {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 36rem;
  }

  .about__inner {
    grid-template-columns: 1fr;
  }

  .pill--br {
    bottom: 42%;
  }

  .resume__layout {
    grid-template-columns: 1fr;
  }

  .resume__col--left {
    margin-right: 0;
  }

  .experience-block {
    margin-right: 0;
    margin-top: 0;
  }

  .resume__col--right {
    border-left: none;
    border-top: 1px solid rgba(255, 107, 53, 0.15);
  }

  .footer__lower {
    grid-template-columns: 1fr;
  }

  .lang-grid {
    grid-template-columns: 1fr;
  }

  .hobby-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav a:not(.btn-nav) {
    display: none;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}
