body {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    background-color: black;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

section {
    background-color: black;
}

/* Header session */
.con {
    /* margin: 30px; */
    font-family: Arial, Helvetica, sans-serif;

}

header {
    position: sticky;
    top: 0;
    background-color: black;
    padding: 20px;
    z-index: 999;
}

#na {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin-right: 30px;
    align-items: center;
}

.av {
    list-style-type: none;

}

a {
    color: white;
    text-decoration: none;

}

.current {
    color: goldenrod;
    text-decoration: underline 2px;

}

#iconic {
    display: none;
}

/* #line{
    display: none;
} */
/* carousel */

#myname {
    color: goldenrod;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 40px;
    /* box-shadow: 2px 4px 5px 3px white; */
}

/* Make carousel images responsive */
.carousel-inner img,
.item img,
.carousel img {
    max-width: 100%;
    height: auto;
    display: block;
}

.carousel-caption {
    background-color: black;
    padding: 5px;
}

.carousel-caption a {
    background-color: goldenrod;
    border: none;
}

.carousel-caption a:hover {
    opacity: 0.5;
    background-color: goldenrod;
}

/* Showcase */
#showcase {
    /* min-height: 600px; */
    background: url(profile.JPG) 0 -400px;
    background-size: cover;
    text-align: center;
    color: black;
    /* padding-top: 50px;  */

}

#content {
    padding-top: 50px;
    font-size: 20px;
}

#myp {
    /* width: 30%; */
    align-items: center;
    /* color: white; */

}

.link1 {
    background-color: goldenrod;
    padding: 12px;
    color: black;
    border-radius: 15px;
    transition: 0.5s;
    border: none;

}

.link1:hover {
    opacity: 0.5;
}

.link2 {
    color: black;
    padding: 12px;
    /* border: 1px solid white; */
    border-radius: 15px;
    transition: 0.5s;
    border: none;
    box-shadow: 2px 4px 5px 3px black;
}

.link2:hover {
    opacity: 0.7;

}

#con {
    border-radius: 50%;
}


/* Service Section */
.serve{
    margin-top: 100px;
}
.div {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin-left: 30px;
    margin-right: 30px;
}

#break {
    color: goldenrod;
}

.view {
    background-color: goldenrod;
    padding: 10px;
    color: black;
    border-radius: 15px;
    transition: 0.5s;
    border: none;
    margin-top: 20px;
}

.view:hover {
    opacity: 0.5;
}

/* My Courses */
.courses {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    margin: 20px;
    padding: 10px;
    gap: 20px;
    flex-wrap: wrap;
}

.sp {
    box-shadow: 1px 1px 6px 2px goldenrod;
    padding: 16px;
    transition: 0.4s;
    width: calc(33.333% - 26px);
    box-sizing: border-box;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sp:hover {
    opacity: 0.6;
    transform: scale(1.1);
}

.icon {
    font-size: 50px;
    color: goldenrod;
    /* color: black; */
    width: 50px;
    transition: 0.4s;
}

.icon:hover {
    transform: scale(1.1);
}

hr {
    color: goldenrod;
    height: 20px;
}

/* About Section */

#sheyman{
    margin-top: 100px;
}
#section1 {
    display: flex;
    gap: 40px;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}
#sam{
    display: flex;
}
.mav{
    margin-right: 600px;
}

.sect {
    display: flex;
    justify-content: center;
    color: goldenrod;
}

#textarea {
    color: black;
}

#fig {
    color: goldenrod;
}

#section2 {
    text-align: center;
    background-color: goldenrod;
    color: black;
    padding: 15px;
    box-shadow: 2px 2px 7px 8px rgb(33, 33, 33);
    margin-top: 20px;
    gap: 20px;
    margin-left: 30px;
    margin-right: 30px;
}

span {
    color: white;
}

/* Contact Section */
#con{
    margin-top: 100px;
}
#section3 {
    display: flex;
    justify-content: space-between;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

