
/* basic css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #111;
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}


/* starting code here of header */

.navbar {
    width: 100%;
    height: 65px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #111dff;
    box-shadow: 0 2px 8px #777;
}

.navname a {
    color: #fff;
    font-size: 25px;
    font-weight: bold;
}

.navlist ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navlist a {
    padding: 10px 12px;
    color: #fff;
    font-size: 16px;
}

.navlist a:hover {
    color: #42ff00;
}

.navtimer {
    color: #d8ff00;
    font-weight: bold;
}

.hamburger {
    display: none;
    padding: 5px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}


/* mobile menu list using hamburger */

.mobileMenulist {
    display: none;
    width: 90%;
    max-width: 350px;
    padding: 25px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background: #fff;
    border: 2px solid #111dff;
    border-radius: 12px;
    box-shadow: 0 5px 20px #1f3dd4;
}

.mobileMenulist.active {
    display: block;
}

.mobileMenulist ul {
    text-align: center;
}

.mobileMenulist li {
    margin: 18px 0;
}

.mobileMenulist a {
    color: #111;
    font-size: 20px;
    font-weight: bold;
}


/* starting code here of home section */

#Home {
    width: 100%;
    min-height: 100vh;
    padding: 100px 25px 50px;
    display: flex;
    align-items: center;
    background: #f7f7f7;
}

.homecontainer {
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.leftcpart {
    width: 55%;
}

.rightcpart {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#heading {
    margin-bottom: 20px;
    font-size: clamp(40px, 5vw, 70px);
    line-height: 1.1;
}

#heading2 {
    max-width: 750px;
    color: #444;
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: normal;
    line-height: 1.4;
}

.rightcpart img {
    width: min(380px, 90%);
    height: min(380px, 90%);
    aspect-ratio: 1;
    object-fit: cover;
    border: 5px solid #111;
    border-radius: 50%;
}


/* start section 2 about section */

#About {
    width: 100%;
    padding: 80px 25px;
}

.about-container {
    width: 100%;
}

.about-content {
    width: 100%;
}

.section-tag {
    margin-bottom: 12px;
    color: #2222ff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
}

.about-content h2 {
    margin-bottom: 20px;
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.15;
}

.about-content h2 span {
    color: #2222ff;
}

.about-content p:not(.section-tag) {
    max-width: 1000px;
    margin-bottom: 15px;
    color: #444;
    font-size: 17px;
    line-height: 1.7;
}

.about-info {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-info div {
    padding: 20px;
    border: 1px solid #2222ff;
    border-radius: 10px;
}

.about-info strong {
    display: block;
    margin-bottom: 8px;
    color: #2222ff;
}

.about-info span {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}


/* projects section */

#Projects {
    width: 100%;
    padding: 80px 25px;
    background: #f7f7f7;
}

.projects-header {
    width: 100%;
    margin-bottom: 35px;
    text-align: center;
}

.projectSection {
    margin-bottom: 12px;
    font-size: clamp(35px, 5vw, 55px);
}

.paragraphProjects {
    max-width: 1000px;
    margin: auto;
    color: #555;
    font-size: 17px;
    line-height: 1.6;
}

.ProjectContainer {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px #ccc;
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-number {
    margin-bottom: 8px;
    color: #2222ff;
    font-size: 13px;
    font-weight: bold;
}

.project-content h3 {
    margin-bottom: 10px;
    font-size: 26px;
}

.project-content p:not(.project-number) {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.project-tech span {
    padding: 6px 10px;
    color: #2222ff;
    background: #eeeeff;
    border-radius: 5px;
    font-size: 12px;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    background: #2222ff;
    border-radius: 6px;
    font-size: 14px;
}

.project-btn:hover {
    background: #000;
}


/* certfication section */

#Certificates {
    width: 100%;
    padding: 80px 25px;
}

#chead {
    margin-bottom: 35px;
    text-align: center;
    font-size: clamp(35px, 5vw, 55px);
}

.CertificatesContainer {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.Certi1 {
    width: 100%;
    height: 380px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px #ccc;
}

.Certi1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px);
    transform: scale(1.05);
    transition: .5s;
}

.certificate-overlay {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, .65);
}

.certificate-overlay h2 {
    margin-bottom: 10px;
}

.certificate-overlay p {
    margin-bottom: 15px;
}

.certificate-overlay span {
    padding: 8px 15px;
    border: 1px solid #fff;
    border-radius: 5px;
    font-size: 13px;
}

.Certi1.revealed img {
    filter: blur(0);
    transform: scale(1);
}

.Certi1.revealed .certificate-overlay {
    opacity: 0;
    visibility: hidden;
}


