:root {
  --light-lav: #FBF5FF;
  --purple-btn: #b687d6;
  --text-purple: #B388D3;
  --light-purple: #eee1f7;
  --ink: #372743;
  --faded-purple: #c0b4c8;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  max-width: 1180px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

p {
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 300;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img{
  border-radius: 12px;
}

/* ---------- SIDE MARK ---------- */

.sidemark {
  position: fixed;
  left: 22px;
  top: 50%;
  writing-mode: sideways-lr;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--faded-purple);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  font-weight: 300;
}

.sidemark::before {
  content: "";
  width: .5px;
  height: 60px;
  background: var(--faded-purple);
}

/* ---------- HERO ---------- */
/* ---------- HERO ---------- */

.hero {
  background: var(--light-lav);
  border-radius: 32px;
  margin: 28px auto 0;
  padding: 45px 56px 70px;
  max-width: 1180px;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

/* Logo */

.logo {
  margin: 0;
  position: relative;
  z-index: 1;
}

.logo img {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: auto;
}

/* Hero layout */

.hero-banner {
  display: flex;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 470px;
  margin-top: 70px;
  margin-left: 15px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero p.tagline {
  margin-top: 22px;
  max-width: 420px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  background: var(--purple-btn);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: 0 12px 24px -10px rgba(139,104,204,.55);
  transition: .25s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--text-purple);
  background-color: white;

}

.social-row {
  display: flex;
  
  margin-top: 30px;
}

.social-row img{
  max-width: 30px;
  min-width: 20px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  transition: .25s;
}

.social-row a:hover {
  transform: translateY(-3px);
}

/* Portrait */

.portrait-wrap {
  position: absolute;
  right: 100px;
  top: 140px;
  width: 500px;
  z-index: 3;
}

/* Layered Avatar */

.avatar-container {
  cursor: pointer;
}


.avatar-body,
.avatar-hand {
  width: 100%;
  display: block;
}


/* Body stays still */
.avatar-body {
  position: relative;
}


.avatar-hand {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  display: block;

  transform-origin: 20% 75%;

  animation: armSwing 1s ease-in-out infinite;
  animation-play-state: paused;

  transition: transform 0.8s ease;
}


.avatar-container:hover .avatar-hand {
  animation-play-state: running;
}


@keyframes armSwing {

  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(6deg);
  }

  50% {
    transform: rotate(-6deg);
  }

  75% {
    transform: rotate(6deg);
  }

  100% {
    transform: rotate(0deg);
  }

}

/* ---------- NAV PILL ---------- */

.nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(600px, calc(100% - 32px));
  padding: 18px 18px;
  border-radius: 999px;
  background: rgba(147, 77, 197, 0.4);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: .2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

.nav a {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255);
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
}

.nav a.active {
  color: white;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 2px;
}

.nav a:hover {
  color: white;
  transform: translateY(-2px);
  text-shadow: 0 6px 18px rgba(255, 255, 255, 0.35);
}

/* ---------- SECTION HEADERS ---------- */

.section {
  padding: 100px 0 20px;
}

.section h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 56px;
  letter-spacing: -0.01em;
}

/* ---------- EXPERIENCE ---------- */

.experience {
  background: #fff;
}

.exp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  color: #2d2540;
  margin-bottom: 80px;
}

.timeline {
  position: relative;
  margin-right: 10rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: #d7bdf4;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 100px;
}

.timeline .timeline-item:nth-child(3) {
  margin-bottom: 0;
}

.timeline-left {
  text-align: right;
}

.timeline-left h3 {
  color: #2d2540;
  margin-bottom: 10px;
}

.subtitle {
  color: #c19be8;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.4;
}

.timeline-right p {
  color: #47405d;
  max-width: 400px;
}

.timeline-center {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d7bdf4;
}

.dot.active {
  background: #9d79d8;
  border: none;
}

/* ---------- SKILLS ---------- */

.pill-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.pill-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill-row:nth-child(1) {
  margin-left: auto;
}

.pill-row:nth-child(3) {
  margin-right: auto;
}

.pill {
  background: var(--purple-btn);
  color: #fff;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill.ghost {
  background: var(--light-purple);
  color: transparent;
  min-width: 200px;
}

.tool-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  margin-top: 4rem;
}

.tool-icons img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: 0px;
}



