:root {
  --brand-color: #ff3366;
  /* Couleur principale de la marque */
  --brand-hover: #ff0033;
  /* Couleur pour l'effet de survol */
}

/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #111;
  color: #fff;
  background: linear-gradient(#111, #1111116c),
    url("../img/aboutusbackground.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero Section */

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  padding: 0 30px;
  /* Réduction des marges latérales */
  overflow: hidden;
  gap: 20px;
  margin: auto 100px;
}

.text-container {
  max-width: 50%;
  margin-right: 50px;
}

.text-line {
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.2;
  opacity: 0;
  transform: translateX(-100%);
  animation: slideInText 1s ease-in-out forwards;
}

.text-line:nth-child(1) {
  animation-delay: 0.3s;
}

.text-line:nth-child(2) {
  animation-delay: 0.6s;
}

.text-line:nth-child(3) {
  animation-delay: 0.9s;
}

.text-container .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #ff3366;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
  opacity: 0;
  transform: translateX(-100%);
  animation: slideInText 1s ease-in-out forwards;
  animation-delay: 1.2s;
}

.text-container .btn:hover {
  background-color: #ff0033;
}

.image-container {
  max-width: 50%;
  opacity: 0;
  transform: translateX(100%);
  animation: slideInImage 1.5s ease-in-out forwards;
  animation-delay: 1.5s;
}

.image-container img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.text-container {
  max-width: 45%;
  /* Réduction de la largeur maximale du texte */
}
.web-dev-services {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to top, #111, transparent),
    url("../img/background-image.jpg");
  background-size: cover;
  background-position: center;
  padding: 2rem 1rem;
  color: #fff;
}

.service {
  text-align: center;
  margin: auto 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-10px);
}

.service .icon img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.service h3 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

/* About Us Section Styling */
.about-us-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px; /* Gap between columns */
  background-color: #111; /* Dark background color */
  padding: 50px; /* Internal padding */
  color: white; /* Text color */
  overflow: hidden; /* Hide overflow content */
}

/* Image Styling */
.about-us-image {
  width: 50%; /* Image occupies 50% width */
  object-fit: cover; /* Maintain aspect ratio without distortion */
  border-radius: 8px; /* Rounded corners */
  opacity: 0; /* Initially hidden */
  transform: translateX(100px); /* Starting position */
  transition: transform 1s ease, opacity 1s ease; /* Smooth animation */
}

/* Text Content Styling */
.about-us-content {
  width: 40%; /* Text content occupies 40% width */
  text-align: left; /* Left-align text */
  opacity: 0; /* Initially hidden */
  transform: translateX(-100px); /* Starting position */
  transition: transform 1s ease, opacity 1s ease; /* Smooth animation */
}

/* Title Styling */
.about-us-content h1 {
  font-size: 2.5rem; /* Font size for title */
  font-weight: bold; /* Bold font for title */
  margin-bottom: 20px; /* Space below the title */
}

/* Paragraph Styling */
.about-us-content p {
  font-size: 1rem; /* Font size for paragraph */
  line-height: 1.8; /* Line height for readability */
  margin-bottom: 30px; /* Space below the paragraph */
  color: #ccc; /* Muted text color */
}

/* Button Styling */
.btn {
  background-color: var(--brand-color); /* Customizable button color */
  color: #fff; /* Button text color */
  border: none; /* Remove border */
  padding: 10px 20px; /* Button padding */
  font-size: 1rem; /* Button font size */
  font-weight: bold; /* Bold button text */
  border-radius: 5px; /* Rounded button corners */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s ease; /* Smooth hover animation */
}

.btn:hover {
  background-color: var(--brand-hover); /* Button color on hover */
}

/* Animation Classes */
.about-us-image.animate-left {
  transform: translateX(0); /* Reset position for image */
  opacity: 1; /* Make image visible */
}

.about-us-content.animate-right {
  transform: translateX(0); /* Reset position for text */
  opacity: 1; /* Make text visible */
}

/* Portfolio Section */
.portfolio {
  text-align: center;
  padding: 50px 0;
  background-color: #111;
  color: white;
}
.portfolio h1 {
  color: var(--brand-color);
  font-size: 2rem;
  margin: 10px;
}
.portfolio h3 {
  font-size: 2rem;
  margin: 0 0 50px 0;
}

.portfolio-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px; /* This affects both rows and columns */
  justify-items: center; /* Centers the items within each column */
}
.portfolio-item {
  margin-right: 5px; /* Reduce horizontal space between items */
  margin-bottom: 5px; /* Reduce vertical space between items */
}

.all-items {
  display: flex;
  justify-content: center;
}
.cards-width {
  display: flex;
  justify-content: center;
}

