/* Global style */

:root {
  --font-heading-home: 'Urbanist', sans-serif;
  --font-heading: 'Noto+Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --text-color: #181716;
  --body-font-size: 17px;
  --body-line-height: 1.5;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  font-weight: 400;
  color: var(--text-color);
  background-color: #A59B8F;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

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;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  top: 0;
  z-index: 999;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.nav-links {
  margin: 0;
  list-style: none;
  display: flex;
  gap: 2rem;
  position: relative;
}

.nav-links li a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -7px; 
  left: 0;
  width: 0;
  height: 2px;
  background-color: black; 
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
  left: 0;
}

.nav-links a.active, .nav-links-mobile li a.active {
  font-weight: 600;
  padding-bottom: 5px;
  border-bottom: 2px solid black; 
}

.nav-links a.active::after {
  content: none;
}

.lang-btn.active {
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
  height: 20px;
  justify-content: space-between;
  position: relative;
  position: fixed; 
  right: 12px; 
  z-index: 1001; 
}

@media (min-width: 768px) {
  .hamburger { 
    right: 36px;
  }
}

@media (min-width: 820px) {
  .hamburger { 
    right: 63px;
  }
}

@media (min-width: 853px) {
  .hamburger { 
    right: 71px;
  }
}

@media (min-width: 912px) {
  .hamburger { 
    right: 108px;
  }
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000000;
  transition: all 0.3s ease;
}

.hamburger.active span {
  background: #E4DFD7; 
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links-mobile {
  margin: 0;
  position: fixed;
  inset: 0;
  width: 100%;
  background: #181716;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  padding: 0;
  display: none;
  gap: 2rem;
  list-style: none;
  transition: opacity 0.3s ease;
  color: #E4DFD7;
  z-index: 998;
  overflow-y: auto;
}

.nav-links-mobile li a {
  font-size: 1.75rem;
}

.nav-links-mobile li a.active {
  border-bottom: 2px solid #E4DFD7;
}

.nav-links-mobile.show {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {opacity:0;}
  to {opacity:1;}
}

.nav-links-mobile .lang-btn {
  font-size: 1.75rem;
  color: #848484;
  text-decoration: none;
}

.nav-links-mobile .lang-btn a {
  font-weight: 600;
  font-size: 1.5rem;
}

.nav-links-mobile .lang-btn a.active {
  color: #E4DFD7;
  border-bottom: none;  
}

@media (max-width: 912px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 430px) {
  .navbar { 
    padding-top: 1.5rem !important; 
    padding-bottom: 1.5rem !important; 
  }
}

.text-muted {
  color: #272727 !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 {
  color: var(--text-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  gap: 1rem;
}

.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-home);
  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;
}

