* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    color: whitesmoke;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.header {
    margin-top: 10px;
    color: antiquewhite;
    display: flex;
    justify-content: space-around;
}


ul {
    margin-top: 10px;
    display: flex;
    list-style: none;
    gap: 20px;
}

a {
    text-decoration: none;
}

.navbar a,
.navbar h1 {
    cursor: pointer;
    text-decoration: none;
    color: antiquewhite;
    position: relative;
    padding: 10px;
}

.navbar a::after,
.navbar h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: antiquewhite;
    transition: width 0.3s ease;
}

.navbar a:hover::after,
h1:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: antiquewhite;
    transition: all 0.3s ease;
}


.homeDetails {
    margin-top: 150px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.homeText {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 550px;
}

.homeText h1 {
    width: 550px;
    box-shadow: 8px 8px 12px;
    transition: all 0.5s ease;
}

#typed-text {
    color: goldenrod;
    text-shadow: 0px 0px 10px gold;
}

.Homebtn {
    padding: 10px 20px;
    background-color: blanchedalmond;
    border: 2px solid blanchedalmond;
    border-radius: 15px;
    box-shadow: 0 0 10px blanchedalmond;
    cursor: pointer;
    transition: all 0.6s ease;
    align-self: start;
}

.Homebtn a {
    color: #111;
    text-decoration: none;
}

.Homebtn:hover {
    box-shadow: 0 0 30px blanchedalmond;
}


.aboutMe {
    display: flex;
    justify-content: space-around;
    padding: 60px;
}

.aboutH {
    margin-left: 100px;
    margin-top: 150px;
    color: burlywood;
}

.aboutText {
    padding-top: 50px;
}

.aboutText p {
    line-height: 1.6;
}

.highlight {
    background-color: rgb(255, 255, 0);
    color: black;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 0px 20px 20px 20px;
}

.highlight2 {
    background-color: rgb(255, 255, 0);
    color: black;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 20px 0px 20px 20px;
}

.highlight3 {
    background-color: rgb(255, 255, 0);
    color: black;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 40px 10px 20px 10px / 10px 0px 10px 5px;
}

.btn {
    padding: 10px;
    color: black;
    background-color: blanchedalmond;
    border: 2px solid blanchedalmond;
    border-radius: 59px 19px 29px 10px / 14px 0px 19px 5px;
    box-shadow: 0 0 10px blanchedalmond;
    cursor: pointer;
    margin-left: 20px;
    transition: all 0.6s ease;
}


.btn:hover {
    box-shadow: 0px 0px 20px burlywood;
}

/* projects section  */

.projects-section {
    padding: 60px 20px;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: bisque;
    text-shadow: 0 0 20px rgb(255, 178, 12);
}

.project-card {
    background-color: #111;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(221, 144, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h2 {
    color: burlywood;
    margin-bottom: 10px;
}

.project-card p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-card h3 {
    margin-top: 15px;
    font-size: 1.1rem;
}

.project-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-card ul li {
    background-color: #222;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: aquamarine;
}

.btn-group {
    margin-top: 15px;
}

.project-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.project-content {
    flex: 1;
    min-width: 250px;
}

.project-image img {
    width: 300px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    transition: transform 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.05);
}

/* skills scroll effect */

.scroll-wrapper {
    width: 100%;
    overflow: hidden;
    background: #111;
    padding: 20px 0;
}

.scroll-track {
    display: flex;
    gap: 40px;
    animation: scrollLeft 25s linear infinite;
}

.tech-icon {
    width: 60px;
    height: 60px;
    background-color: #222;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transition: transform 0.3s;
}

.tech-icon:hover {
    transform: scale(1.2);
}

.tech-icon img {
    max-width: 100%;
    max-height: 100%;
}


@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.skills {
    text-align: center;
}

.skills h1 {
    margin-bottom: 20px;
    color: bisque;
}

#contact {
    padding: 70px;
}

#contactMe {
    margin-top: 30px;
    margin-bottom: 25px;
}


#contactMe h2 {
    color: antiquewhite;
}

.contact-image {
    width: 20px;
    height: 20px;
}

.contactDiv {
    display: flex;
    justify-content: space-around;
}

.form {
    padding-top: 20px;
    padding-left: 20px;
    width: 300px;
    height: 300px;
    background-color: #222;
    border-radius: 59px 19px 29px 10px / 14px 0px 19px 5px;
    box-shadow: 10px 10px 14px #545353;
}

.contactDetials p {
    line-height: 2.5;
}

.contactDetials {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 300px;
    width: 350px;
    padding-left: 25px;
    background-color: #222;
    border-radius: 59px 19px 29px 10px / 14px 0px 19px 5px;
    box-shadow: 10px 10px 14px #545353;
}

.contactDetials a {
    color: bisque;
}

footer {
    margin-top: 20px;
    text-align: center;
}

/* Media Queries finally ending */
/* ========== Tablet Devices (≤768px) ========== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    ul {
        flex-direction: column;
        gap: 10px;
    }

    .homeDetails {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .homeImg {
        max-width: 90%;
    }

    .aboutMe {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }

    .aboutH {
        margin-left: 0;
        text-align: center;
    }

    .project-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-content {
        text-align: center;
    }

    .project-card ul {
        justify-content: center;
    }

    .contactDiv {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .form,
    .contactDetials {
        width: 90%;
        height: auto;
        padding: 20px;
    }

    .scroll-track {
        animation-duration: 40s;
        /* slow down for smaller screens */
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 70px;
        right: 20px;
        background-color: #111;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }

    .nav-links.show {
        display: flex;
    }

    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 0 20px;
    }

    ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .tech-icon img {
        min-width: 50px;
    }
}

/* ========== Mobile Devices (≤480px) ========== */
@media (max-width: 480px) {
    .homeText h1 {
        width: 100%;
        font-size: 1.5rem;
    }

    .homeText p {
        font-size: 0.9rem;
    }

    .section-title,
    .skills h1 {
        font-size: 1.8rem;
    }

    .project-card img {
        width: 90%;
    }

    .btn {
        width: 100%;
        margin: 10px 0;
    }

    .Homebtn {
        align-self: center;
    }

    .contact-image {
        width: 16px;
        height: 16px;
    }

    footer {
        font-size: 0.8rem;
    }

}