/* ===================== */
/* VARIABLES */
/* ===================== */

:root {
  --color-pink: #fd105e;
  --color-yellow: #f3de2c;
  --color-orange: #f9a620;
  --color-coral: #ff711d;

  --color-bg: #f7ecdf;

  --color-text: #2d2d2d;
  --color-text-light: #6e6e6e;

  --nav-height: 6rem;
  --page-padding: 4rem;
}

@media (max-width: 768px) {
  :root {
    --page-padding: 1.5rem;
  }
}

/* ===================== */
/* BASE */
/* ===================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  background-color: var(--color-bg);

  overflow-x: hidden;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > footer {
  margin-top: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

a,
p {
  font-family: "forma-djr-micro", sans-serif;
}

/* ===================== */
/* NAVBAR */
/* ===================== */

.navbar {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: var(--nav-height);

  padding: 0 var(--page-padding);

  z-index: 2000;

  background: rgba(255, 251, 245, 0.9);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.container-fluid {
  display: flex;

  justify-content: space-between;
  align-items: center;

  padding: 0;
}

/* LOGO */

.brand {
  color: var(--color-pink);

  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;

  font-size: 2.5rem;
}

/* DESKTOP NAV */

.desktop-nav {
  display: flex;

  gap: 2rem;
}

.desktop-nav .nav-link {
  color: var(--color-pink);

  text-decoration: none;

  font-size: 1.3rem;

  transition: color 0.3s ease;
}

.desktop-nav .nav-link:hover {
  color: var(--color-text);
}

/* ===================== */
/* HAMBURGER */
/* ===================== */

.navbar-toggler {
  position: relative;

  z-index: 3000;

  border: none;
  background: transparent;

  padding: 0;

  outline: none;
  box-shadow: none;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none;
  box-shadow: none;
}

.custom-toggler {
  position: relative;

  width: 24px;
  height: 24px;

  display: block;
}

.custom-toggler span {
  position: absolute;

  left: 0;

  width: 24px;
  height: 2px;

  background: var(--color-pink);

  border-radius: 999px;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    top 0.35s ease;
}

/* TOP */

.custom-toggler span:nth-child(1) {
  top: 4px;
}

/* MIDDLE */

.custom-toggler span:nth-child(2) {
  top: 11px;
}

/* BOTTOM */

.custom-toggler span:nth-child(3) {
  top: 18px;
}

/* ACTIVE STATE */

.navbar-toggler.active .custom-toggler span:nth-child(1) {
  top: 11px;

  transform: rotate(45deg);
}

.navbar-toggler.active .custom-toggler span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active .custom-toggler span:nth-child(3) {
  top: 11px;

  transform: rotate(-45deg);
}

/* ===================== */
/* MOBILE MENU */
/* ===================== */

.offcanvas {
  z-index: 1500;

  width: 100vw !important;
  height: 100vh;

  max-width: 100%;

  border: none;

  background: var(--color-bg);

  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.offcanvas-body {
  display: flex;

  flex-direction: column;

  justify-content: center;
  align-items: center;

  gap: 2rem;

  height: 100%;
}

/* MOBILE LINKS */

.mobile-link {
  position: relative;

  z-index: 2001;

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(3rem, 8vw, 6rem);

  font-weight: 400;

  line-height: 0.95;

  letter-spacing: -0.03em;

  color: var(--color-pink);

  text-decoration: none;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.mobile-link:hover {
  color: var(--color-text);

  transform: translateY(-2px);
}

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

h2 {
  color: var(--color-pink);
  font-size: 3rem;
  font-weight: 600;
}

.portfolio_section {
  background-color: var(--color-bg);
  padding: 2rem var(--page-padding) 4rem;
}

@media (min-width: 1200px) {
  .portfolio_section {
    padding-left: 8rem;
    padding-right: 8rem;
  }
}

.card-link {
  position: relative;

  display: block;

  overflow: hidden;

  border-radius: 2rem;

  aspect-ratio: 5/3;
}

.card-link img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;

  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.card-link:hover img {
  transform: scale(1.08);

  filter: brightness(0.9);
}

/* OVERLAY */

.overlay {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: flex-end;

  background: rgba(0, 0, 0, 0);

  opacity: 0;

  transition: 0.4s ease;
}

.overlay h2 {
  margin: 2rem;

  color: white;
}

.card-link:hover .overlay {
  background: rgba(0, 0, 0, 0.3);

  opacity: 1;
}

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

.footer {
  background: rgba(255, 251, 245, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem var(--page-padding);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-linkedin {
  display: flex;
  align-items: center;
  line-height: 0;
}

.footer-linkedin path {
  fill: var(--color-pink);
  transition: fill 0.3s;
}

.footer-linkedin:hover path {
  fill: #b80044;
}

.footer-email {
  font-family: "forma-djr-micro", sans-serif;
  font-size: 1.1rem;
  color: var(--color-pink);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-email:hover {
  color: #b80044;
}

.footer-copy {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-light);
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    text-align: center;
  }
}

html {
  scroll-behavior: smooth;
}

#portfolio {
  scroll-margin-top: 7rem;
}
