/* --- General Styles (Reset and Base) --- */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Reusable Container --- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Fixed Header --- */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #324a5c;
    color: white;
    z-index: 10;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    max-height: 40px; /* Increased logo size */
    margin-right: 10px;
}

.header-title {
    font-size: 1.2em;
    font-weight: bold;
}

.header-content {
    display: flex;
    align-items: center;
}

/* --- Fixed Footer --- */
.fixed-footer {
    position: fixed; /* Changed to fixed */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #324a5c;
    color: white;
    z-index: 10;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in-out; /* Smooth transition */
}

.footer-show {
    opacity: 1; /* Class to show the footer */
}

.footer-copyright {
    text-align: left;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links img {
    height: 20px;
    vertical-align: middle;
}

/* --- Top Video Section --- */
.top-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.top-video-section video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.video-overlay-text-top {
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.video-overlay-text-bottom {
    font-size: 1.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* --- Main Content Section --- */
.main-content-section {
    position: relative;
    width: 100%;
    padding-top: 10vh;
    background-color: white;
    z-index: 2;
    padding-bottom: 70px;
}

.profile, .section {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile {
    display: flex;
    align-items: flex-start;
    flex-direction: column; /* Changed to column */
    text-align: center; /* Added text-align center */
}

.profile-image {
    max-width: 120px; /* Reduced size */
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
    margin-right: 0; /* Removed right margin */
    align-self: center; /* Center image */
}

.profile-text h2, .section h2 {
    color: #324a5c;
    border-bottom: 2px solid rgba(50, 74, 92, 0.3);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.5em;
    text-align: left; /* Added text-align left for heading */
}

.profile-text p {
    margin-bottom: 1em;
    text-align: left; /* Added text align left for paragraph*/
}

.section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1em;
}

.section ul li {
    margin-bottom: 0.5em;
}

.badge {
    display: inline-block;
    margin: 5px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 200px; /* Fixed width */
    height: auto; /*maintain aspect ratio*/
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-title {
        margin-left: 0;
        margin-top: 5px;
    }

    .fixed-header, .fixed-footer {
        padding: 10px;
    }

    .footer-links {
        text-align: center;
        margin-top: 10px;
    }

    .footer-copyright {
        text-align: center;
    }

    .fixed-footer {
        flex-direction: column;
    }

    .profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image {
        margin-bottom: 20px;
        margin-right: 0;
    }

    .video-overlay-text-top {
        font-size: 2em;
    }

    .video-overlay-text-bottom {
        font-size: 1.2em;
    }

    .main-content-section {
        padding-top: 8vh;
    }
}

@media (max-width: 480px) {
    .video-overlay-text-top {
        font-size: 1.5em;
    }

    .video-overlay-text-bottom {
        font-size: 1em;
    }
}

/* --- Scroll Down Arrow Styles --- */
.scroll-down-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-down-arrow::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: translateX(-50%) rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