#child {
    border: 2px solid goldenrod;
    padding: 15px;
    border-radius: 10px;
    width: 48%;
    box-sizing: border-box;
}

#social {
    display: flex;
    gap: 10px;
    /* background-color: white; */
}

input {
    width: 70%;
    color: black;
    padding: 8px;
    box-sizing: border-box;
}

textarea {
    width: 70%;
    padding: 8px;
    box-sizing: border-box;
}

/* My Skill section */
#skill{
    margin-top: 100px;
}
#skillh1 {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 40px;
}

.skills {
    width: 600px;
    margin: auto;
    max-width: 100%;
    padding: 0 10px;
}

.skill {
    margin-bottom: 30px;
}

.skill span {
    font-size: 16px;
    display: inline-block;
    margin-bottom: 5px;
}

.percent {
    float: right;
}

.bar {
    width: 100%;
    height: 6px;
    background-color: goldenrod;
    /* background-attachment: #444; */
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: goldenrod;
    border-radius: 10px;
    animation: fillbar 2s forwards;
}

@keyframes fillbar {
    from {
        width: 0%;
    }

    to {
        width: var(--width);
    }
}

/* Footer Section */
.foot {
    display: flex;
    justify-content: space-between;
    background-color: goldenrod;
    color: black;
    padding: 20px;
    margin-top: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.foot p {
    width: 100%;
    max-width: 520px;
}

.foot li {
    color: black;
}

#copy {
    background-color: goldenrod;
    color: black;
    padding: 10px;
    /* margin-left: 30px; */
    /* margin-right: 30px; */
    text-align: center;
}

/* Media queries - tablet and mobile */

@media (max-width: 992px) {
    #na {
        gap: 16px;
        margin-right: 16px;
    }

    .sp {
        width: calc(50% - 20px);
    }

    #child {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* hide horizontal nav, show menu icon */
    #na {
        display: none;
    }

    #iconic {
        display: block;
        color: white;
        font-size: 22px;
        text-align: right;
        padding-right: 20px;
        cursor: pointer;
    }

    /* mobile nav visible state when header has .nav-open */
    header.nav-open #na {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        right: 16px;
        top: 64px;
        background: rgba(0, 0, 0, 0.95);
        padding: 12px;
        border-radius: 6px;
        z-index: 10000;
    }

    header.nav-open #na .av {
        margin: 6px 0;
    }

    header.nav-open #na a {
        display: block;
        padding: 8px 12px;
    }

    .sp {
        width: 100%;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .sp:hover {
        transform: none;
    }

    #section1 {
        flex-direction: column;
    }

    #section1>div {
        width: 100%;
    }

    #section3 {
        display: block;
    }

    #child {
        width: 100%;
        margin-bottom: 20px;
    }

    input,
    textarea {
        width: 100%;
    }

    .foot {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Media Queries for Mobile Responsiveness */

/* For screens smaller than 768px */
@media (max-width: 768px) {
    #na {
        display: none;
        /* Hide navigation menu by default */
        flex-direction: column;
        background-color: black;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        padding: 10px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    }

    #iconic {
        display: block;
        /* Show hamburger icon */
        cursor: pointer;
        font-size: 24px;
        color: white;
        padding: 10px;
    }

    .av {
        margin: 10px 0;
        text-align: center;
    }

    .courses {
        flex-direction: column;
        align-items: center;
    }

    .sp {
        width: 90%;
        margin-bottom: 20px;
    }

    #section1,
    #section3 {
        flex-direction: column;
        align-items: center;
    }

    #child {
        width: 100%;
    }
}

/* For screens smaller than 480px */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    #myname {
        font-size: 30px;
    }

    .icon {
        font-size: 40px;
    }

    input,
    textarea {
        width: 100%;
    }
}

/* Class for toggling navigation visibility */
.nav-visible {
    display: flex !important;
    /* Ensure it overrides default styles */
    flex-direction: column;
    background-color: black;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}