/* Global style */

:root {
  --font-heading: 'Urbanist', sans-serif;
  --font-body: 'Inter', sans-serif;
  --text-color: #1c1c1e;
  --heading-color: #000;
  --body-font-size: 17px;
  --body-line-height: 1.5;
  --body-letter-spacing: -0.022em;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  font-weight: 400;
  letter-spacing: var(--body-letter-spacing);
  color: var(--text-color);
  background-color: #b8ad9b;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(28px, 6vw, 36px);
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(24px, 5vw, 30px);
  letter-spacing: -0.4px;
}

h3 {
  font-size: clamp(20px, 4vw, 24px);
  letter-spacing: -0.3px;
}

h4 {
  font-size: clamp(18px, 3vw, 22px);
  letter-spacing: -0.2px;
}

.nav-link {
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--text-color);
  padding: 0.6rem 1rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  text-decoration: none;
}

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-link.active {
  font-weight: 600;
  color: var(--text-color) !important;
  border-bottom: 1px solid #1c1c1e;
}

.lang-btn {
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
}

.lang-btn.active {
  font-weight: 600;
  color: var(--text-color) !important;
}

.offcanvas {
  background-color: #b8ad9b;
}

.offcanvas-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.btn-close {
  font-size: 1.5rem;
  color: #1c1c1e !important;
}

main {
  flex: 1;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  padding: 2rem 0;
  color: var(--text-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  gap: 1rem;
}

.footer-content>div {
  display: flex;
  align-items: center;
}

.footer-icons a {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-left: 1rem;
}

/* Homepage */

.hero {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  width: min(90%, 1000px);
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0;
}

.hero-left {
  flex: 1;
  text-align: left;
}

.hero-left h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
}

.hero-right {
  flex: 1;
  text-align: right;
}

.hero-right p {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0.2em 0;
}

/* Only when hero exists */

body:has(.hero) main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

body:has(.hero) header,
body:has(.hero) footer {
  position: absolute;
  width: 100%;
  z-index: 10;
}

body:has(.hero) footer {
  bottom: 0;
}
    
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }  
  .hero-left, .hero-right {
    text-align: center;
  }
}

.hero .btn {
  background: #b8ad9b;
  border: 1px solid black;
  padding: 0.75rem 1.5rem;
  margin: 0.2em 0;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero .btn:hover {
  background: #b8ad9b;
  transform: scale(1.05);
}

/* About page */

.text-muted {
  color: #303335 !important;
}

.rounded-circle {
  width: 300px; 
  height: 300px; 
  object-fit: cover
}

@media (max-width: 1024px) {
  .rounded-circle {
    width: 230px;
    height: 230px;
  }
}

@media (max-width: 750px) {
  .profile-img {
    margin-top: 5rem;
  }
}

.lead {
  max-width: 720px;
}

.info h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
}

@media (max-width: 767px){
  .no-info-mobile {
    display: none;
  }
}

/* Projects page */

.project-filter {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 32px;
}

.filter-btn {
  border: none;
  background: none;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.2px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-btn.active {
  color: black !important;
  border-color: black;
  cursor: default;
}

.project-item {
  text-align: center;
  margin-bottom: 30px;
}

.project-item a {
  text-decoration: none;
  color: black;
}

.project-item img:hover {
  transform: scale(1.015);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#project-list h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  border-bottom: 1px solid #1c1c1e;
  padding-bottom: 0.25rem;
}

.project-description-mobile {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.square-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background-color: #696b54;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.pr1 {
  background-color: #5C0023;
}

.pr2 {
  background-color: #696b54;
}

.pr4 {
  background-color: #2B2D42;
}

.pr7 {
  background-color: #3A3A3A;
}

.pr8 {
  background-color: #9d8b79;
}

.pr9 {
  background-color: #705e4b;
}

.pr10 {
  background-color: #696b54;
}

.project-item:hover .square-wrapper {
  transform: scale(1.05);
}

.square-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; 
  padding: 10%;
}

.square-wrapper img.cover-image {
  object-fit: cover;
  padding: 0; 
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 30px;
  background: #322a22; 
  color: #C5C3BD;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px); 
}

.back-to-top i {
  font-size: 20px;
}

.back-to-top:hover {
  background-color: #322a22;
  transform: translateY(-2px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 576px) {
  .back-to-top {
    bottom: 115px;
  }
}

@media (min-width: 768px) {
  .back-to-top {
    bottom: 100px;
  }
}

/* Specific project page */

.work-subtitle {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
}

.work-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.2;
  max-width: 90%;
  margin-left: 0;
}

.highlight-line {
  border-left: 3px solid #696B54;;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.highlight {
  color: #20231A; /* #007aff */
  font-weight: 600; 
}

.badge {
  font-size: 0.85rem;
  padding: 0.5em 0.75em;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 1rem;
  background-color: #C5C3BD;
  color: #333;
  display: inline-block;
}

.btn-dark {
  background-color: #111;
  border-color: #111;
}

.btn-dark:hover {
  background-color: #000;
  border-color: #000;
}

.btn-outline-dark:hover {
  background-color: #111;
  color: #fff;
}

.no-volume::-webkit-media-controls-volume-slider,
.no-volume::-webkit-media-controls-mute-button {
  display: none !important;
}

.no-volume::-moz-media-controls-volume-control {
  display: none !important;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Contact page style */

.contact-form-wrapper {
  margin: 0 auto;
}

.contact-form-wrapper label {
  display: block;
  font-weight: 550;
  font-size: 15px;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
  color: #20231A;
}

input.form-control,
textarea.form-control {
  width: 100%;
  font-size: 16px;
  padding: 10px 0;
  background-color: #B8AD9B;
  border: none;
  border-bottom: 1.5px solid #20231A;
  border-radius: 0;
  box-shadow: none;
  transition: border-color 0.3s ease;
  color: var(--text-color);
}

input.form-control:focus,
textarea.form-control:focus {
  background-color: #B8AD9B;
  border-bottom-color: #20231A; /* #007aff; */
  box-shadow: none !important;
  outline: none !important;
}

input.form-control:invalid,
textarea.form-control:invalid {
  box-shadow: none !important;
  outline: none !important;
}

.contact-form-wrapper .btn-outline-dark {
  background-color: #111;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
}

.contact-form-wrapper .btn:hover {
  background-color: black;
}

