body {
    font-family: 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #92c3e4, #2755aa);
    background-size: 400% 400%;
    animation: gradientShift 15s ease-in-out infinite;
    color: #333;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

header {
    background-image: url('https://pf-creation.fr/gifs/starfall-night-sky-mountains-aesthetic-gif-preview-desktop-wallpaper.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 180px 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    font-size: 3.5em;
    text-shadow: 4px 4px 8px rgb(224, 135, 213);
    position: relative;
    z-index: 2;
}

nav {
    background-color: rgba(0, 86, 179, 0.7);
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
}

nav.visible {
    transform: translateY(0);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #fff;
    padding: 2rem 3rem;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1.3rem;
    text-shadow: 1px 8px 8px rgba(0, 0, 0, 0.5);
}

nav ul li a:hover {
    background-color: rgba(0, 64, 128, 0.7);
}

main {
    flex: 1;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    margin-top: 80px;
}

.bezier-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bezier-curve path {
    stroke-dasharray: 100%;
    stroke-dashoffset: 100%;
    stroke: url(#gradient);
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.image-container {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    position: relative;
    height: 300px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.image-container.left {
    transform: translateX(-100%);
    justify-content: flex-start;
    margin-left: 0;
}

.image-container.right {
    transform: translateX(100%);
    justify-content: flex-end;
    margin-right: 0;
}

.image-container.visible {
    opacity: 1;
    transform: translateX(0);
}

.image-container img {
    height: 100%;
    width: 80%;
    border-radius: 12px;
    object-fit: cover;
}

.image-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-description h3 {
    margin-top: 0;
}

.image-container video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

footer {
    background-color: #698edf;
    color: white;
    text-align: center;
    padding: 1em 0;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
