body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #fff;
}

.logiciels-section {
    min-height: auto;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}
#canvas {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.icon-links {
  margin-top: 2rem;
}

.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon-link:hover {
  transform: translateY(-5px);
  color: #4caf50;
}

.icon-link i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.icon-link span {
  font-size: 0.9rem;
  text-align: center;
}

.logiciels-intro{
    padding: 0;
    min-height: 100vh;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 15px;
  max-width: 840px;
}
.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    
    transform: translateY(30px);
}

.subtitle {
    font-size: 1.5rem;
    
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

.container {
    position: relative;
    z-index: 2;
}

.content-left,
.content-right {
    padding: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1rem;
    line-height: 1.6;
    
    transform: translateY(30px);
}

.section-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    height: 300px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 1rem;
}

.carousel-control.next {
    right: 1rem;
}

.carousel-text p {
    display: none;
    
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-text p.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-icon {
    width: 40px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}
#haute-couture {
    background-color: #800080;
    color: #fff;
}
.logo-container {
    width: 500px; /* Adjust as needed */
    height: 400px;
    perspective: 1000px; /* Essential for 3D effect */
}
.logo-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
}
.logo-container:hover .logo-flipper {
    transform: rotateY(180deg);
}
.logo-front, .logo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.logo-back {
    transform: rotateY(180deg);
}
.logo-front img, .logo-back img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes fadeIn {
    from {  }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Background images for each section */
#intro { background-image: url('../img/logics.jpg'); }

/* Responsive styles */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
    .logo-container {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
    .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .content-left,
    .content-right {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    .section-image{
        height: 240px;
    }
    .subtitle {
        font-size: 1rem;
    }
    .logiciels-section{
        padding: 25px 0;
    }
    .logiciels-intro {
    padding: 0;
    min-height: 80vh;
}
    .section-title {
        font-size: 2rem;
    }
    .logo-container {
        width: 100%;
        max-width: 100%;
    }
}

/* Animations */
.section-title,
.section-description,
.section-image,
.carousel-container {
    
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-title.animate,
.section-description.animate,
.section-image.animate,
.carousel-container.animate {
    opacity: 1;
    transform: translateY(0);
}

.carousel-item {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.carousel-item.active {
    transform: scale(1);
}

.carousel-item:not(.active) {
    transform: scale(0.9);
}

.flip-container {
    width: 500px; /* Adjust as needed */
    height: 400px;
    perspective: 1000px; /* Essential for 3D effect */
}
.flip-container .flip-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
}
.flip-container:hover .flip-flipper {
    transform: rotateY(180deg);
}
.flip-container .flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.flip-container .flip-back {
    transform: rotateY(180deg);
}
.flip-container .flip-front img, .flip-back img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    border-radius: 12px;
    height: 300px;
}
/* Animations */
.section-title,
.section-description,
.section-image,
.carousel-container {
    opacity: 0; /* Hidden initially */
    transform: translateY(30px); /* Start with a downward offset */
    transition: opacity 1.5s ease, transform 1.5s ease; /* Slow animation with 1.5 seconds duration */
}

.section-title.animate,
.section-description.animate,
.section-image.animate,
.carousel-container.animate {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Return to the original position */
}