body {
    margin: 0;
    height: 100vh;
    font-weight: 100;
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    -webkit-overflow-Y: hidden;
    -moz-overflow-Y: hidden;
    -o-overflow-Y: hidden;
    overflow-y: hidden;
    -webkit-animation: fadeIn 1 1s ease-out;
    -moz-animation: fadeIn 1 1s ease-out;
    -o-animation: fadeIn 1 1s ease-out;
    animation: fadeIn 1 1s ease-out;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Subtle dark overlay for minimalism */
    z-index: -1;
}

/* Screensaver Styles */
#screensaver {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Parallax effect container */
.parallax-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.parallax-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 130%;
    height: 130%;
    background: url('../images/background.jpg') no-repeat center center;
    background-size: cover;
    transition: transform 0.1s ease-out;
    will-change: transform;
    filter: blur(5px);
    -webkit-filter: blur(5px);
}

/* Search Container Styles */
.search-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Logo Container Styles */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease, visibility 1.5s ease;
    text-align: center;
}

/* Responsive Logo Container */
@media (max-width: 1200px) {
    .logo-container {
        max-width: 450px;
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .logo-container {
        max-width: 400px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        max-width: 350px;
        padding: 0 15px;
    }
}

.logo-container.show {
    opacity: 1;
    visibility: visible;
}

.peo-logo {
    width: 100%;
    height: auto;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

.search-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.search-box h2 {
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 2.5em;
    margin: 0 0 30px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    color: #333;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #999;
    font-weight: 300;
}

.search-input:focus {
    background: white;
    box-shadow: none;
    transform: none;
    outline: none;
}

.search-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.search-button svg {
    color: #333;
    transition: color 0.3s ease;
}

.search-button:hover svg {
    color: #666;
}

/* Divider Styles */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    gap: 20px;
}

.divider-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    max-width: 80px;
}

