/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://images.gptkong.com/article/b/922_0.png') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
    padding-top: 60px;
    position: relative;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #FFB6C1;
}

/* Sections Styling */
article {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

section {
    margin-bottom: 40px;
    position: relative;
}

section h2, section h3 {
    color: #2E8B57;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after, section h3::after {
    content: '';
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #FFB6C1, #2E8B57);
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

section p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

section img {
    display: block;
    max-width: 900px;
    min-width: 500px;
    width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

section img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Chapter Navigation */
.chapter-nav {
    position: fixed;
    right: 20px;
    top: 80px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chapter-nav ul {
    list-style: none;
}

.chapter-nav li {
    margin-bottom: 10px;
}

.chapter-nav a {
    text-decoration: none;
    color: #2E8B57;
    font-size: 14px;
    transition: color 0.3s;
}

.chapter-nav a:hover {
    color: #FFB6C1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
    }

    .navbar li {
        margin: 10px 0;
    }

    .chapter-nav {
        display: none;
    }
}

/* Animations: Falling Petals */
@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.petal {
    position: fixed;
    top: -50px;
    width: 20px;
    height: 20px;
    background: url('https://images.gptkong.com/article/b/922_3.png') no-repeat center center;
    background-size: contain;
    opacity: 0.8;
    animation: fall linear infinite;
}

.petal:nth-child(1) {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    left: 30%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.petal:nth-child(3) {
    left: 50%;
    animation-duration: 8s;
    animation-delay: 4s;
}

.petal:nth-child(4) {
    left: 70%;
    animation-duration: 15s;
    animation-delay: 6s;
}

.petal:nth-child(5) {
    left: 90%;
    animation-duration: 9s;
    animation-delay: 8s;
}

/* Additional Effects: Sunlight Glare */
.sun-glare {
    position: fixed;
    top: 20%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    transform: translateX(-50%);
    animation: glare 20s linear infinite;
    pointer-events: none;
}

@keyframes glare {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}
