/* Global styles */
* {
    transition: all 0.2s;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #131212;
    color: #fff;
}

.mode {
    position: fixed;
    bottom: 20px;
    left: 2vw;
}

/* Testimonial card */
body.testimonial-card {
    background-color: #333;
    color: #fff;
}

/* Contact section */
#contact {
    background: url("assets/contactBG.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: aliceblue;
}

footer {
    bottom: 0px;
}

/* Work experience section */
.work-experience-card {
    cursor: pointer;
    transition: transform 0.3s;
    /* background-image: linear-gradient(143deg, #ffffff, #000000); */
    background-color: white;
    border-radius: 10px;
}

.work-experience-card.show-description {
    transform: translateY(-20px);
}

/* Card styles */
.cart-background {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card {
    width: 230px;
    height: 100px;
    padding: 0.5rem;
    background-image: linear-gradient(43deg, #ffffff , #000000);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border-bottom: 3px solid rgb(255, 255, 255);
    border-left: 2px rgb(255, 255, 255) outset;
    box-shadow: -40px 50px 30px rgba(0, 0, 0, 0.280);
    transform: skewX(10deg);
    transition: .4s;
    overflow: hidden;
    color: white;
}

.card:hover {
    height: 384px;
    transform: skew(0deg);
}

.align {
    padding: 1rem;
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-self: flex-start;
}

.card h1 {
    text-align: center;
    margin: 1.3rem;
    color: rgb(218, 244, 237);
    text-shadow: -10px 5px 10px rgba(0, 0, 0, 0.573);
}

/* Skill section */
.skillSection {
    background-color: black;
    padding-top: 5vh;
    padding-bottom: 5vh;
    margin-bottom: 2vh;
    animation: contin 3s ease-in-out 2s alternate infinite;
}

@keyframes contin {
    from {
        background-color: black;
        color: white;
    }

    to {
        background-color: white;
        color: black;
    }
}

.skillCard {
    width: 300px;
    background-color: #4158D0;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skillHeader {
    background-color: black;
    box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 18px;
}

.skillBody {
    padding: 20px;
}

.skill {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.skill-name {
    width: 120px;
    font-size: 16px;
}

.skill-level {
    width: 160px;
    height: 10px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-left: 20px;
}

.skill-percent {
    background-color: #333;
    height: 100%;
}

.skill-percent-number {
    margin-left: 20px;
    font-size: 16px;
}

/* Button styles */
button {
    align-items: center;
    background-image: linear-gradient(143deg, #000000, #000000);
    border: 0;
    border-radius: 8px;
    box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
    box-sizing: border-box;
    color: #FFFFFF;
    display: flex;
    font-family: Phantomsans, sans-serif;
    font-size: 18px;
    justify-content: center;
    line-height: 1em;
    max-width: 100%;
    min-width: 140px;
    padding: 3px;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    cursor: pointer;
    transition: all .3s;
}

button:active,
button:hover {
    outline: 0;
    transform: scale(0.9);
}

/* Footer animation */
.footer {
    background-image: linear-gradient(43deg, #000000 0%, #ffffff 100%);
    border-top: 1px solid blue;
    box-shadow: rgb(54, 54, 247) 0px 0px 5px 1px;
    animation: fot 2s ease-in-out 2s alternate infinite;
}

@keyframes fot {
    from {
        box-shadow: rgb(54, 54, 247) 0px 0px 5px 1px;
    }

    to {
        box-shadow: rgb(54, 54, 247) 0px 0px 30px 1px;
    }
}

/* Other styles */
.fidelis {
    width: 100%;
    height: 100%;
}

hr {
    padding-bottom: 150px;
}

#projectSection {
    margin: 30px;
}

.portfolio {
    border-radius: 15px;
}

ul li {
    list-style-type: none;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {

    /* Adjust styles for smaller screens here */
    .align {
        flex-direction: column;
    }

    /* Example adjustment */
    .card h1 {
        font-size: 1.2rem;
    }
}

.testimonials-header{
     background-color: black;
    box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
    color: #fff;

}