.portfolio-item {
  position: relative;
  width: 300px;
  height: 225px;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Hover Effect */
.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.overlay-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay-text h4 {
  margin: 0;
}
.overlay-text h4,
p {
  text-align: left;
}

.overlay-text p {
  margin-top: 5px;
  font-size: 0.9rem;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
  .portfolio-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .portfolio-items {
    grid-template-columns: 1fr;
  }
}

.cta-wrapper {
  background-color: #111; /* Couleur spécifique pour la partie contenant .cta */
  padding: 20px 0; /* Espacement autour de la section */
}
.cta {
  position: relative;
  background-image: linear-gradient(180deg, #000000cd, #000000cd),
    url("../img/contactusimagefoot.jpg"); /* Effet de dégradé sur l'image de fond */
  background-position: center;
  background-size: cover;
  width: 1000px;
  height: 400px; /* Hauteur du header */

  align-items: center;
  align-content: center;
  text-align: center;
  text-align: center;
  margin: 30px auto;
  border: #111;
  border-radius: 10px;
}
.cta h2 {
  margin: 20px;
}
.cta-btn {
  background: #ff3366; /* Couleur rose */
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s;
}

.cta-btn:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Animations */
@keyframes slideInText {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInImage {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Style du footer */
footer {
  text-align: center;
}
footer {
  filter: blur(0.55px);
  background-color: #111;
  color: #fffefe;
  padding: 20px 0;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin: 10px;
}

.footer-section h3 {
  border-bottom: 2px solid #555;
  padding-bottom: 5px;
  margin-bottom: 10px;
  text-align: center;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 5px 0;
  text-align: center;
}

.footer-section ul li a {
  color: #fffafa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #1e90ff;
}

.social-links a {
  font-size: 1.5rem;
  margin: 0 10px;
  color: #fffbfb;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #1e90ff;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #555;
  padding-top: 10px;
  font-size: 0.9rem;
}
/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
  body {
    padding: 0 10px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    height: auto;
    margin: 0;
  }

  .text-container {
    max-width: 100%;
    margin: 0;
  }

  .image-container {
    max-width: 100%;
    margin-top: 20px;
  }

  .text-line {
    font-size: 2rem;
  }

  .text-container .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .portfolio-items {
    grid-template-columns: 1fr;
  }

  .about-us-section {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .about-us-image,
  .about-us-content {
    width: 100%;
    transform: none;
    opacity: 1;
  }

  .cta {
    width: 90%;
    height: auto;
    padding: 20px;
  }

  .cta h2 {
    font-size: 1.5rem;
  }

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

  .footer .menu,
  .footer .office-box,
  .footer .logo {
    margin: 10px 0;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .text-line {
    font-size: 1.8rem;
  }

  .portfolio-item {
    width: 90%;
    height: auto;
  }

  .cta-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .footer h2 {
    font-size: 1.5rem;
  }

  .footer .menu a {
    font-size: 0.9rem;
  }
}
@media screen and (max-width: 768px) {
  .hero,
  .service,
  .about-us-section {
    margin: 0 auto; /* Supprime les marges inutiles */
    padding: 0 10px; /* Réduit les paddings */
  }

  .hero {
    flex-direction: column;
    text-align: center;
    height: auto; /* Ajuste la hauteur automatiquement */
  }

  .text-container,
  .image-container,
  .about-us-content,
  .about-us-image {
    width: 100%; /* Utilise toute la largeur de l'écran */
    margin: 0 auto; /* Centrage des éléments */
  }

  .about-us-section {
    flex-direction: column; /* Affiche en colonne */
    gap: 20px; /* Réduit l'écart */
    padding: 20px;
  }
}
@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column; /* Empile les éléments */
    text-align: center;
  }

  .about-us-section {
    flex-direction: column; /* Affichage en colonne */
    overflow: visible; /* S'assurer que rien n'est coupé */
  }
}
@media screen and (max-width: 768px) {
  .text-container,
  .image-container,
  .about-us-content,
  .about-us-image {
    width: 100%; /* Utilise toute la largeur de l'écran */
    margin: 0 auto; /* Centrer le contenu */
  }
}
@media screen and (max-width: 768px) {
  .hero,
  .service {
    margin: 0 auto; /* Centrage sans espace excessif */
    padding: 0 10px; /* Réduire les paddings */
  }

  .about-us-section {
    gap: 10px; /* Réduire l'écart entre les colonnes */
  }
}
@media screen and (max-width: 768px) {
  .web-dev-services {
    flex-direction: column; /* Stack elements vertically */
    padding: 1rem; /* Reduce padding for smaller screens */
  }

  .service {
    margin: 1rem 0; /* Space services vertically */
    width: 100%; /* Make services full width */
    max-width: none; /* Remove max-width restriction */
  }

  .service h3 {
    font-size: 0.9rem; /* Adjust font size for smaller screens */
  }

  .service .icon img {
    width: 40px; /* Reduce icon size for smaller screens */
    height: 40px;
  }
}
