/* General */
* {
    font-family: "Berlin Sans FB", sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8f9fa;
}

/* Navbar Logo */
#logo img {
    width: 50px;
    height: auto;
}

#header {
    margin-left: 5%;
    margin-bottom: 80px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

/* Text section */
.header-text h1 {
    margin: 10px 0;
}

.header-text .last-name {
    margin-left: 10px;
}

/* Social Icons */
.social-icons {
    margin: 15px 0;

}

.social-icon {
    font-size: 40px;
    margin-right: 15px;
    color: inherit;
    transition: transform 0.3s;
}

.social-icons a {
    text-decoration: none;
    color: inherit;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Buttons */
.header-buttons {
    margin-top: 20px;
}

.header-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Avatar */
#avatar {
    width: 100%;
    max-width: 500px;
    height: 500px;
    background-image: url("img/IMG_9888.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 20%;
    margin: 20px auto;
}

/* Responsive */
@media (max-width: 992px) {
    #avatar {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .header-text {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        display: flex;
    }

    #avatar {
        height: 300px;
    }
}

@media (max-width: 480px) {
    #avatar {
        height: 250px;
    }

    .social-icon {
        font-size: 30px;
    }

    .header-text p {
        font-size: 0.9rem;
    }
}

/* Social Icons */


/* What I Do */
#whatido-img {
    width: 100%;
    height: 250px;
    background-image: url("img/front.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 15px;
}

#skills img {
    width: 50px;
    height: 50px;
}

/* Proficiency / Skills */
#skilback {
    width: 100%;
    height: 250px;
    background-image: url("img/skills.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 20px;
}

/* Progress bars */
.progress {
    height: 20px;
    border-radius: 10px;
}

.progress-bar {
    background-color: #78C8FF;
}

/* Open Source Cards */
#rep .card {
    border: 1px solid #78C8FF33;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s ease;
}

#rep .card:hover {
    transform: translateY(-5px);
}

/* Achievements Cards */
#me1, #me2, #me3 {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
}

.layer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    transition: all 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.layer:hover {
    background-color: rgba(120, 200, 255, 0.56);
}

.layer p {
    color: black;
    font-size: 1rem;
}
.layer a{
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    #avatar {
        width: 200px;
        height: 200px;
    }

    #whatido-img, #skilback {
        height: 200px;
    }
}

@media (max-width: 768px) {
    header h1, header h2 {
        text-align: center;
    }

    #btn1 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #skills {
        justify-content: center;
    }

    #rep .card {
        margin: auto;
    }

    #me1, #me2, #me3 {
        height: 180px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    #avatar {
        width: 150px;
        height: 150px;
    }

    #whatido-img, #skilback {
        height: 150px;
    }

    header p {
        font-size: 0.9rem;
    }

    .layer p {
        font-size: 0.8rem;
    }
}

/* open source project */
.open-source-projects {
    padding: 50px 20px;
    text-align: center;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.card#card1 {
    width: 300px;
    min-height: 200px;
    background-color: #78c9ff23;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    flex-direction: column;
    padding: 15px;
}

.card#card1:hover {
    transform: translateY(-5px);
}

.card-content h6 {
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

#github {
    padding: 5px 20px;
    border-color: #78C8FF;
    color: black;
}

#github a {
    text-decoration: none;
    color: black;
}

#github:hover {
    background-color: #78C8FF;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .projects-container {
        gap: 20px;
    }

    .card#card1 {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .card#card1 {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .card#card1 {
        width: 100%;
    }
}

/* Achievements & Certifications */
.achievement-card {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin: auto;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

/* Individual backgrounds */
#me1 {
    background-image: url("img/Coursera.png");
}

#me2 {
    background-image: url("img/Coursera.png");
}

/* change image if needed */
#me3 {
    background-image: url("img/Coursera.png");
}

/* change image if needed */
#me4 {
    background-image: url("img/Coursera.png");
}

#me5 {
    background-image: url("img/amit_learning_logo.jfif");
}

#me6 {
    background-image: url("img/cisco_logo.jfif");
}

/* Layer for hover text */
.layer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    transition: all 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.layer:hover {
    background-color: rgba(120, 200, 255, 0.56);
}

.layer p {
    color: black;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.layer:hover p {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .achievement-card {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .achievement-card {
        height: 160px;
    }

    .layer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .achievement-card {
        height: 140px;
    }

    .layer p {
        font-size: 0.8rem;
    }
}