/* Additional reset styles not in critical CSS */
*::after,
*::before {
  box-sizing: inherit;
  list-style: none;
  text-decoration: none;
}

/* Additional body property */
body {
  font-weight: 400;
}
/* Additional body state not in critical CSS */
body.menu-open {
  overflow: hidden;
}

/* Additional header properties not in critical CSS */
.header {
  background-repeat: no-repeat;
  background-position: center;
}

/* Additional nav properties not in critical CSS */
.main-nav-list {
  align-items: center;
}
.main-nav-link {
  transition: color 0.3s ease;
}
.main-nav-link:hover {
  color: #d4af37;
}
.active-link {
  color: #d4af37;
}
.cv-link {
  color: #d4af37 !important;
  border: 2px solid #d4af37;
  padding: 0.5rem 1.5rem;
  border-radius: 3rem;
  transition: all 0.3s ease;
}
.cv-link:hover {
  background-color: #d4af37;
  color: #2a2520 !important;
}
.cv-link i {
  margin-right: 0.5rem;
}
.fa-solid {
  cursor: pointer;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  display: none;
}

.btn-nav {
  display: none;
}

/* Additional title animations not in critical CSS */
.title-main {
  text-align: center;
  animation: moveToLeft 3s ease-in;
}
.title-sub {
  animation: moveToRight 3s ease-in;
}