/* ---------- GALLERY ---------- */

.gallery-section {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  min-height: 240px;
  background: #ddd;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card:hover img {
  transform: scale(1.05);
}

.large {
  grid-column: span 7;
  min-height: 380px;
}

.tall {
  grid-column: span 5;
  min-height: 420px;
}

.wide {
  grid-column: span 8;
  min-height: 300px;
}

.card:not(.large):not(.tall):not(.wide) {
  grid-column: span 4;
  min-height: 260px;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 16px;
  background: linear-gradient(
  to top,
  rgba(30, 30, 30, 0.2),
  rgba(0, 0, 0, 0.02),
 
  transparent
);
  color: white;

  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.title {
  color: rgb(255, 255, 255);
  font-weight: 500;
  margin: 0;
}

/* ---------- CONTACT ---------- */

.contact-section {
  margin: 100px auto;
  max-width: 1180px;
  background: var(--light-lav);
  border-radius: 32px;
  padding: 70px 40px 60px;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 18px;
}

.contact-section p {
  max-width: 480px;
  margin: 0 auto;
  color: var(--dark-ink);
  line-height: 1.7;
}

.contact-section .btn-primary {
  margin-top: 28px;
}

.contact-section .social-row {
  justify-content: center;
  margin-top: 26px;
}


  .cursor-circle {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;

    
    background: rgba(234, 221, 255, 0.5);

    overflow: hidden;
    transform: translate(-50%, -50%);
  }

  .cursor-circle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
  }


  




/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 768px) {

  body {
    max-width: 100%;
  }

  .wrap {
    padding: 0 20px;
  }

  .sidemark {
    display: none;
  }

  .cursor-circle {
  display: none;
  }

  /* HERO */

  .hero {
    margin: 15px;
    padding: 30px 20px 45px;
    min-height: auto;
    border-radius: 24px;
  }

  .hero-banner {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    margin: 40px 0 0;
    max-width: 100%;
    text-align: center;
  }

  .hero p.tagline {
    max-width: 100%;
  }

  .social-row {
    justify-content: center;
  }

  .portrait-wrap {
    position: relative;
    right: auto;
    top: auto;
    width: 90%;
    margin: 35px auto 0;
  }


  /* NAV */

  .nav {
    width: calc(100% - 24px);
    padding: 12px 8px;
    bottom: 12px;
  }

  .nav a {
    font-size: 11px;
  }


  /* SECTIONS */

  .section {
    padding: 70px 0 20px;
  }

  .section h2 {
    margin-bottom: 35px;
  }


  /* EXPERIENCE TIMELINE */

  .timeline {
    margin-right: 0;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 20px;
    margin-bottom: 60px;
  }

  .timeline-left {
    grid-column: 2;
    text-align: left;
  }

  .timeline-center {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-right {
    grid-column: 2;
  }

  .timeline-right p {
    max-width: 100%;
  }


  /* SKILLS */

  .pill-row {
    gap: 10px;
  }

  .pill {
    padding: 12px 22px;
  }

  .pill.ghost {
    min-width: 120px;
  }

  .tool-icons {
    gap: 14px;
    margin-top: 35px;
  }

  .tool-icons span {
    width: 40px;
    height: 40px;
  }


  /* GALLERY */

  .gallery {
    display: flex;
    flex-direction: column;
  }

  .large,
  .tall,
  .wide,
  .card:not(.large):not(.tall):not(.wide) {
    width: 100%;
    min-height: 250px;
  }


  /* CONTACT */

  .contact-section {
    margin: 60px 15px;
    padding: 50px 20px;
    border-radius: 24px;
  }


  .avatar-hand {
    animation: armSwing 1.2s ease-in-out infinite;
  }

}


@media (max-width: 480px) {

  .hero {
    padding: 25px 15px 40px;
  }

  .btn-primary {
    padding: 11px 22px;
  }

  .social-row a {
    width: 36px;
    height: 36px;
  }

  .nav a {
    font-size: 10px;
  }

  .pill {
    width: 100%;
    text-align: center;
  }

  .card {
    min-height: 220px;
  }

  .tool-icons {
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
  }

  .tool-icons img {
    width: 40px;
    height: 40px;
  }

  
  .avatar-hand {
    animation: armSwing 1.2s ease-in-out infinite;
  }

}