@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
@import url('https://cdn.jsdelivrr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');
body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url('coverimage.jpeg') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

/* Background Overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Navbar */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.nav-buttons {
    display: flex;
    gap: 18px;
    margin-right: 45px;
    flex-wrap: wrap;
}

.nav-buttons button {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-size: 1rem;
    color: black;
    position: relative;
    overflow: hidden;
}

#introVideoContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1.5s ease-in-out; /* Smooth fade transition */
}

#introVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#introVideoContainer.fade-out {
    opacity: 0;
    pointer-events: none; /* Disable interaction during the transition */
}





/* Logo Animation */
#logop {
    width: 180px;
    max-width: 100%;
    opacity: 0.7;
    animation: flipLogo 4s linear infinite;
    transition: opacity 0.5s ease-in-out;
}

#logop:hover {
    opacity: 1;
    animation: none;
    transform: rotate(0deg);
}

@keyframes flipLogo {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

/* Button Types */
.logup-btn,
.login-btn,
.logout-btn,
.about-btn,
.motto-btn {
    background: #B9B28A;
    transition: all 0.3s ease-in-out;
}

.logup-btn:hover {
    background: #BF360C;
    transform: scale(1.1);
}

.login-btn:hover {
    background: #1B5E20;
    transform: scale(1.1);
}

.logout-btn:hover {
    background: #B71C1C;
    transform: scale(1.1);
}

.about-btn:hover {
    background: #9EDDFF;
    transform: scale(1.1);
}

.motto-btn:hover {
    background: #FFD600;
    transform: scale(1.1);
}

/* Title Animations */
.main-content {
    text-align: center;
    margin-top: 60px;
}

.title {
    position: relative;
    font-size: 40px;
    color: whitesmoke;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    line-height: 1.5;
    animation: clip-path-reveal-1 5s ease-in-out infinite alternate;
}

.title span {
    display: inline-block;
    opacity: 0;
    transform: rotateY(360deg) scale(0.5);
    animation: flipAppear 2s forwards ease-in-out, line-animation 8s ease-in-out infinite alternate;
    animation-delay: calc(0.4s * var(--i));
    padding: 5px;
}

@keyframes flipAppear {
    0% { opacity: 0; transform: rotateY(360deg) scale(0.5); }
    40% { opacity: 0.5; transform: rotateY(180deg) scale(1.1); }
    100% { opacity: 1; transform: rotateY(0deg) scale(1); }
}

@keyframes line-animation {
    0%, 20% { transform: scaleX(0); }
    30%, 40% { transform: scaleX(1); }
    70% { transform: scaleX(1); }
    90%, 100% { transform: scaleX(0.2); }
}

@keyframes clip-path-reveal-1 {
    0%, 35% { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%); }
    60% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
}

/* Buttons after Login */
.buttons-act {
    display: none;
}

.logged-in .buttons-act {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Donate Buttons */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    background: #F57F17;
    display: inline-block;
}

.buttons-act {
    display: none;
}

.donor-btn {
    background: #F57F17;
}

.receiver-btn {
    background: #2E7D32;
}

.btn:hover, .btn:focus {
    transform: scale(1.1);
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.btn:active {
    transform: scale(1.15);
    box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.6);
}

/* Popups */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #FFF8E1;
    padding: 2rem;
    width: 350px;
    border-radius: 12px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    z-index: 1000;
    opacity: 0;
}

.popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup input {
    width: 90%;
    padding: 0.7rem;
    margin: 0.5rem auto;
    border: 2px solid #F57F17;
    border-radius: 5px;
    font-size: 1rem;
}

.popup button {
    width: 100%;
    padding: 0.8rem;
    background: #F57F17;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.popup button:hover {
    background: #E65100;
    transform: scale(1.05);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* About Us */
.about-content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.about-person {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-person a {
    margin-top: 16px;
    color:black; /* Adjust the value as needed */
}

.about-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#aboutPopup {
    width: 450px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    position: fixed;
    bottom: 0;
    font-size: 0.9em;
    backdrop-filter: blur(5px);
}

/* Responsive Design */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .nav-buttons {
        margin-top: 10px;
    }

    .title {
        font-size: 2rem;
    }

    #aboutPopup {
        width: 90%;
    }

    .footer {
        padding: 8px;
        font-size: 0.8em;
    }

    .btn-container {
        flex-direction: column;
        align-items: center;
    }
}
