*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    margin: 0;
    overflow-x: hidden;
}

.section-dark {
    background-color: rgb(22, 21, 21);
    padding: 50px 60px;
    border-top: 0.1px solid #9ca3af;
    color: white;
}

section{
    scroll-margin-top: 80px;
}

section h3{
    margin-bottom: 10px;
}

#navBar{
    display: flex;
    justify-content: space-between;
    background-color: black;
    align-items: center;
    width: 100%;
    height: 60px;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 9999;
}

#menuBtn {
    display: none;
    font-size: 28px;
    margin-right: 20px;
    color: white;
    cursor: pointer;
}

#name{
    color:rgb(232, 170, 15);
}

.options{
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 20px;
    cursor: pointer;
}

.options a {
    display: block;
    padding: 10px 20px;
    width: auto;
    text-align: center;
}

#menuBtn:hover{
    color: rgb(232, 170, 15);
}

.option{
    text-decoration: none;
    color: #9ca3af;
}

.option.active{
    color:rgb(232, 170, 15);
}

.option:hover{
    color: rgb(232, 170, 15);
}

#section1{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    height: auto;
}

.main_page{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    max-width: 900px;
}

.topLine{
    display: flex;
    gap: 19px;
    align-items: center;
    margin-bottom: 15px;
    color: rgb(232, 170, 15);
}

.role {
    display: flex;
    gap: 8px;
}

.dynamic-text {
    color: rgb(232, 170, 15);
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
    min-height: 30px;
}

.main_page p {
    max-width: 500px;
    margin: 25px auto;
    text-align: center;
    color: #9ca3af;
}

.main_page h1{
    margin: 0;
    line-height: 1.1;
    font-size: clamp(36px, 8vw, 90px);
}

.heroTitle{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.titleText{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titleText h1:first-child {
    white-space: nowrap;
}

.titleImage{
    position: absolute;
    left: 100%;
    margin-left: 40px;
}

.titleImage img{
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 0.5px solid #9ca3af;
    transition: all 0.4s ease;
}

.titleImage img:hover{
    border-color: rgb(232, 170, 15);
    box-shadow: 0 0 20px rgba(232, 170, 15, 0.4);
    transform: scale(1.02);
}

.dot{
    font-size:20px;
}

.section1Buttons{
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-bottom: 50px;
}

.section1Buttons a{
    color: black;
    font-weight: 540;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-decoration: none;
    min-width: 160px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    background-color: orange;
    transition: all 0.3s ease;
}

#resumeBtn{
    color: white;
    background-color: rgb(22, 21, 21);
    border: 0.5px solid grey;
}

.section1Buttons a:hover{
    background-color: darkorange;
    transform: translateY(-2px);
}

#section2{
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 60px;
}

.yellowhead{
    color: rgb(232, 170, 15);
}

.left{
    flex: 1.2;
}

.left h1{
    line-height: 1.1;
    font-size: clamp(28px, 4vw, 50px);
    white-space: nowrap;
}

.left h1 + h1{
    margin-top: -6px;
}

.left p{
    margin-top: 20px;
    max-width: 600px;
    text-align: justify;
    line-height: 1.6;
    color: #9ca3af;
}

.right{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.boxes{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.box{
    background: rgb(22, 21, 21);
    border: 0.5px solid grey;
    color: #9ca3af;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
    border-color: rgb(248, 161, 0);
}

.quantity{
    color: rgb(232, 170, 15);
    font-size: 30px;
    padding-bottom: 5px;
}

.skills h3{
    margin-bottom: 10px;
}

.skills h1{
    font-size: 50px;
    margin-bottom: 25px;
}

.skillBoxes{
    min-height: 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skillBox ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skillBox li{
    color: #9ca3af;
}

.skillBox li::marker{
    color: rgb(232, 170, 15);
}

.projectBoxes{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

.project{
    border: 0.5px solid #9ca3af;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    color: #9ca3af;
    min-width: 0;
}

.project:hover {
    border-color: rgb(248, 161, 0);
}

.projectViewBtn {
    margin-top: auto;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    background-color: rgb(232, 170, 15);
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.5s ease;
}

.projectViewBtn:hover {
    background-color: rgb(248, 161, 0);
    transform: scale(1.05);
}

.project::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, rgb(22, 21, 21));
}

.project *{
    overflow-wrap: break-word;
    word-break: break-word;
}

.project p{
    overflow: hidden;
}

.projectLinks {
    display: flex;
    gap: 15px;
}

.projectLinks a {
    color: #9ca3af;
    font-size: 18px;
    transition: 0.3s;
}

.projectLinks a:hover {
    color: white;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modalContent {
    background: rgb(22,21,21);
    border: 1px solid #9ca3af;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    opacity: 0;
    color: #9ca3af;
    position: relative;
    transform: scale(0.9);
    transition: 0.3s ease;
}

.modal.active .modalContent {
    transform: scale(1);
    opacity: 1;
}

#modalDesc h4 {
    color: rgb(232, 170, 15);
    margin-top: 15px;
}

#modalDesc p {
    margin-top: 5px;
    line-height: 1.5;
}

#modalDesc ul {
    margin-top: 5px;
    padding-left: 20px;
}

