:root {
    --lapis-lazuli: #336699ff;
    --carolina-blue: #86bbd8ff;
    --charcoal: rgb(0, 0, 0);
    --light-green: rgb(255, 0, 0);
    --nyanza: rgb(21, 255, 0);
    --dark-bg: #1c1c1e;
    --dark-card-bg: #333333;
    --dark-border: #444444;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-image: url(img/led\ 7.jpg);
    background-size: 1920px 810px; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    background-position: center; 
    color: var(--nyanza);
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    display: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(#0000);
    color: var(--nyanza);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.burger-menu {
    display: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--nyanza);
    font-weight: bold;
    transition: color 0.3s;
    font-size: 1.2rem;
}

.nav-links a:hover {
    color: var(--light-green);
}

.header {
    height: 100vh;
    background: url('img/one.png') no-repeat center center;
    background-size: contain; 
    background-attachment: fixed; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--nyanza);
    filter: contrast(1.2);
}

.header-content {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

header p {
    font-size: 1.8rem;
}

main {
    padding: 0;
    background-image: url(img/led8.webp);
    background-size: fixed; /* Ensure the background image fits within the viewport without stretching */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    background-attachment: fixed; /* Make the background image stay in place when scrolling */
    background-position: center; /* Center the background image */
    color: var(--nyanza);
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}


section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--nyanza);
    opacity: 1; /* Ensure full opacity */
}

.section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    vertical-align: middle;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--light-green);
}

.section-text {
    font-size: 1.5rem;
    line-height: 1.8;
    max-width: 600px;
}

.posts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.post {
    display: flex;
    align-items: center;
    background-color: var(#e60092);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 8px rgb(0, 255, 76);
    border-radius: 50px;
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--dark-border);
}

.post-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 2rem;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--nyanza);
}

.post-description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--nyanza);
}

.post-rating {
    font-size: 1.2rem;
    color: var(--light-green);
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--charcoal);
    color: var(--nyanza);
}

.section-divider {
    width: 80%;
    height: 1px;
    background-color: var(--light-green);
    margin: 2rem auto;
    opacity: 0; /* Ensure full opacity */
}

.hidden {
    display: none;
}

#detailed-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    color: var(--nyanza);
}

.back-button {
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    background-color: #5100ff;
    border: none;
    border-radius: 5px;
    color: #ff0000;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: var(--nyanza);
}

.post-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--charcoal);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    .section-content {
        padding: 2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .post {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-image {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .about-image {
        width: 100px;
        height: 100px;
    }

    .contact-icon {
        width: 25px;
        height: 25px;
    }
}
