
/* portfolio-home.css */

body {
    overflow-x: hidden; 
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.hero {
  height: 100vh;
  background: url('../img/hero-bg.jpg') center center / cover no-repeat;
  color: #fff6e6;
  display: flex;
  align-items: center;
  justify-content:flex-start;
  text-align: left;
  padding: 0 8vw;
}

.hero-content h1 {
  font-size: 3em;
  margin-bottom: 60px;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.cta-button {
  background-color: #fff6e6;
  color: #661a1d;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #f5c6aa;
}

/* ANIMATIONS */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-in-up.delay-1 {
  animation-delay: 0.5s;
}
.fade-in-up.delay-2 {
  animation-delay: 1s;
}
.fade-in-up.delay-3 {
  animation-delay: 1.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-home {
  padding: 60px 0;
  background-color: #661a1d;
  text-align: center;
}

.portfolio-home h2 {
  font-size: 2em;
  font-weight: 700;
  color: #fff1e6;
  margin-bottom: 60px;
  font-family: "Poppins", sans-serif;
}

.portfolio-home .portfolio-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 100px;
}

.portfolio-home .portfolio-item {
  position: relative;
  width: 350px;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
}

.portfolio-home .portfolio-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.portfolio-home .portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-home .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(102, 26, 29, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff1e6;
  font-size: 1.2em;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.portfolio-home .portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-home .btn-portfolio {
  margin-top: 60px;
  display: inline-block;
  background-color: #fff1e6;
  color: #661a1d;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.portfolio-home .btn-portfolio:hover {
  background-color: #f5c6aa;
}

body, html {
  overflow-x: hidden;
}

.navbar {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
}

@media (max-width: 768px) {
    
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
    display: flex;
  }
     
  .navbar {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-header {
    text-align: center;
    background-color: #68191D;
    padding: 1rem 0;
  }

  .mobile-header img {
    max-width: 150px;
    height: auto;
  }

  .menu-toggle {
    order: 1;
    margin-right: auto;
  }

  .social-icons {
    order: 3;
    display: flex;
    margin-left: auto;
    gap: 10px;
  }

  .social-icons a {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
    
  .hero {
    background-image: url('../img/visuel-mobile.jpg');
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem;
  }

  .hero-content {
    width: 100%;
    padding-top: 20rem;
  }
    
  .hero-content h1 {
    font-size: 2em;
    margin-bottom: 50px;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}