body:has(.hero) main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

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, .proj-link .btn, .contact-form-wrapper .btn {
  background: #181716;
  color: #E4DFD7;
  border: 1px solid black;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding: 0.55rem 1.4rem;
  letter-spacing: 0.5px;
  font-size: 0.95rem;  
  margin: 0.2em 0;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero .btn:active, .proj-link .btn:active, .contact-form-wrapper .btn:active {
  background: #181716;
  color: #E4DFD7;
}

.hero .btn2, .hero .btn2:active, .proj-link .btn2, .proj-link .btn2:active {
  background: #A59B8F;
  color: #181716;
  border: 1px solid #181716;
}

.hero .btn:hover, .proj-link .btn:hover, .contact-form-wrapper .btn:hover {
  transform: translateY(-2px);
}

/* About page */

.about-row {
  justify-content: space-between;
  align-items:center;
}

@media (max-width: 768px) {
  .about-row {
    justify-content: center;
  }
}

.profile-img {
  text-align: center;
}

@media (min-width: 768px) {
  .profile-img {
    text-align: right !important;
  }
}

.profile-img img {
  max-width: 250px; 
  height: auto; 
}

.workflow h3 {
  font-size: clamp(18px, 3vw, 22px);
  letter-spacing: -0.2px;
}

.workflow-item {
  margin-bottom: 2rem;
  height: 100% !important;
}

.tools {
  font-style: italic;
  color: #666;
}

/* Projects page */

.project-filter {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 32px;
}

.filter-btn {
  width: 100%;
  padding: 0.55rem 1.4rem;
  letter-spacing: 0.5px;
  margin: 0.2em 0;
  border: 1.5px solid #181716;
  border-radius: 10px;
  background-color: transparent;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: black;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;       
}

.filter-btn.active {
  color: #E4DFD7;
  border: 1px solid black;
  background: #181716;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;           
  width: 100%;
  height: 100%;
  background-color: #181716;
  z-index: 0;
  transition: left 0.3s ease;
}

.filter-btn span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.filter-btn:hover::before, .filter-btn.active::before {
  left: 0;
}

.filter-btn.active::before {
  background-color: #181716; 
}

.filter-btn:hover span {
  color: #E4DFD7;
}

@media (max-width: 525px) { 
  .filter-btn {
    padding: 8px 10px; 
    font-size: 14px; 
  }
}

.projects h2 {
  font-size: clamp(18px, 3vw, 22px);
  letter-spacing: -0.2px;
}

.project-item {
  margin-bottom: 30px;
}

.project-item a {
  text-decoration: none;
  color: black;
}

.square-wrapper {
  position: relative;
  border-radius: 10px;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.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%;
}

.pr1 {
  background-color: #5C0023;
}

.pr2 {
  background-color: #746E66;
}

.pr3 {
  background-color: #8C7E72;
}

.pr4 {
  background-color: #413D36;
}

.pr5 {
  background-color: #61564A;
}

.back-to-top {
  position: fixed;
  bottom: 160px;
  right: 12px;
  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: 997;
  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 (min-width: 768px) {
  .back-to-top {
    right: 30px;
  }
}

@media (min-width: 1024px) {
  .back-to-top {
    right: 35px;
  }
}

@media (min-width: 1200px) {
  .back-to-top {
    right: 66px;
  }
}

/* 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;
}

.scrolling-text-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #808080;
}

.scrolling-text-container p {
  margin-top: revert !important;
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-text 10s linear infinite;
}

.scrolling-text span {
  display: inline-block;
  padding-right: 4rem;
  font-size: 1.3rem;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.badge {
  font-size: 0.80rem;
  padding: 0.5em 0.75em;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  background-color: #c4c2bc;
  color: var(--text-color);
  display: inline-block;
}

video {
  border-radius: 10px;
}

.images img {
  border-radius: 10px;
}

.key-features-grid {
  max-width: 100%;
  margin: 0 auto;
}

.icon-wrapper {
  display: flex;
  justify-content: center; 
  align-items: center;   
  font-size: 2rem;         
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 1rem;
}

.grid-item {
  background-color: #c4c2bc;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.grid-item i {
  font-size: 1.5rem;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr); 
  }

  .grid-item {
    font-size: 0.8rem;
    padding: 10px;
  }

  .grid-item i {
    font-size: 1.1rem;
  }
}

.rounded-pill {
  border: 1px solid #181716;
}

.rounded-pill:hover {
  background-color: #181716;
  color: #EADFDF;
}

.text-dark {
  text-decoration: underline;
}

/* Contact page */

.contact-form-wrapper {
  margin: 0 auto;
}

.contact-form-wrapper label {
  display: block;
  font-weight: 550;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

input.form-control, textarea.form-control {
  width: 100%;
  padding: 10px 0;
  background-color: #A59B8F;
  border: none;
  border-bottom: 1.5px solid black;
  border-radius: 0;
  color: var(--text-color);
}

input.form-control:focus, textarea.form-control:focus {
  background-color: #A59B8F;
  border-bottom-color: black;
  box-shadow: none !important;
  outline: none !important;
}

input.form-control:invalid, textarea.form-control:invalid {
  box-shadow: none !important;
  outline: none !important;
}