.divider-text {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* RFID Button Styles */
.rfid-button-container {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rfid-button {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 80px;
    height: 80px;
}

.rfid-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.rfid-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.rfid-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make the image white */
    transition: all 0.3s ease;
}

.rfid-button:hover .rfid-image {
    filter: brightness(0) invert(1); /* Keep the image white on hover */
    transform: scale(1.1);
}

.rfid-text {
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.rfid-button:hover .rfid-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Login Link Styles */
.login-link-container {
    margin-top: 20px;
    text-align: center;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.login-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-link:active {
    transform: translateY(0);
}

.login-link svg {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.login-link:hover svg {
    transform: translateX(2px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-body {
    padding: 40px 30px;
    text-align: center;
}

.rfid-scanner-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.scanner-icon {
    color: #666;
    margin-bottom: 10px;
}

.scanner-text {
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1.2em;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.scanner-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffd700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.modal-footer {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Loading Animation Styles */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.436);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-image-container {
    text-align: center;
}

.loading-slices {
    position: relative;
    width: 100px;
    height: 50px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
}

.loading-slice {
    position: absolute;
    height: 100%;
    background-repeat: no-repeat;
    opacity: 0;
    animation: sliceLoad 0.8s ease-out forwards;
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes sliceLoad {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loading-slices {
        width: 250px;
        height: 167px;
    }
    
    .loading-slice {
        background-size: 250px 167px;
    }
}

@media (max-width: 480px) {
    .loading-slices {
        width: 200px;
        height: 133px;
    }
    
    .loading-slice {
        background-size: 200px 133px;
    }
    
    .loading-text {
        font-size: 16px;
    }
}

/* Mission and Vision Container Styles */
.mission-vision-container,
.mandate-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    opacity: 0;
    /* Remove transition to prevent background fade-in effect */
}

.mission-vision-container.show,
.mandate-container.show {
    opacity: 1;
}

.mission-vision-box,
.mandate-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.mission-section,
.vision-section {
    flex: 1;
}

.mandate-section,
.peo-function-section,
.organizational-outcome-section {
    text-align: center;
    width: 100%;
}

.mandate-section h2,
.peo-function-section h2,
.organizational-outcome-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: center;
}

.mandate-section p,
.peo-function-section p,
.organizational-outcome-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    text-align: center;
}

.mission-section h2,
.vision-section h2,
.mandate-section h2,
.peo-function-section h2,
.organizational-outcome-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: center;
}

.mission-section p,
.mission-section ol,
.vision-section p,
.mandate-section p,
.peo-function-section p,
.organizational-outcome-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
}

.mission-section ol {
    text-align: left;
    padding-left: 20px;
}

.search-logo {
    max-width: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    transition: filter 0.3s ease;
}

.search-logo:hover {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

/* Logo Animation Styles */
.logo-container.animate-to-top {
    /* Ensure logo starts from center position before animation */
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    /* Let keyframe animation handle all movement */
    animation: logoFloatUp 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.logo-container.animate-to-top .peo-logo {
    /* Logo image will animate with container */
    max-width: 300px;
    transition: max-width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keep logo small and at top when active again */
.logo-container.logo-transformed {
    /* Final position after animation completes */
    top: 10%;
    transform: translate(-50%, -50%) scale(0.6);
}

/* Smooth keyframe animation for logo movement */
@keyframes logoFloatUp {
    0% {
        top: 50%;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        top: 10%;
        transform: translate(-50%, -50%) scale(0.6);
    }
}

/* Responsive Logo Animation */
@media (max-width: 1200px) {
    .logo-container.animate-to-top .peo-logo,
    .logo-container.logo-transformed .peo-logo {
        max-width: 280px;
    }
    
    .logo-container.logo-transformed {
        top: 8%;
        transform: translate(-50%, -50%) scale(0.55);
    }
    
    @keyframes logoFloatUp1200 {
        0% {
            top: 50%;
            transform: translate(-50%, -50%) scale(1);
        }
        100% {
            top: 8%;
            transform: translate(-50%, -50%) scale(0.55);
        }
    }
    
    .logo-container.animate-to-top {
        animation: logoFloatUp1200 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

@media (max-width: 768px) {
    .logo-container.animate-to-top .peo-logo,
    .logo-container.logo-transformed .peo-logo {
        max-width: 250px;
    }
    
    .logo-container.logo-transformed {
        top: 6%;
        transform: translate(-50%, -50%) scale(0.5);
    }
    
    @keyframes logoFloatUp768 {
        0% {
            top: 50%;
            transform: translate(-50%, -50%) scale(1);
        }
        100% {
            top: 6%;
            transform: translate(-50%, -50%) scale(0.5);
        }
    }
    
    .logo-container.animate-to-top {
        animation: logoFloatUp768 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

@media (max-width: 480px) {
    .logo-container.animate-to-top .peo-logo,
    .logo-container.logo-transformed .peo-logo {
        max-width: 220px;
    }
    
    .logo-container.logo-transformed {
        top: 5%;
        transform: translate(-50%, -50%) scale(0.45);
    }
    
    @keyframes logoFloatUp480 {
        0% {
            top: 50%;
            transform: translate(-50%, -50%) scale(1);
        }
        100% {
            top: 5%;
            transform: translate(-50%, -50%) scale(0.45);
        }
    }
    
    .logo-container.animate-to-top {
        animation: logoFloatUp480 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

/* Responsive adjustments for mission/vision containers */
@media (max-width: 1200px) {
    .mission-vision-container,
    .mandate-container {
        max-width: 95%;
        padding: 0 20px;
        top: 50%;
    }
    
    .mission-vision-box {
        gap: 30px;
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    .mission-vision-container,
    .mandate-container {
        max-width: 95%;
        padding: 0 15px;
        top: 60%;
    }
    
    .mission-vision-box {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .mission-section h2,
    .vision-section h2 {
        font-size: 24px;
    }
    
    .mission-section p,
    .mission-section ol,
    .vision-section p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .mission-vision-container,
    .mandate-container {
        max-width: 98%;
        padding: 0 10px;
        top: 65%;
    }
    
    .mission-vision-box {
        padding: 25px 15px;
        gap: 25px;
    }
    
    .mission-section h2,
    .vision-section h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .mission-section p,
    .mission-section ol,
    .vision-section p {
        font-size: 13px;
        line-height: 1.5;
    }
}



.mandate-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Responsive adjustments for mandate container */
@media (max-width: 1200px) {
    .mandate-container {
        max-width: 95%;
        padding: 0 20px;
        top: 50%;
    }
    
    .mandate-box {
        padding: 35px 30px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mandate-container {
        max-width: 95%;
        padding: 0 15px;
        top: 60%;
    }
    
    .mandate-box {
        padding: 30px 20px;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .mandate-container {
        max-width: 98%;
        padding: 0 10px;
        top: 65%;
    }
    
    .mandate-box {
        padding: 25px 15px;
        gap: 20px;
    }
    
    .mandate-section h2,
    .peo-function-section h2,
    .organizational-outcome-section h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .mandate-section p,
    .peo-function-section p,
    .organizational-outcome-section p {
        font-size: 13px;
        line-height: 1.5;
    }
}
