/* Global */
html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Sections (ONE source of truth)
   Match this with: body data-bs-offset="90"
*/
.section {
  scroll-margin-top: 90px; /* navbar height / ScrollSpy offset */
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Header */
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 3rem;
  text-decoration: none;
}

@media (min-width: 48em) {
  .site-title {
    float: left;
  }
}

.nav-link {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.8) !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #FF9899 !important;
}

#header-nav .nav-link.active {
  color: #FF9899 !important;
  font-weight: 700; /* keep consistent */
}

/* Social Nav */
.social-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.social-nav .nav-link {
  padding: 0 0.5rem;
  font-size: 1.1rem;
  line-height: 2.5rem;
}

/* Hero */
.intro-title {
  font-weight: 800;
}

@keyframes animateWave {
  from { transform: scale(1, 0); }
  to { transform: scale(1, 1); }
}

.wave-bg {
  display: block;
  height: 220px;
  width: 100%;
  min-width: 600px;
  transform-origin: top;
  animation: animateWave 2000ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
  background: url("../assets/wave-bg.svg") center no-repeat;
}

img.avatar {
  border-radius: 30px;
}

/* Masonry Grid */
.grid::after {
  content: "";
  display: block;
  clear: both;
}

.grid-sizer,
.grid-item {
  width: 100%;
}

.grid-item {
  padding-bottom: 12px;
}

@media (min-width: 48em) {
  .grid-sizer,
  .grid-item {
    width: 25%;
  }

  .grid-item {
    float: left;
    padding: 6px;
  }
}

.grid-item img {
  display: block;
  width: 100%;
}

/* Portfolio */
.portfolio-section .container {
  padding: 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.portfolio-item figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(100%);
  transition: transform 0.35s;
}

.portfolio-item:hover figcaption {
  transform: translateY(0);
}

.portfolio-item figcaption h4 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 3px;
  color: #222;
}

.portfolio-item figcaption p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #444;
}

/* Footer */
footer a:not(.nav-link) {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

/* Utilities */
.container-narrow {
  max-width: 1024px;
  margin: 0 auto;
}

.text-small {
  font-size: 0.875rem;
}

.text-uppercase {
  letter-spacing: 0.05em;
}

.hover-effect {
  color: #fff;
  transition: transform 0.18s ease-in-out;
}

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

/* Marker */
.marker {
  position: relative;
  display: inline-block;
}

.marker::after {
  content: "";
  width: 125px;
  height: 30px;
  position: absolute;
  bottom: -25px;
  right: -30px;
  background: url("../assets/marker.svg") no-repeat;
}

.marker-center::after {
  left: 50%;
  margin-left: -60px;
}

@media (max-width: 575.98px) {
  .marker::after {
    bottom: -30px;
    left: 50%;
    margin-left: -60px;
  }
}

/* Buttons */
.btn-custom-color {
  background-color: #FF9899;
  border-color: #FF9899;
  color: #fff !important;
}

.btn-custom-color:hover {
  background-color: #FFA69E;
  border-color: #FFA69E;
}

/* Layout helpers */
.small-text {
  font-size: 90%;
}

.row-margin {
  margin-bottom: 20px;
}

/* Sections */
#Skills {
  padding: 3rem 0 1rem;
}

#Portfolio {
  padding: 1rem 0;
}
