.cal-sans-regular {
  font-family: "Cal Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background-color: rgba(223, 235, 215, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(80px); 
  }
  to {
    opacity: 1;
    transform: translateY(0);  
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1003;
  mix-blend-mode: overlay;
  opacity: 0.7;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}.navbar-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 85px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  box-sizing: border-box;
  z-index: 1002;
  background: transparent;
}

.grad-blur {
  position: absolute;
  inset: 0;
  height: 130%;
  pointer-events: none;
  z-index: -1;
}

.grad-blur::before,
.grad-blur::after,
.grad-blur > div {
  position: absolute;
  inset: 0;
}

.grad-blur::before {
  content: "";
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  mask: linear-gradient(0deg, rgba(0,0,0,0) 0, #000 12.5%, #000 25%, rgba(0,0,0,0) 37.5%);
  -webkit-mask: linear-gradient(0deg, rgba(0,0,0,0) 0, #000 12.5%, #000 25%, rgba(0,0,0,0) 37.5%);
  z-index: 1;
}
.grad-blur > div:nth-of-type(1) {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  mask-image: linear-gradient(0deg, rgba(0,0,0,0) 12.5%, #000 25%, #000 37.5%, rgba(0,0,0,0) 50%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 12.5%, #000 25%, #000 37.5%, rgba(0,0,0,0) 50%);
  z-index: 2;
}
.grad-blur > div:nth-of-type(2) {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask-image: linear-gradient(0deg, rgba(0,0,0,0) 25%, #000 37.5%, #000 50%, rgba(0,0,0,0) 62.5%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 25%, #000 37.5%, #000 50%, rgba(0,0,0,0) 62.5%);
  z-index: 3;
}
.grad-blur > div:nth-of-type(3) {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask-image: linear-gradient(0deg, rgba(0,0,0,0) 37.5%, #000 50%, #000 62.5%, rgba(0,0,0,0) 75%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 37.5%, #000 50%, #000 62.5%, rgba(0,0,0,0) 75%);
  z-index: 4;
}
.grad-blur > div:nth-of-type(4) {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(0deg, rgba(0,0,0,0) 50%, #000 62.5%, #000 75%, rgba(0,0,0,0) 87.5%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 50%, #000 62.5%, #000 75%, rgba(0,0,0,0) 87.5%);
  z-index: 5;
}
.grad-blur > div:nth-of-type(5) {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask-image: linear-gradient(0deg, rgba(0,0,0,0) 62.5%, #000 75%, #000 87.5%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 62.5%, #000 75%, #000 87.5%, rgba(0,0,0,0));
  z-index: 6;
}
.grad-blur > div:nth-of-type(6) {
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  mask-image: linear-gradient(0deg, rgba(0,0,0,0) 75%, #000 87.5%, #000);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 75%, #000 87.5%, #000);
  z-index: 7;
}
.grad-blur::after {
  content: "";
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
  mask-image: linear-gradient(0deg, rgba(0,0,0,0) 87.5%, #000);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 87.5%, #000);
  z-index: 8;
}

.navbar-logo a {
  color: rgba(34, 51, 27, 1);
  font-family: "MuseoModerno", "Cal Sans", sans-serif;
  font-size: 1.4rem;
  text-decoration: none;
}

.navbar-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.navbar-links a {
  color: rgba(34, 51, 27, 1);
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-links a:hover {
  color: #ffffff;
  background-color: rgba(128, 72, 153, 1);
  box-shadow: 8px 8px 40px rgba(0, 0, 0, 0.5), -8px -8px 30px rgba(255, 255, 255, 1)
}

.lang-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;   
  padding: 3px;
  margin-left: 8px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.08);  
}

.lang-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.lang-toggle[data-lang='en'] .lang-indicator {
  transform: translateX(100%);
}

.lang-toggle button {
  position: relative;     
  z-index: 1;
  padding: 6px 16px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(34, 51, 27, 1);
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-toggle button.active {
  color: rgb(128, 72, 153);  
}

.lang-toggle button:focus-visible {
  outline: 2px solid rgb(128, 72, 153);
  outline-offset: 2px;
}.hero-container {
  min-height: calc(100vh - 85px);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.hero-content {
  max-width: 800px;
  padding-bottom: 85px;
}

.hero-title, .hero-subtitle{
    opacity: 0;
    animation: fadeIn 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  font-size: 5rem; 
  color: rgba(34, 51, 27, 1);   
  margin: 0 0 15px 0;
  animation-delay: 0.1s;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 400;
  color: rgba(82, 90, 78, 1);   
  margin: 0;
  animation-delay: 0.3s;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
}.about-container {
    min-height: calc(100vh - 85px);
    width: 100%;
    padding: 100px 50px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.about-wrapper {
    max-width: 1100px;
    width: 100%;
}

.about-heading {
    font-size: 5rem;
    color: rgba(34, 51, 27, 1);
    margin: 0 0 10px 0;
}

.about-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(30, 41, 35, 0.5);
    margin-bottom: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.about-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}

.about-bio {
    font-size: 1.75rem;
    line-height: 1.6;
    color: rgba(82, 90, 78, 1);
    margin-bottom: 40px;
}

.about-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: end;
}

.contact-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(34, 51, 27, 1);
    margin: 0;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-text, .contact-link {
    font-size: 1rem;
    color: rgba(82, 90, 78, 1);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-in-line{
    font-size: 1.2rem;
    color: rgba(34, 51, 27, 1);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: end;
    gap: 6px;
}

.link-in-line:hover{
    text-decoration: underline;
}

.contact-link:hover {
    color: rgba(34, 51, 27, 1);
    text-decoration: underline;
}

.contact-separator {
    color: #7a8c82;
    font-size: 0.9rem;
}

.about-right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 1em;
}

.about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(82, 90, 78, 1);
    margin: 0;
}

@media (max-width: 768px) {
    .about-container {
        padding: 60px 20px;
    }

    .about-heading {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    padding: 64px 0;
}

.project-card.reverse .project-info {
    order: 2;
}

.project-card.reverse .project-media,
.project-card.reverse .project-media-gallery {
    order: 1;
}

.project-meta {
    margin: 0 0 12px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(34, 51, 27, 0.5);
}

.project-title {
    margin: 0 0 20px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.25;
    color: rgba(34, 51, 27, 1);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.project-tag {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(128, 72, 153);
    background: rgba(128, 72, 153, 0.12);
}

.project-tag.muted {
    color: rgba(34, 51, 27, 0.7);
    background: rgba(34, 51, 27, 0.08);
}

.project-desc {
    margin: 0 0 28px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(34, 51, 27, 0.75);
}

.project-link {
    display: inline-flex;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(34, 51, 27, 1);
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: rgb(128, 72, 153);
    transform: translateX(6px);
}

.project-media {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(192, 214, 190, 1), rgba(128, 72, 153, 0.35));
}

.project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .project-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 0;
    }

    .project-card.reverse .project-info,
    .project-card.reverse .project-media,
    .project-card.reverse .project-media-gallery {
        order: 0;
    }
}.gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(192, 214, 190, 1), rgba(128, 72, 153, 0.35));
    z-index: 1001;
}

.gallery-stage img,
.gallery-stage iframe,
.gallery-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.gallery-stage video {
    object-fit: contain;
    background: #000;
}

.gallery-play {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.gallery-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-play-icon svg {
    display: block;
    margin-right: 2px;
}

.gallery-play:hover .gallery-play-icon {
    background: rgb(128, 72, 153);
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}

.gallery-thumbs li {
    flex: 0 0 90px;
}

.gallery-thumbs button {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.gallery-thumbs button:hover {
    opacity: 1;
}

.gallery-thumbs button.active {
    opacity: 1;
    border-color: rgb(128, 72, 153);
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-badge {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
}

.thumb-badge svg {
    display: block;
    margin-left: 1px;
}.projects {
    min-height: calc(100vh - 85px);
    width: 100%;
    padding: 100px 50px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.projects-wrapper {
  max-width: 1100px;
  width: 100%;
}

.projects-heading {
  margin: 0 0 8px;
  font-size: 5rem;
  color: rgba(34, 51, 27, 1);
}

@media (max-width: 900px) {
  .projects {
    padding: 0 20px;
  }
}.skills {
  width: 100%;
  padding: 100px 50px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  scroll-margin-top: 90px;
}

.skills-wrapper {
  max-width: 1100px;
  width: 100%;
}

.skills-heading {
  margin: 0 0 10px;
  font-size: 5rem;
  color: rgba(34, 51, 27, 1);
}

.skills-divider {
  width: 100%;
  height: 1px;
  margin-bottom: 40px;
  background-color: rgba(30, 41, 35, 0.5);
}

.skills-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start; 
}

.skills-group-title {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(34, 51, 27, 1);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  border-radius: 12px;
  background: rgba(34, 51, 27, 0.05);
  color: rgba(34, 51, 27, 0.85);
  transition: transform 0.3s ease;
}

.skill-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.skill-item span {
  font-size: 0.95rem;
  font-weight: 600;
}

.skill-item:hover {
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .skills-groups {
    grid-template-columns: 1fr; 
    gap: 32px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (max-width: 768px) {
  .skills { padding: 60px 20px; }
  .skills-heading { font-size: clamp(2.5rem, 10vw, 5rem); }
}.footer {
  width: 100%;
  box-sizing: border-box;
  padding: 36px 50px;
  background: rgb(24, 33, 21); 
  color: rgba(255, 255, 255, 1);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.footer-socials {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-socials a {
  display: block;
  color: inherit;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials svg {
  display: block;
  width: 32px;
  height: 32px;
}

.footer-socials a:focus-visible {
  outline: 2px solid rgba(192, 214, 190, 1);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .footer {
    padding: 28px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}