#wrapper-canvas canvas {
    max-width: 100%;
    max-height: 100%;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.close-icon {
    font-size: 48px;
    font-weight: 700;
    position: absolute;
    right: 16px;
    cursor: pointer;
}

.popup {
    width: 90%;
    max-width: 1200px;
    height: auto;
    max-height: 90%;
    padding: 40px;
    background-color: #0d0d3dd4;
    color: #fff;
    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 99;
    transform: scale(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
    border-radius: 15px;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.popup-open .popup {
    transform: scale(1);
    opacity: 1;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.8);
    inset: 0;
    position: fixed;
    display: none;
}

.popup-open .overlay {
    display: block;
    animation: fadeIn 0.5s ease;
}

.close-icon {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-icon:hover {
    color: #1788ae;
    transform: rotate(90deg);
}

#container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    margin: 0;
}

#container #row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

#about-col-1 {
    max-width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
}

#about-col-1 img {
    margin-left: 70px;
    border-radius: 5px;
    width: 300px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#about-col-1:hover img {
    transform: scale(1.1);
}

#about-col-2 {
    max-width: 60%;
    padding-left: 40px;
    text-align: left;
}

#title {
    font-size: 55px;
    font-weight: 700;
    color: #7fdcfb;
    font-family: 'Merriweather', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

#about-col-2 p {
    font-size: 20px;
    line-height: 1.8;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #ccc;
    margin-top: 10px;
    max-width: 900px;
    transition: transform 0.3s ease;
}

#about-col-2 p:hover {
    transform: translateY(-5px);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .popup {
        padding: 30px;
        width: 90%;
        max-width: 800px;
    }

    #title {
        font-size: 45px;
        margin-bottom: 15px;
    }

    #about-col-1 img {
        width: 250px; /* Scale down the image */
        margin-left: 50px; /* Adjust margin */
    }

    #about-col-2 p {
        font-size: 18px;
        line-height: 1.6;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .popup {
        padding: 20px;
        width: 95%; /* Adjust the popup width */
    }

    #container {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    #about-col-1 {
        margin-bottom: 20px;
        max-width: 80%;
        text-align: center;
    }

    #about-col-1 img {
        width: 400px; /* Scale down image further */
        margin-left: 7px; 
    }

    #about-col-2 {
        max-width: 100%;
        padding-left: 0;
    }

    #title {
        font-size: 40px;
        margin-bottom: 15px;
    }

    #about-col-2 p {
        font-size: 16px;
        line-height: 1.5;
        max-width: 90%; /* Constrain width */
        margin: 0 auto; /* Center the text */
    }
}

@media (max-width: 480px) {
    .popup {
        padding: 15px;
        width: 100%; /* Full-width popup for smaller screens */
    }

    #title {
        font-size: 30px;
        margin-bottom: 10px;
    }

    #about-col-1 img {
        width: 150px; /* Scale image for small devices */
        margin: 0 auto; /* Center image */
    }

    #about-col-2 p {
        font-size: 14px;
        line-height: 1.4;
        max-width: 100%;
        padding: 0 10px; /* Add padding for edge alignment */
        margin: 0 auto; /* Center the text */
    }

    #container {
        padding: 5px;
    }
}


#projects {
    margin: 0 50px 50px 90px;
}

.work img {
    height: auto;
    width: 400px;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s;
}

#work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 50px;
}

.work {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    width: 400px;
}

#layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), #1788ae);
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

#layer h3 {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
}

#layer a {
    margin-top: 20px;
    color: #1788ae;
    text-decoration: none;
    line-height: 60px;
    font-size: 18px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover #layer {
    height: 100%;
}
.btn{
    display: inline-block;
    background-color: #1788ae;
    padding: 10px 40px;
    border-radius: 5px;
    font-size: large;
    font-weight: 600;
    margin-top: 5px;
    cursor: pointer;
}
#experience{
    margin-top: -20px;
}
#education{
    margin-bottom: -50px;
}
form input, form textarea{
    width: 90%;
    border: 0;
    outline: none;
    background: #2b2a2a;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}
#msg{
    color: #6fc5fa;
    display: block;
    margin-top: 10px;
}
#pantech, #octanet{
    font-weight: 900;
}
#my-work-button, #resume-button, #about-me-button {
    background: linear-gradient(to right, #1788ae, #80d3ef);
}

.section {
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px; 
    box-sizing: border-box;
}

.resume-tab .list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.resume-card {
    display: grid;
    gap: 12px;
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.resume-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.resume-card .card-subtitle,
.resume-card .card-text {
    color: #ffffff;
}

.certificate {
    margin-top: 20px; 
    display: flex;
    justify-content: center;
}

.certificate-img {
    width: calc(100% - 40px);
    max-width: 600px; 
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.section-title {
    margin-bottom: 24px;
    color: #1788ae;
    font-weight: bold;
    font-size: 44px;
}

.resume-item {
    padding: 10px;
}

.resume-bottom-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.resume-bottom-item {
    background-color: rgba(66, 65, 65, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.resume-bottom-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.resume-bottom-item .icon {
    height: 28px;
    width: 28px;
}

.divider {
    width: 80%;
    height: 3px;
    background-color: #333;
    margin: 30px auto;
  }

  .divider-dashed {
    width: 80%;
    height: 2px;
    border-top: 2px dashed #333;
    margin: 30px auto;
  }

  .divider-curve {
    width: 100%;
    height: 80px;
    background: linear-gradient(to right, #f7b42c, #fc575e);
    clip-path: ellipse(50% 80% at 50% 100%);
    margin: 30px 0;
  }

@media (max-width: 768px) { 
    #section-1{
        margin-top: 30px;
    }
    #container #row {
        margin-left: -8px;
    }
    #title{
        font-size: 30px;
        margin-left: 10px;
    }
    #about-col-2{
        flex-basis: 100%;
        max-width: 100%;
    }
    #about-col-1 img {
        width: 280px; /* Scale image for small devices */
        height: 280px;
        border-radius: 50%;
        margin-left: 23px; /* Center image */
        margin-bottom: -50px;
    }
    #about-col-1 {
        margin-bottom: 60px;
        max-width: 100%;
    }
    #about-col-2 {
        font-size: 14px;
    }
    #projects .work{
        flex-basis: 100%;
        margin-left: -100px;
    }
    #projects .work img{
        width: 310px;
        margin-left: 35px;
        margin-bottom: 20px;
    }
    #contact .row {
        display: flex;
        flex-direction: column;
    }
    #contact .row form{
        margin-left: 30px;
        margin-bottom: 20px;
    }
    form input, form textarea{
        font-size: 16px;
        padding: 10px 15px;
        margin-bottom: 8px;
    }
    #msg{
        margin-left: 40px;
        margin-bottom: 10px;
    }
    #my-work-button{
        margin-top: -400px;
        margin-bottom: 150px;
    }
}
