@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
}

/*scroll bar color */
html::-webkit-scrollbar {
    width: 0.5rem;
    background: #f1eaff;
}

html::-webkit-scrollbar-thumb {
    background: #392467;
    border-radius: 5rem;
}

body {
    background: #f1eaff;
    color: #392467;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

html {
    height: 100%;
}

/*navi bar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    background: rgba(241,234,255, .9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 20px;
    color: #392467;
    text-decoration: none;
    font-weight: 600;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #f1eaff;
    animation: showRight 1s ease forwards;
    animation-delay: 0.4s;
}

.navibar a {
    font-size: 16px; 
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px; 
    transition: 0.3s;
}

/* Add a media query for smaller screens */
@media only screen and (max-width: 768px) {
    .header {
        padding: 20px 5%;
    }

    .logo {
        font-size: 18px;
    }

    .navibar a {
        font-size: 14px;
        margin-left: 15px;
        transition: 0.3s;
    }

    .navibar a:hover,
    .navibar a.active {
        color: #fdbf60;
    }

    .c-button {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 150px;
        height: 100%;
        margin-right: 5px;
        background: #392467;
        border: 2px solid #392467;
        border-radius: 8px;
        font-size: 19px;
        color: #fdbf60;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 1px;
        z-index: 1;
        overflow: hidden;
        cursor: pointer;
        transition: 0.3s;
    }

    .c-button:hover {
        color: #392467 !important;
        background: #fdbf60 !important;
    }

    .c-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: #fdbf60;
        z-index: -1;
        transition: 0.5s;
    }

    .c-button:hover::before {
        width: 100%;
    }
}

/* Add a media query for larger screens */
@media only screen and (min-width: 768px) {

    .navibar a {
        transition: 0.3s;
    }

    .navibar a:hover,
    .navibar a.active {
        color: #fdbf60;
    }

    .c-button {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 150px;
        height: 100%;
        margin-right: 5px;
        background: #392467;
        border: 2px solid #392467;
        border-radius: 8px;
        font-size: 19px;
        color: #fdbf60;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 1px;
        z-index: 1;
        overflow: hidden;
        cursor: pointer;
        transition: 0.3s;
    }

    .c-button:hover {
        color: #392467 !important;
        background: #fdbf60 !important;
    }

    .c-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: #fdbf60;
        z-index: -1;
        transition: 0.5s;
    }

    .c-button:hover::before {
        width: 100%;
    }

}

/* About Content */

.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 40px 20px 0 20px;
    padding: 0 5%; 
}

.about-heading {
    position: relative;
    width: 100%; 
    justify-content: center;
    align-items: center;
}

.about-heading::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #F1EAFF;
    animation: showRight 1s ease forwards;
    animation-delay: 1.2s;
}

.about-heading h3 {
    padding-top: 3%;
    font-size: 3em; 
    font-weight: bolder;
    border-bottom: 2px solid purple; 
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 1rem;
}

.profile {
    margin: auto;
    display: flex;
    flex-direction: column; 
}

.profile img {
    width: 100%; 
    height: auto; 
}

.info {
    display: inline-block;
    width: 100%; 
}

.info h5 {
    font-size: 20px; 
}

.info p {
    font-size: 16px; 
    text-align: justify;
}

.about-sci {
    align-content: center;
    bottom: 5px;
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
}

.about-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 5px; 
    width: 30px;
    height: 30px;
    background: transparent;
    border: 2px solid #392467;
    border-radius: 50%;
    font-size: 16px;
    color: #392467;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
}

.about-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #fdbf60;
    z-index: -1;
    transition: 0.5s;
}

.about-sci a:hover::before {
    width: 100%;
}

/* Footer */

.footer {
    align-items: center;
    flex-shrink: 0;
    padding: 2rem 9%;
    background: #392467;
    margin-top: auto;
}

.footer-text p {
    font-size: 1rem;
    color:#f1eaff;
    text-align: center;
}

/* Media Queries for larger screens */
@media (min-width: 768px) {
    .about-content {
        margin-top: -5%;
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: -9%;
    }
    
    .footer {
        flex-direction: row;
    }
}

@keyframes showRight {
    100% {
        width: 0;
    }
}