@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --bg:          #ede8df;
  --bg-card:     #f5f1ea;
  --bg-card2:    #faf7f3;
  --lavender:    #c9a8e0;
  --lavender-lt: #e2d0f2;
  --pink:        #f2a8c4;
  --pink-lt:     #fad6e8;
  --brown:       #5a4a3a;
  --brown-lt:    #8a7060;
  --text:        #3d3028;
  --text-muted:  #9a8878;
  --border:      rgba(180,155,130,.25);
  --radius:      16px;
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 40% at -5% 5%,  rgba(201,168,224,.45) 0%, transparent 70%),
    radial-gradient(ellipse 50% 38% at 105% 95%, rgba(242,168,196,.40) 0%, transparent 70%),
    radial-gradient(ellipse 30% 25% at 102% 2%,  rgba(242,168,196,.30) 0%, transparent 70%),
    linear-gradient(rgba(180,155,130,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,155,130,.13) 1px, transparent 1px);
  background-size: auto, auto, auto, 38px 38px, 38px 38px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2.5px 2.5px at 12%  22%, rgba(180,130,100,.35) 0%, transparent 100%),
    radial-gradient(2px   2px   at 88%  15%, rgba(201,168,224,.6)  0%, transparent 100%),
    radial-gradient(3px   3px   at 75%  78%, rgba(242,168,196,.5)  0%, transparent 100%),
    radial-gradient(2px   2px   at 30%  85%, rgba(180,130,100,.3)  0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 55%  10%, rgba(242,168,196,.4)  0%, transparent 100%),
    radial-gradient(2px   2px   at 93%  52%, rgba(201,168,224,.5)  0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

header {
  padding: 3rem 0 2rem;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 2.5rem;
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 100px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--lavender), var(--pink));
  border-radius: 3px;
}

h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
  margin-bottom: .4rem;
  letter-spacing: .01em;
}

.subtitle {
  font-size: .88rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

nav a {
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brown-lt);
  text-decoration: none;
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: all var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--brown);
  background: rgba(201,168,224,.22);
  border-color: var(--lavender);
}

section {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin-bottom: 1.8rem;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,224,.18) 0%, transparent 70%);
  pointer-events: none;
}

section:hover {
  border-color: var(--lavender);
  box-shadow: 0 6px 28px rgba(201,168,224,.2), 0 2px 8px rgba(0,0,0,.04);
}

h2 {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: .9rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  height: 3px;
  width: 60%;
  background: linear-gradient(90deg, var(--lavender), var(--pink));
  border-radius: 3px;
  margin-top: 2px;
}

h3 {
  font-family: 'Nunito', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .9rem;
}

main h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 1.8rem;
}

p {
  color: var(--text);
  font-weight: 400;
  font-size: .97rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.skills span {
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 999px;
  border: 1.5px solid var(--lavender);
  color: var(--brown);
  background: rgba(201,168,224,.15);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: default;
}

.skills span:hover {
  background: rgba(201,168,224,.35);
  border-color: var(--lavender);
  transform: translateY(-1px);
}

audio {
  width: 100%;
  height: 36px;
  accent-color: var(--lavender);
  border-radius: 8px;
  margin-top: .3rem;
}

section > div {
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .9rem 1.2rem;
  margin-top: .8rem;
  transition: border-color var(--transition);
}

section > div:hover {
  border-color: var(--pink);
}

section > div p {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: .35rem;
}

hr {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 0;
}

img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(201,168,224,.4);
  cursor: zoom-in;
  display: inline-block;
  vertical-align: top;
  margin: 4px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

img:hover {
  transform: scale(1.07) rotate(-1deg);
  border-color: var(--lavender);
  box-shadow: 0 6px 20px rgba(201,168,224,.4);
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(40,28,20,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lb-in .22s ease;
}

#lightbox.open { display: flex; }

#lightbox img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid rgba(201,168,224,.5);
  box-shadow: 0 20px 80px rgba(0,0,0,.25);
  cursor: default;
  margin: 0;
  transform: none !important;
  rotate: none;
}

#lightbox img:hover {
  transform: none !important;
  box-shadow: 0 20px 80px rgba(0,0,0,.25);
  border-color: rgba(201,168,224,.5);
}

#lb-close {
  position: fixed;
  top: 1rem; right: 1.4rem;
  font-size: 2.2rem;
  line-height: 1;
  color: #fff;
  background: rgba(90,74,58,.5);
  border: none;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 1001;
}
#lb-close:hover { background: var(--lavender); color: var(--brown); }

@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

footer {
  text-align: center;
  padding: 1.4rem 0;
  font-size: .8rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  border-top: 1.5px solid var(--border);
  margin-top: 2rem;
}

.container > section:last-of-type {
  background: rgba(201,168,224,.1);
  border-color: rgba(201,168,224,.35);
  padding: 1.4rem 2rem;
}

.container > section:last-of-type h3 {
  font-size: .72rem;
}

.container > section:last-of-type a {
  color: var(--brown);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--lavender);
  transition: color var(--transition), border-color var(--transition);
}

.container > section:last-of-type a:hover {
  color: #7a4a8a;
  border-color: var(--pink);
}

@media (min-width: 1200px) {
  .container {
    max-width: 960px;
    padding: 0 2rem 5rem;
  }

  section img {
    width: 120px;
    height: 90px;
    margin: 6px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: 720px;
    padding: 0 1.5rem 4rem;
  }

  h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }

  section { padding: 1.7rem 1.8rem; }

  section img {
    width: 105px;
    height: 80px;
    margin: 5px;
  }

  nav ul { gap: 1rem; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .container { padding: 0 1.2rem 3.5rem; }

  header { padding: 2rem 0 1.5rem; }

  h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .subtitle { font-size: .8rem; }

  section { padding: 1.4rem 1.4rem; }

  nav ul { gap: .7rem; flex-wrap: wrap; }
  nav a { font-size: .82rem; padding: .25rem .65rem; }

  section img {
    width: 90px;
    height: 68px;
    margin: 4px;
  }

  audio { height: 32px; }
}

@media (max-width: 479px) {
  .container { padding: 0 .9rem 3rem; }

  header { padding: 1.6rem 0 1.2rem; }

  h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
    word-break: break-word;
  }

  .subtitle {
    font-size: .75rem;
    letter-spacing: .05em;
    margin-bottom: 1.2rem;
  }
  nav ul {
    flex-direction: column;
    gap: .4rem;
    align-items: flex-start;
  }
  nav a {
    font-size: .85rem;
    padding: .4rem .9rem;
    display: inline-block;
  }

  section {
    padding: 1.1rem 1rem;
    margin-bottom: 1.2rem;
    border-radius: 12px;
  }

  h2 { font-size: 1.65rem; }
  main h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); }

  .skills span {
    font-size: .75rem;
    padding: .28rem .7rem;
  }

  section img {
    width: calc(50% - 10px);
    height: 80px;
    margin: 4px;
    border-radius: 8px;
  }

  audio { height: 30px; }

  section > div { padding: .7rem .9rem; }

  #lightbox img {
    max-width: 96vw;
    max-height: 80vh;
    border-radius: 10px;
  }

  #lb-close {
    top: .6rem;
    right: .8rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.6rem;
  }

  .container > section:last-of-type {
    padding: 1rem;
  }

  footer { font-size: .72rem; padding: 1rem 0; }
}