/* Fonts*/
/* @import url("https://fonts.googleapis.com/css2?family=Londrina+Outline&family=Londrina+Shadow&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Londrina+Outline&family=Londrina+Shadow&family=Londrina+Solid:wght@100;300;400;900&display=swap"); */

/* Base & Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #fbfaf6;
  color: #141414;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* Accessible focus ring */
:focus-visible {
  outline: 3px solid #1e40af;
  outline-offset: 3px;
}

/* Global tap target baseline */
a,
button {
  min-height: 44px;
  min-width: 44px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Font Utility Classes */
.londrina-shadow-regular {
  font-family: "Londrina Shadow", sans-serif;
  font-weight: 400;
}
.londrina-outline,
.londrina-outline-regular {
  font-family: "Londrina Outline", sans-serif;
  font-weight: 400;
}
.londrina-solid-thin {
  font-family: "Londrina Solid", sans-serif;
  font-weight: 100;
}
.londrina-solid-light {
  font-family: "Londrina Solid", sans-serif;
  font-weight: 300;
}
.londrina-solid-regular {
  font-family: "Londrina Solid", sans-serif;
  font-weight: 400;
}
.londrina-solid-black {
  font-family: "Londrina Solid", sans-serif;
  font-weight: 900;
}

/* Typography */
p,
h2,
h3 {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
p {
  font-weight: 400;
  line-height: 1.6;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}
h2 {
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
h3 {
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.25;
  margin: 0.25rem 0 0.25rem;
}

main {
  opacity: 0; /* Ensures the content is hidden before the animation starts */
  animation-name: fadeInAnimation;
  animation-duration: 0.5s; /* Duration of the fade-in effect */
  animation-timing-function: ease-in; /* Speed curve of the animation */
  animation-fill-mode: forwards; /* Ensures the final state (opacity: 1) is maintained after the animation ends */
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOutAnimation {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Layout Helpers */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(8px, 2vw, 20px);
}

/* Navbar */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  margin: 0;
  padding-block: 10px;
  background: rgba(251, 250, 246, 0.772);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.039);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 250, 246, 0.3);
}

nav.navbar:hover,
nav.navbar:focus-within {
  background: rgba(251, 250, 246, 1);
  transition: background-color 0.3s ease;
}

.navbar .container {
  flex-wrap: wrap;
}

.logo-left {
  display: flex;
  align-items: center;
}

.logo-left .logo {
  color: #000;
  font-family: "Londrina Shadow", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.85;
  text-decoration: none;
}

.logo-left .logo:hover {
  font-family: "Londrina Solid", sans-serif;
  animation-name: fadeInAnimation;
  animation-duration: 0.1s; /* Duration of the fade-in effect */
  animation-timing-function: ease-in; /* Speed curve of the animation */
  animation-fill-mode: forwards; /* Ensures the final state (opacity: 1) is maintained after the animation ends */
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(6px, 1.5vw, 14px);
  margin-left: auto;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

nav li {
  transition: color 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease;
  display: inline-block;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
}

nav a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-size: clamp(0.95rem, 1.2vw, 1rem);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  line-height: 24px;
}

nav a {
  transition: color 0.4s ease, background-color 0.4s ease,
    border-color 0.4s ease;
}

nav a:hover,
nav a:focus-visible {
  color: #000;
  background-color: #f1f0eb;
}
/* Hamburger Menu */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
  color: #141414;
  line-height: 0;
}

.nav-toggle:focus-visible {
  outline: 3px solid #1e40af;
  border-radius: 6px;
}

/* Active nav state */
.nav-active {
  background-color: #f1f0eb;
  color: #000 !important;
}

.menu-icon {
  width: 2em;
  height: 2em;
  transition: transform 0.3s ease;
  transform-origin: center;
}

/* Mobile layout */
@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  /* collapse nav by default */
  .navbar .nav {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    padding-top: 10px;
  }

  .navbar .nav li {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 0;
  }

  /* open state */
  .navbar.is-open .nav {
    max-height: 240px;
    opacity: 1;
    pointer-events: auto;
  }

  .navbar.is-open .menu-icon {
    transform: rotate(180deg);
  }

  .navbar .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .nav {
    justify-content: center;
    margin-left: 0;
    gap: 4px;
  }
}

/* Content & Sections */
.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content .container {
  flex-direction: column;
  align-items: center;
}

/* About */
.about-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 24px);
  margin-bottom: clamp(80px, 14vh, 250px);
}

