/* Basic image styling */
img {
    width: 170px;
}

/* Animated text styling */
.animated-text {
    font-family: 'Itim';
    font-size: 80px;
    color: #ffcc00;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeInText 3s ease-out forwards;
}

/* Keyframe animation for text fade-in */
@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Body */
body {
    margin: 0;
    height: 100%;
    font-family: 'Itim';
}

/* Header section */
.header {
    color: #fdf6b2;
    opacity: 0.95;
    background-color: #fdf6b2;
    border-radius: 30px;
    padding: 10px;
}

/* Navigation bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Logo image in navbar */
nav .logo img {
    height: 40px;
    width: auto;
}

/* Navbar links */
nav a {
    text-decoration: none;
    color: #fff;
    padding: 14px 30px;
    margin: 0 20px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover effect for navbar links */
nav a:hover {
    background-color: #ffd700;
    color: #333;
    transform: scale(1.05);
}

/* Main content */
.content {
    text-align: center;
    padding: 350px 0;
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

/* Show class for visibility */
.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
    z-index: -1;
}

.content small {
    color: #fff;
    font-size: 24px;
}

.content h1 {
    font-size: 160px;
    color: #fff;
    font-weight: 600;
}

/* Background video */
.back-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Body section */
.body1, .body2, .body3 {
    background-color: #673ab6;
    padding: 50px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Text section inside body */
.text1, .text2, .text3 {
    display: flex;
    align-items: center;
    width: 80%;
    justify-content: space-between;
    position: relative;
    z-index: 0.5;
}

/* Oval container for text */
.oval {
    background-color: #9b72cc;
    border-radius: 50px;
    padding: 80px 60px;
    text-align: center;
    flex-basis: 45%;
    position: relative;
    z-index: 0.5;
}

.oval h1 {
    color: #fff;
    font-size: 3em;
    margin: 0;
    font-weight: 600;
}

/* Side image */
.side-image {
    flex-basis: 45%;
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: contain;
    z-index: 0.5;
}

/* Background color for each body section */
.body1::before, .body2::before, .body3::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: 60%;
    background-color: #ffb6c1;
    z-index: 0.5;
    opacity: 0.85;
}

/* Different clip paths for each section */
.body1::before {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    left: 0;
}

.body2::before {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    right: 0;
}

.body3::before {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    left: 0;
}

/* Transitions only occur once */
@media (prefers-reduced-motion) {
    .content {
        transition: none;
    }
}

/* Video aspect ratio adjustment */
@media(min-aspect-ratio: 16/9){
    .back-video{
        width: 100%;
        height: auto;
    }
}

@media(max-aspect-ratio: 16/9){
    .back-video{
        width: auto;
        height: 100%;
    }
}
