/* Responsive Styles for Mobile, Tablet, and Smaller Devices */

@media screen and (max-width: 1024px) {
    .skill-div {
        width: 100%;
        justify-content: center;
    }
    
    .sec-div {
        width: 45%;
    }
}

@media screen and (max-width: 768px) {
    /* Hide fixed icon navigation on mobile screens */
    .icon-nav {
        display: none;
    }

    /* Navbar & Menu Bar */
    nav {
        justify-content: space-between;
        padding: 0 15px;
        height: 60px;
    }

    .logo {
        font-size: 35px;
        letter-spacing: 5px;
        flex-basis: auto;
    }

    .menu-bar {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        max-width: 60%;
        padding: 5px 0;
    }

    .menu-bar::-webkit-scrollbar {
        display: none;
    }

    .menu-bar a {
        font-size: 14px;
        padding: 5px 10px;
    }

    /* Header & Hero Section */
    header {
        height: auto;
        min-height: 100vh;
        clip-path: none; /* Removes the angled polygon shape for cleaner mobile layout */
        padding-bottom: 50px;
    }

    .hero-section-row {
        flex-direction: column-reverse;
        text-align: center;
        padding: 20px 15px;
    }

    .hero-left-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-left-col > p {
        text-align: center;
    }

    .name {
        width: 100%;
        justify-content: center;
        font-size: 40px;
    }

    .wraper {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }

    .hero-right-col {
        width: 280px;
        height: 280px;
        margin-top: 20px;
    }

    /* About Section */
    .section {
        height: auto;
        padding: 40px 0;
    }

    .row {
        padding: 20px 10px;
        flex-direction: column;
    }

    .left-col {
        width: 100%;
        min-width: auto;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .left-col img {
        width: 80%;
        height: auto;
        padding-left: 0;
    }

    .right-col {
        width: 90%;
        padding: 15px;
    }

    .right-col > p {
        margin-right: 0;
        font-size: 14px;
    }

    /* Skills Section */
    #skills {
        background-size: cover;
    }

    .skill-div {
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .sec-div {
        width: 90%;
        margin-bottom: 20px;
    }

    progress {
        width: 70%;
    }

    /* Project Section */
    .project-main {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
        margin: 10px 0;
    }
    
    .project-card:hover {
        transform: scale(1.02); /* Reduced scale effect for mobile touch performance */
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .name {
        font-size: 32px;
    }

    .hero-right-col {
        width: 220px;
        height: 220px;
    }

    .sec-div {
        width: 100%;
        padding: 10px;
    }

    progress {
        width: 60%;
    }
}

/* ============= Responsive CSS for Contact & Footer ============= */

@media screen and (max-width: 768px) {
    .contact-container {
        width: 95%;
        flex-direction: column;
        gap: 20px;
    }

    .contact-info, 
    .contact-form-wrapper {
        width: 100%;
        min-width: auto;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .footer-logo {
        font-size: 30px;
    }
}

@media screen and (max-width: 480px) {
    .contact-card-item {
        padding: 15px;
        gap: 15px;
    }

    .contact-card-item i {
        font-size: 20px;
        padding: 12px;
    }

    .contact-card-item h3 {
        font-size: 16px;
    }

    .contact-card-item p {
        font-size: 13px;
    }
    #contact{
        margin-top: 0px;
    }
}