@keyframes moveToLeft {
  0% {
    opacity: 0;
    transform: translateX(-10rem);
  }
  80% {
    transform: translateX(2rem);
  }
  100% {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes moveToRight {
  0% {
    opacity: 0;
    transform: translateX(10rem);
  }
  80% {
    transform: translateX(-2rem);
  }
  100% {
    opacity: 1;
    transform: translate(0);
  }
}
.btn:link {
  display: inline-block;
  text-decoration: none;
  padding: 1.5rem 4rem;
  text-transform: uppercase;
  border-radius: 10rem;
  transition: all 0.2s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1px rgba(0, 0, 0, 0.2);
}
.btn:active {
  transform: translateY(-1px);
}
.btn-white {
  background-color: #fff;
  color: #2a2520;
  border: 2px solid #2a2520;
}
.btn-animation {
  animation: moveButton 0.5s ease-out 0.7s;
  animation-fill-mode: backwards;
}
#section-about {
  background-color: rgb(42, 37, 32);
  margin-top: -20vh;
  padding: 25rem 0;
  color: #f5f3f0;
}
.section-title {
  text-transform: uppercase;
  font-size: 3.2rem;
  font-weight: 700;
  text-align: center;
  background-image: linear-gradient(
    to right,
    rgba(212, 175, 55, 0.8),
    rgba(131, 117, 78, 0.8)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  margin-bottom: 5rem;
}
.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: stretch;
}
.col-2 {
  max-width: 48%;
}
h3 {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
p:not(:last-child) {
  /* font-size: 1.5rem; */
  margin-bottom: 1.2rem;
}

.overlay {
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 2;
}

.popup-content {
  position: fixed;

  background-color: #2a2520;
  padding: 3rem;
  width: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 2;
  outline: 2rem solid #83754e;
  border-radius: 0.5rem;
  outline-offset: 1rem;
  /* border: 5px solid #6499d5; */
}
.popup-content p {
  color: #f5f3f0;
}
.close-popup {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2rem;
  font-weight: 500;
  cursor: pointer;
}
.popup {
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  color: #d4af37;
  text-decoration: none;
  border: none;
  background-color: transparent;
  border-bottom: 1px solid #d4af37;
}
/* not finished 211- 231 */

.image-container {
  width: 100%;
}

.photo-wrapper {
  border: 2rem solid #83754e;
  border-radius: 0.5rem;

  display: flex;
  overflow: hidden;
  height: 100%;
  position: relative;
}

.photo {
  position: absolute;
  border: 1rem solid #6b5b47;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.image-container .active {
  display: block;
}
#section-skill {
  display: flex;
  align-items: center;
  padding: 20rem 0;
  background: linear-gradient(135deg, #83754e, #6b5b47, #a68b5b, #83754e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  transform: skewY(-5deg);
  margin-top: -11rem;
}
.heading-skills {
  font-size: 3rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 5rem;
}
.skill-card {
  padding: 3rem;
  text-align: center;
  background-color: #2a2520;
  color: #f5f3f0;
  height: auto;
  width: 18%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
  border: 2px solid #83754e;
}
#section-skill > * {
  transform: skewY(5deg);
}
.fa-regular,
.fa-brands.fa-node {
  font-size: 4rem;
  margin-bottom: 2rem;
}
.fa-regular {
  color: #d4af37;
}
.fa-brands.fa-node {
  color: rgb(5, 176, 5);
}
.skill-card:hover {
  transform: translateY(-1rem) scale(1.02);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}
.brands,
.fa-regular,
.fa-brands.fa-node {
  width: 25%;
  height: auto;
  margin: 0 auto;
  margin-bottom: 2rem;
}
#section-projects {
  padding: 12rem 0 15rem 0;
}
.projects-grid {
  gap: 2rem;
}
.card {
  width: 31%;
  position: relative;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 50rem;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
}
.featured-card {
  position: relative;
}
.featured-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(135deg, #d4af37, #d5ad29);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  z-index: 1;
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.2);
}
.front-card {
  background-color: #2a2520;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-img {
  width: 100%;
  height: 20.3rem;
  object-fit: cover;
  object-position: center;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.card-heading {
  font-size: 2.1rem;
  font-weight: 300;
  text-transform: uppercase;
  color: #fff;
  position: absolute;
  top: 12rem;
  right: 2rem;
  width: 35%;

  text-align: right;
}
.span-card {
  padding: 1rem 1.5rem;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.card-1 {
  background-image: linear-gradient(
    to right,
    rgba(131, 117, 78, 0.8),
    rgba(107, 91, 71, 0.9)
  );
}
.card-2 {
  background-image: linear-gradient(
    to right,
    rgba(131, 117, 78, 0.8),
    rgba(107, 91, 71, 0.9)
  );
}
.card-3 {
  background-image: linear-gradient(
    to right,
    rgba(131, 117, 78, 0.8),
    rgba(107, 91, 71, 0.9)
  );
}
.card-details {
  padding: 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-details ul {
  list-style: none;
  width: 80%;
  margin: 0 auto;
}
.card-details ul li {
  text-align: center;
  font-size: 1.5rem;
  padding: 1rem;
  color: #d4af37;
}
.card-details ul li:not(:last-child) {
  border-bottom: 1px solid #83754e;
}
.back-card {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: center;
  transform: translateY(100%);

  transition: transform 0.8s;
}
.card:hover .back-card {
  position: absolute;
  transform: translateY(0);

  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: block;
}
.back-card-details {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.back-text {
  color: #fff;
  text-transform: uppercase;
  margin: 3rem 0;
}
.b-c-1 {
  background-image: linear-gradient(
    to right,
    rgba(131, 117, 78, 1),
    rgba(107, 91, 71, 1.1)
  );
}
.b-c-2 {
  background-image: linear-gradient(
    to right,
    rgba(131, 117, 78, 1),
    rgba(107, 91, 71, 1.1)
  );
}
.b-c-3 {
  background-image: linear-gradient(
    to right,
    rgba(131, 117, 78, 1),
    rgba(107, 91, 71, 1.1)
  );
}
#section-stories {
  position: relative;
  height: 60rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, #1a1612, #2a2520, #6b5b47, #1a1612);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.contact-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 3rem;
}
.contact-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}
.contact-subtitle {
  font-size: 1.8rem;
  margin-bottom: 4rem;
  font-weight: 300;
  text-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.3);
}
.social-links {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
}
.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 3rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  color: rgb(212, 175, 55);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(212, 175, 55, 0.3);
}
.social-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
}
.social-link i {
  font-size: 3rem;
}
.social-link span {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}
.cv-container {
  margin-top: 4rem;
  text-align: center;
}
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem 4rem;
  background: linear-gradient(135deg, #d4af37, #d5ad29);
  color: #fff;
  text-decoration: none;
  border-radius: 5rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0.5rem 2rem rgba(212, 175, 55, 0.4);
  border: 2px solid #d4af37;
}
.btn-cv:hover {
  background: linear-gradient(135deg, #e5c047, #e6bd39);
  transform: translateY(-3px);
  box-shadow: 0 1rem 3rem rgba(212, 175, 55, 0.5);
}
.btn-cv i {
  font-size: 2rem;
}
.footer {
  background-color: #0f0d0a;
  padding: 6rem 0 3rem 0;
  text-align: center;
}
.footer-logo {
  width: 15rem;
  margin: 0 auto 2rem auto;
}
.footer-logo img {
  width: 100%;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.footer-logo img:hover {
  opacity: 1;
}
.footer-content {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  margin: 0;
}