/* footer section */

.footer {
    width: 100%;
    padding: 60px 25px 0;
    color: #fff;
    background: #111111e1;
}

.footer-container {
    width: 100%;
    padding-bottom: 45px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 35px;
}

.footer h2 {
    margin-bottom: 12px;
    font-size: 25px;
}

.footer h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-about p {
    max-width: 400px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

.footer ul {
    display: grid;
    gap: 10px;
}

.footer a {
    color: #aaa;
    font-size: 14px;
}

.footer a:hover {
    color: #2dd66b;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #222;
    border-radius: 50%;
}

.social-icons a:hover {
    color: #fff;
    background: #2222ff;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    width: 100%;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #888;
    font-size: 13px;
}


/* large screen */

@media (min-width: 1400px) {

    .navbar,
    #Home,
    #About,
    #Projects,
    #Certificates,
    .footer {
        padding-left: 40px;
        padding-right: 40px;
    }

    #heading {
        font-size: 70px;
    }

    #heading2 {
        font-size: 34px;
    }

    .rightcpart img {
        width: 400px;
        height: 400px;
    }

    .about-content p:not(.section-tag) {
        font-size: 18px;
    }

    .project-image {
        height: 320px;
    }

    .Certi1 {
        height: 420px;
    }
}


/* laptop */

@media (max-width: 1100px) {

    .navbar {
        padding: 0 20px;
    }

    #Home,
    #About,
    #Projects,
    #Certificates,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .homecontainer {
        gap: 30px;
    }

    .rightcpart img {
        width: 320px;
        height: 320px;
    }

    .about-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* tablet */

@media (max-width: 800px) {

    .navlist {
        display: none;
    }

    .navtimer {
        display: none;
    }

    .hamburger {
        display: block;
    }

    #Home {
        min-height: auto;
        padding-top: 100px;
    }

    .homecontainer {
        flex-direction: column-reverse;
        text-align: center;
        gap: 35px;
    }

    .leftcpart,
    .rightcpart {
        width: 100%;
    }

    .rightcpart img {
        width: 280px;
        height: 280px;
    }

    #heading2 {
        max-width: 700px;
        margin: auto;
    }

    .about-content {
        text-align: center;
    }

    .about-content p:not(.section-tag) {
        margin-left: auto;
        margin-right: auto;
    }

    .ProjectContainer,
    .CertificatesContainer {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 300px;
    }

    .Certi1 {
        height: 350px;
    }
}


/* mobile */

@media (max-width: 600px) {

    .navbar {
        height: 60px;
        padding: 0 12px;
    }

    .navname a {
        font-size: 20px;
    }

    .hamburger {
        font-size: 22px;
    }

    .mobileMenulist {
        width: calc(100% - 30px);
        padding: 20px;
    }

    #Home {
        padding: 90px 12px 50px;
    }

    .homecontainer {
        gap: 25px;
    }

    .rightcpart img {
        width: 230px;
        height: 230px;
    }

    #heading {
        font-size: 40px;
    }

    #heading2 {
        font-size: 20px;
    }

    #About,
    #Projects,
    #Certificates {
        padding: 55px 12px;
    }

    .about-content h2 {
        font-size: 35px;
    }

    .about-content p:not(.section-tag) {
        font-size: 15px;
        line-height: 1.6;
    }

    .about-info {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 12px;
    }

    .about-info div {
        padding: 16px;
    }

    .ProjectContainer,
    .CertificatesContainer {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .paragraphProjects {
        font-size: 15px;
    }

    .project-image {
        height: 230px;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h3 {
        font-size: 23px;
    }

    .Certi1 {
        height: 280px;
    }

    .footer {
        padding: 45px 12px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-about p {
        max-width: 100%;
        margin: auto;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-email {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* small mobile */

@media (max-width: 400px) {

    .navname a {
        font-size: 18px;
    }

    .mobileMenulist {
        width: calc(100% - 20px);
    }

    #Home {
        padding: 85px 10px 45px;
    }

    .rightcpart img {
        width: 200px;
        height: 200px;
    }

    #heading {
        font-size: 34px;
    }

    #heading2 {
        font-size: 18px;
    }

    #About,
    #Projects,
    #Certificates {
        padding-left: 10px;
        padding-right: 10px;
    }

    .about-content h2 {
        font-size: 30px;
    }

    .project-image {
        height: 190px;
    }

    .project-content {
        padding: 18px;
    }

    .project-content h3 {
        font-size: 21px;
    }

    .Certi1 {
        height: 230px;
    }

    .footer {
        padding-left: 10px;
        padding-right: 10px;
    }
}
