html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

#topbutton {
  display: none;
  position: fixed;
  bottom: 50px;
  right: 6%;
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  color: black;
  cursor: pointer;
  text-decoration: none;
}

#topbutton:hover {
  opacity: 0.6;
}

body {
  background-color: #F5EDED;
  color: black;
  font-family: "Avenir Next", Avenir, "Nunito Sans", sans-serif;
  line-height: 1.6em;
  margin: 0 auto;
  width: 95%;
  max-width: 1200px;
}

body::-webkit-scrollbar {
  display: none;
}

.container {
  clear: both;
  width: 100%;
  margin: 0;
}

/* =====================
   HEADER & NAV
   ===================== */

.main-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 40px;
  position: relative;
  padding-top: 14px;
  padding-right: 10px;
}

#bubble-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 9999;
}

.magic-bubble {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255,192,203,0.25),
    rgba(173,216,230,0.18),
    rgba(255,255,255,0.08));
  box-shadow:
    inset 0 0 6px rgba(255,255,255,0.3),
    0 0 10px rgba(255,182,193,0.2),
    0 0 16px rgba(173,216,230,0.15);
  z-index: 0;
  cursor: pointer;
}

.magic-bubble.pop {
  animation: bubble-pop 0.50s ease-out forwards;
}

@keyframes bubble-pop {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; box-shadow: none; }
}

.sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #fff, rgba(255,192,203,0.9), rgba(173,216,230,0.7));
  box-shadow: 0 0 6px #fff, 0 0 10px rgba(255,182,193,0.8), 0 0 14px rgba(173,216,230,0.7);
  animation: sparkle-fly 1.5s ease-out forwards;
}

@keyframes sparkle-fly {
  0%   { transform: translate(0,0) scale(1);   opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
}

#navbar {
  margin: 0;
  padding: 0;
  color: #361d01;
  font-weight: 300;
  font-variant: small-caps;
}

#navbar ul.titles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#navbar a {
  color: #361d01;
  text-decoration: none;
  font-size: 20px;
}

#navbar a:hover {
  opacity: 0.6;
}

.nav-link {
  position: relative;
  padding: 0.45rem 0.9rem;
  font-family: "Avenir Next", sans-serif;
  font-weight: 300;
  font-variant: small-caps;
  color: #361d01;
  text-decoration: none;
  z-index: 1;
  transition: transform 0.2s ease-out;
  list-style: none;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.6);
  z-index: -1;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 192, 203, 0.65),
    rgba(173, 216, 230, 0.45),
    rgba(255, 255, 255, 0.2));
  box-shadow:
    0 0 12px rgba(255, 182, 193, 0.45),
    0 0 18px rgba(173, 216, 230, 0.35);
  transition:
    opacity 0.25s ease-out,
    transform 0.25s cubic-bezier(.3,1.4,.6,1);
}

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link.current::before {
  opacity: 1;
  transform: scale(1);
  box-shadow:
    0 0 14px rgba(255, 182, 193, 0.55),
    0 0 22px rgba(173, 216, 230, 0.45);
  animation: bubble-pulse 3.5s ease-in-out infinite;
}

@keyframes bubble-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 12px rgba(255, 182, 193, 0.45),
      0 0 18px rgba(173, 216, 230, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 0 18px rgba(255, 182, 193, 0.65),
      0 0 26px rgba(173, 216, 230, 0.55);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 12px rgba(255, 182, 193, 0.45),
      0 0 18px rgba(173, 216, 230, 0.35);
  }
}

/* =====================
   CONTENT
   ===================== */

.logo {
	display:flex;
	position: absolute;
	left:0;
	top:-10px;
}

.logo img {
    width:100px;
    height:auto;
}

.logo img:hover {
  opacity: 0.7;
}



.content {
  clear: both;
  margin-top: 30px;
}

.content h2 {
  clear: both;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.1;
  padding-top: 50px;
  padding-bottom: 30px;
  margin-top: 0;
  margin-bottom: 0;
  color: #361d01;
  text-align:center;
}

.content h3 {
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 300;
  margin-top: 20px;
  color: #613300;
  text-align:center;
}

.resume {
	clear:both;
}

