/* General styles */
body {
    background-image: url("../img/villagevistabackground.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    opacity: 0;
    animation: moveUpAndFadeIn 5s linear forwards;
    margin: 0;
    padding: 0;
}

@keyframes moveUpAndFadeIn {
    0% {
        background-position: 0 100%;
        opacity: 0;
    }
    100% {
        background-position: 0 0;
        opacity: 1;
    }
}

/* Header styles */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap;
    border-radius: 8px;
}

.logo-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    margin-right: 20px;
    width: 100px;
}

h1 {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 700;
    color: black;
    font-size: 2em;
    margin: 0;
    text-align: center;
}

h2 {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    margin-top: 2%;
    color: whitesmoke;
    text-align: center;
}

.quote {
    font-family: 'Book Antiqua', Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Georgia', serif;
    font-size: 1em;
    color: #555;
    font-style: italic;
    margin: 5px 0 0 0;
    text-align: center;
}

.top-right-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.top-right-links a {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.top-right-links a:hover {
    background-color: #ffffffac;
    color: #3f4fcf;
    border-color: #3070b5ac;
    text-decoration: none;
}

/* CEO section styles */
.ceo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto; /* Center horizontally */
    max-width: 80%; /* Adjust max-width as needed */
    text-align: center;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.ceo {
    width: 230px;
    margin-bottom: 5px;
}

.ceo-details {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2em;
    color: white;
    font-style: italic;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

/* About section styles */
.about-content {
    margin: 20px auto; /* Center horizontally */
    padding: 20px;
    font-family: 'Times New Roman', Times, serif;
    font-size: larger;
    color: #beb7b7;
    line-height: 1.7;
    text-align: center; /* Justify text */
    max-width: 80%; /* Adjust max-width as needed */
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.about-paragraphs {
    overflow: hidden;
    white-space: nowrap;
}

.about-para {
    opacity: 0;
    animation: fadeInParagraph 0.5s ease forwards;
    animation-delay: 0s;
    margin-bottom: 10px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInParagraph {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Footer styles */
footer {
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    opacity: 0;
    animation: slideUpAndFadeIn 2s linear forwards;
}

footer p {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 0.9em;
    color: #cdc9c9;
}

@keyframes slideUpAndFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    .logo {
        width: 80px;
    }

    h1 {
        font-size: 1.8em;
    }

    .ceo {
        width: 150px;
    }

    .ceo-details {
        font-size: 1em;
    }

    .about-content {
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 60px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    .quote {
        font-size: 0.9em;
    }

    .top-right-links {
        flex-direction: column;
        align-items: center;
    }

    .top-right-links a {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .ceo {
        width: 120px;
    }

    .ceo-details {
        font-size: 0.9em;
    }

    .about-content {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 50px;
    }

    h1 {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1em;
    }

    .quote {
        font-size: 0.8em;
    }

    .top-right-links {
        flex-direction: column;
        align-items: center;
    }

    .top-right-links a {
        padding: 8px 10px;
        font-size: 0.8em;
    }

    .ceo {
        width: 100px;
    }

    .ceo-details {
        font-size: 0.8em;
    }

    .about-content {
        max-height: 60vh;
    }
}