.about-profile-name {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.about-profile-img {
  position: relative;
  flex: 0 0 auto;
  width: clamp(140px, 20vw, 200px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background-color: #f1f0eb;
}

.about-profile-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Content next to image */
.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.about-text p {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
}

.about-text button {
  align-self: flex-start;
}

/* Stack vertically on smaller screens */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text {
    align-items: center;
  }

  .about-text button {
    align-self: center;
  }
}

/* Buttons */
.lets-connect-button,
.hero-buttons button {
  font-size: clamp(0.95rem, 1.2vw, 1rem);
  font-weight: 600;
  font-family: "Inter", sans-serif;
  /* background-color: #f1f0eb; */
  border-radius: 8px;
  padding: 12px 26px;
  line-height: 20px;
  border: 1px solid #000;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  cursor: pointer;
}

.lets-connect-button a,
.hero-buttons a {
  text-decoration: none;
  color: #141414;
  font-weight: 600;
}

.lets-connect-button {
  background-color: #dff2e9;
}
.lets-connect-button:hover {
  background-color: #d5f0e3;
}
.lets-connect-button:focus {
  background-color: #d5f0e3;
}
.lets-connect-button:active {
  background-color: #e0f4ea;
}
.work-button {
  background-color: #e5ecfc;
}
.work-button:hover {
  background-color: #dfe8ff;
}
.work-button:focus {
  background-color: #dfe8ff;
  border-color: #000;
}
.work-button:active {
  background-color: #d6def6;
}
button:disabled {
  background-color: #f4f3ee;
  border-color: #6b6b6b;
  color: #6b6b6b;
}
.resume-button {
  background-color: #f2e7df;
}
.resume-button:hover {
  background-color: #f4e5db;
}
.resume-button:focus {
  background-color: #f4e5db;
}
.resume-button:active {
  background-color: #edddd2;
}

/* Hero */
.hero {
  margin-block: clamp(4vh, 8vh, 10vh);
  padding-block: clamp(2vh, 4vh, 6vh);
  width: 100%;
}

.hero-container {
  width: 100%;
  max-width: 1100px;
  padding-inline: clamp(12px, 3vw, 24px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(12px, 3vw, 24px);
  position: relative;
}

.hero-content {
  max-width: 720px;
  z-index: 1;
}

.hero-name {
  margin: 0;
  font-family: "Londrina Shadow", sans-serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 8vw, 5rem);
  line-height: 0.95;
}

.hero-description {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-description p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin: 0.5rem 0 1rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-logo {
  justify-self: end;
  align-self: start;
}

.hero-logo img {
  width: clamp(120px, 22vw, 220px);
  height: auto;
}

@media (max-width: 800px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-logo {
    order: -1;
    justify-self: center;
    margin-bottom: 1rem;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* Featured Projects */

a.featured-project {
  text-decoration: none;
}
.featured-projects {
  margin-bottom: clamp(80px, 14vh, 250px);
  position: relative;
  width: 100%;
}

.featured-projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(12px, 2.2vw, 20px);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px clamp(12px, 3vw, 24px);
}

.featured-project {
  margin: 0;
  overflow: hidden;
  padding: 15px;
  border-radius: 8px;
  background: #f1f0eb;
  text-align: start;
}

.featured-project img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 0;
  border-radius: 6px;
  transition: transform 0.5s ease;
  transform-origin: center center;
}

/* Hover zoom-in */
.featured-project:hover img {
  transform: scale(1.08);
}

.featured-project h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 10px 0 4px;
}

.featured-project p {
  font-size: clamp(0.95rem, 1.3vw, 1rem);
  line-height: 1.5;
  margin: 8px 0;
  color: #444;
}

.featured-project-placeholder {
  width: 100%;
  height: 180px;
  border-radius: 6px;
  background: #e7e6df;
}

/* Footer */
.site-footer {
  width: 100%;
  background: #efefe5;
  padding: 28px 0;
  position: relative;
}

.footer-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 24px);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.footer-logo {
  width: clamp(90px, 10vw, 120px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.tagline {
  max-width: 48ch;
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1rem);
  line-height: 1.5;
  font-weight: 500;
  color: #171717;
}

.footer-right {
  display: grid;
  grid-template-columns: clamp(90px, 10vw, 120px) auto;
  align-items: center;
  column-gap: clamp(12px, 2vw, 24px);
}

.footer-portrait {
  width: clamp(90px, 10vw, 120px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.footer-nav a {
  display: block;
  text-decoration: none;
  color: #1f1f1f;
  padding: 10px 0;
  border-radius: 6px;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #000;
  background-color: #f1f0eb;
}

/* Footer responsiveness */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 100px 1fr;
    grid-auto-rows: auto;
    row-gap: 20px;
  }
  .footer-right {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .tagline {
    max-width: 38ch;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-left {
    justify-self: center;
  }
  .footer-right {
    grid-template-columns: 1fr;
    row-gap: 12px;
    justify-items: center;
  }
  .footer-nav a {
    padding: 6px 0;
  }
}