#closeModal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: white;
}

#closeModal:hover{
    background-color: rgb(248, 161, 0);
}

.topRow{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.technologies{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.technologies p{
    background-color: #91959d;
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 14px;
}

#section4 h1,
#section6 h1{
    font-size: 50px;
    margin-bottom: 25px;
}

.codingProfiles{
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
}

.codingBox{
    border: 0.5px solid #9ca3af;
    border-radius: 10px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-width: 220px;
    padding: 15px 20px;
    align-items: flex-start;
}

.codingBox:hover {
    border-color: rgb(248, 161, 0);
}

.codingBox h4{
    color: white;
}

.visitBtn{
    color: white;
    background-color: rgb(232, 170, 15);
    border-radius: 10px;
    text-decoration: none;
    padding: 10px 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    font-size: 15px;
    font-weight: 500;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visitBtn:hover{
    transform: scale(1.05);
    background-color: rgb(248, 161, 0);
}

.certificates ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

#section5 h1{
    font-size: 50px;
}

#section5Headings {
    padding: 25px 0px;
}

.certificates li{
    margin-bottom: 12px;
    padding-left: 10px;
    font-size: 15px;
    border-left: 2px solid rgb(232, 170, 15);
    color: #9ca3af;
    display: grid;
    grid-template-columns: 280px 200px auto;
    align-items: center;
    gap: 10px;
}

.certLink {
    font-size: 14px;
    color: rgb(232, 170, 15);
    text-decoration: none;
    transition: 0.3s;
}

.certLink:hover {
    color: white;
}

.certName{
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company{
    color: #9ca3af;
    font-size: 14px;
}

.contacts{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}

.detail{
    border: 1px solid #9ca3af;
    border-radius: 10px;
    padding: 25px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    flex: 1 1 220px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.detail:hover{
    transform: translateY(-6px);
    border-color: rgb(232, 170, 15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.detail h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgb(232, 170, 15);
    margin-bottom: 10px;
}

.icon {
    font-size: 22px;
    margin-right: 8px;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.detail:hover .icon {
    color: white;
}

@media (max-width: 768px) {

    .section-dark {
        padding: 40px 20px;
    }

    #menuBtn {
        display: block;
    }

    .options {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: black;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 10px 0;
    }

    .options.active {
        display: flex;
    }

    .options a {
        width: 100%;
        padding: 15px;
        border-top: 1px solid #333;
    }

    .heroTitle {
        flex-direction: column;
        gap: 20px;
    }

    .titleImage {
        position: static;
        margin: 0;
    }

    .titleImage img {
        width: 180px;
        height: 180px;
    }

    .main_page h1 {
        text-align: center;
    }

    .section1Buttons {
        flex-direction: column;
        width: 100%;
        padding-bottom: 0;
    }

    #section1 {
        height: auto;
        padding-bottom: 40px;
    }

    #section2 {
        flex-direction: column;
        gap: 30px;
    }

    .left h1 {
        font-size: 32px;
        white-space: normal;
    }

    .boxes {
        grid-template-columns: 1fr;
    }

    .skills h1 {
        font-size: 32px;
    }

    .skillBoxes {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .projectBoxes {
        grid-template-columns: 1fr;
    }

    .project {
        max-height: none;
    }

    .codingProfiles {
        flex-direction: column;
        gap: 20px;
    }

    .certificates li {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    #section4 h1,
    #section5 h1,
    #section6 h1 {
        font-size: 32px;
    }

    .detail {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .main_page h1 {
        font-size: 60px;
    }

    .left h1 {
        font-size: 40px;
    }

    .skillBoxes {
        flex-wrap: wrap;
        gap: 20px;
    }

    .projectBoxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {

    .main_page h1 {
        font-size: 90px;
    }

    .contacts {
        grid-template-columns: repeat(4, 1fr);
    }

    .detail {
        flex: 0 0 calc(25% - 20px);
        max-width: calc(25% - 20px);
    }
}

@media (max-width: 1024px) {

    .heroTitle {
        flex-direction: column;
        align-items: center;
    }

    .titleImage {
        position: static;
        margin-top: 20px;
    }

}

@media (max-width: 900px) {

    .options {
        display: none;
    }

    #menuBtn {
        display: block;
    }

}

@media (max-width: 1100px) {
    .options {
        gap: 8px;
    }

    .options a {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (min-width: 768px) {

    .codingProfiles {
        justify-content: space-between;
        gap: 30px;
        padding: 0 20px;
    }

    .codingBox {
        flex: 1;
        min-width: 0;
        padding: 20px;
    }
}
@media (max-width: 1000px) {

    #section2 {
        flex-direction: column;
        gap: 40px;
    }

    .right {
        width: 100%;
    }

    .boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .boxes {
        grid-template-columns: 1fr;
    }
}