.resume h2{
	text-align:left;
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0;
    color: #361d01;
}

.resume h3 {
  font-size: clamp(20px, 3vw, 26px);
  margin:0;
  font-weight: 600;
  color: #613300;
  text-align:left;
  float:left;
}

.resume h4 {
  font-size: clamp(13px, 3vw, 17px);
  margin:0;
  font-weight: 300;
  color: #613300;
  text-align:left;
  width:70%;
  clear:both;
}
.resume h5 {
  font-size: clamp(13px, 3vw, 17px);
  margin:0;
  font-weight: 300;
  color: #613300;
  text-align:right;
}

.resume a {
  color: #361d01;
  text-decoration: none;
  font-size: clamp(13px, 3vw, 17px);
  font-weight: 500;
}

.previous h3{
    font-size: clamp(20px, 3vw, 26px);
    margin:0;
    font-weight: 600;
    color: #613300;
    text-align:right;
    float:right;
}

.previous a {
  color: #361d01;
  text-decoration: none;
  font-size: clamp(20px, 3vw, 26ßpx);
  font-weight: 500;
}



/* =====================
   FOOTER
   ===================== */

#main-footer {
  clear: both;
  color: #361d01;
  text-align: center;
  padding: 20px;
  margin-bottom: 0;
  margin-top: 40px;
}

.fa {
  padding: 10px;
  font-size: 30px;
  width: auto;
  text-align: center;
  text-decoration: none;
  color: #361d01;
  background: none;
}

.fa:hover {
  opacity: 0.7;
}

.tiktok {
  color: #361d01;
  padding: 10px;
  font-size: 30px;
  text-decoration: none;
}

.tiktok:hover {
  opacity: 0.7;
}

/* =====================
   INDEX PAGE BOXES
   ===================== */

.row {
  border: solid #361d01;
  border-width: 5px 10px 5px 5px;
  border-radius: 20px;
  font-weight: 300;
  margin: 0;
  padding: 0 10px;
  overflow: hidden;
}

.row img {
  margin: 0;
  padding-top: 40px;
}

.row h2 {
  font-size: clamp(30px, 5vw, 50px);
  margin: 0;
  padding-top: 10px;
  line-height: 1.1;
}

.row h3 {
  font-size: clamp(14px, 2vw, 20px);
  margin: 0;
  padding-bottom: 20px;
  padding-left: 5px;
}

.lefthalf {
  width: 48%;
  float: left;
  min-height: 150px;
  border: solid #361d01;
  border-width: 5px 10px 5px 5px;
  border-radius: 20px;
  font-weight: 300;
  margin-top: 30px;
  padding: 0 10px;
}

.lefthalf h2 {
  font-size: clamp(30px, 5vw, 50px);
  padding-left: 5px;
  margin: 0;
  padding-top: 10px;
}

.lefthalf h3 {
  font-size: clamp(14px, 2vw, 20px);
  margin: 0;
  padding-left: 5px;
  padding-bottom: 15px;
}

.righthalf {
  width: 48%;
  float: right;
  min-height: 150px;
  border: solid #361d01;
  border-width: 5px 10px 5px 5px;
  border-radius: 20px;
  font-weight: 300;
  margin-top: 30px;
  padding: 0 10px;
}

.righthalf h2 {
  font-size: clamp(30px, 5vw, 50px);
  padding-left: 5px;
  margin: 0;
  padding-top: 10px;
}

.righthalf h3 {
  font-size: clamp(14px, 2vw, 20px);
  padding-left: 5px;
  margin: 0;
  padding-bottom: 15px;
}

/* clearfix */
.content::after,
.container::after {
  content: "";
  clear: both;
  display: table;
}

.intro {
  font-size: clamp(18px, 2.5vw, 28px);
  color: #361d01;
  line-height: 1.6;
  margin-top: 30px;
}

.bio {
  padding: 0;
  margin-top: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.bio img {
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  max-width: 100%;
  height: auto;
}

/* =====================
   PORTFOLIO GALLERIES
   ===================== */

.galleries {
  clear: both;
  margin: 0;
}

.galleries::after,
.toplayer::after,
.bttmlayer::after {
  content: "";
  clear: both;
  display: table;
}

.leftrow {
  width: 48%;
  float: left;
  border-radius: 20px;
  margin-top: 30px;
}

.leftrow img {
  border-radius: 20px;
  width: 100%;
  display: block;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.leftrow img:hover {
  opacity: 0.7;
  transform: translateY(-8px);
}

.leftrow h3 {
  text-align: center;
  font-size: 18px;
  font-weight: 300;
  color: #613300;
  margin-top: 10px;
}

.rightrow {
  width: 48%;
  float: right;
  border-radius: 20px;
  margin-top: 30px;
}

.rightrow img {
  border-radius: 20px;
  width: 100%;
  display: block;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.rightrow img:hover {
  opacity: 0.7;
  transform: translateY(-8px);
}

.rightrow h3 {
  text-align: center;
  font-size: 18px;
  font-weight: 300;
  color: #613300;
  margin-top: 10px;
}

/* =====================
   GALLERY PHOTO GRIDS
   ===================== */

.portfolio {
  margin-top: 20px;
  text-align:center;
}

.portfolio h2 {
  font-size: clamp(36px, 6vw, 60px);
  color: #361d01;
  padding-top: 20px;
  padding-bottom: 10px;
  margin: 0;
}

.portfolio h3 {
  font-size: clamp(18px, 2.5vw, 20px);
  font-weight: 300;
  color: #361d01;
  padding-top: 20px;
  padding-bottom: 10px;
  margin: 0;
}

.bulletin {
  clear: both;
  margin-top: 10px;
  padding: 0;
}

.bulletin::after {
  content: "";
  clear: both;
  display: table;
}

.column {
  float: left;
  width: 33.33%;
  padding: 2px;
}

.halfcolumn {
  float: left;
  width: 66.66%;
  padding: 2px;
}

.full {
  float: left;
  width: 50%;
  padding: 2px;
}

.total {
  float: left;
  width: 100%;
  padding: 2px;
}

.column img,
.halfcolumn img,
.full img,
.total img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

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

@media (max-width: 768px) {
  body {
    width: 94%;
  }

  .main-header {
    justify-content: center;
    margin-bottom: 24px;
  }
  
  .bulletin {
	margin-top:0px;
  }
  
  .column, 
  .halfcolumn,
  .total,
  .full {
	margin-top:5px;
  }

  #navbar ul.titles {
    justify-content: center;
    gap: 0.2rem;
  }

  #navbar a {
    font-size: 16px;
  }

  .nav-link {
    padding: 0.35rem 0.6rem;
  }

  .lefthalf,
  .righthalf {
    width: 100%;
    float: none;
    margin-top: 20px;
  }

  .leftrow,
  .rightrow {
    width: 100%;
    float: none;
    margin-top: 20px;
  }

  .bio img {
    width: 100% !important;
  }
  
  .logo img {
	  width:70px;
  }
  
  .logo {
  	top:5px;
  }

  .column {
    width: 100%;
  }

  .halfcolumn {
    width: 100%;
  }

  .full {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .column {
    width: 100%;
  }

  #navbar a {
    font-size: 14px;
  }

  .nav-link {
    padding: 0.3rem 0.5rem;
  }
}

/* =====================
   CAROUSEL
   ===================== */

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  padding-top:20px;
  margin-top: 40px;
  margin-bottom: 10px;
  /* extend slightly beyond container to feel edge-to-edge */
  margin-left: -2.5%;
  width: calc(100% + 5%);
}

.carousel-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  /* no wrap — single row */
  flex-wrap: nowrap;
}

.carousel-pane {
  flex: 0 0 340px;
  height: 450px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-pane:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(54, 29, 1, 0.18);
}

/* Frosted glass strip at bottom */
.pane-frost {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 18px;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 192, 203, 0.65),
    rgba(173, 216, 230, 0.45),
    rgba(255, 255, 255, 0.2));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.35);
}

.pane-title {
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #361d01;
  line-height: 1.1;
}

.pane-sub {
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #613300;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .carousel-pane {
    flex: 0 0 260px;
    height: 360px;
  }
  .carousel-viewport {
    margin-left: -3%;
    width: calc(100% + 6%);
  }
}
