body {
    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.p {
    max-width: 100%;
}

.main {
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Updated responsive image styles */
.main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

.img {
    height: auto;
    max-width: 100%;
    margin-bottom: 10px;
    display: block;
    margin: 0 auto;
}

.header-content {
    margin-top: 30px;
}

.logo {
    font-size: 31px;
    font-weight: bold;
    color: #de000f;
}

.sub-heading {
    font-size: 15px;
    color: #777;
}

nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    font-weight: 600;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
}

/* Updated responsive logo styles */
.logo-img {
    max-width: 100px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
    margin-top: 50px;
    line-height: normal;
}

.featured {
    margin-top: 40px;
}

.featured h2 {
    font-size: 18px;
    color: #777;
    margin-bottom: 20px;
}

.projects {
    display: flex;
    justify-content: space-between;
}

.project {
    width: 48%;
}

.project img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.project h3 {
    margin: 0;
    font-size: 18px;
}

.project p {
    color: #777;
    font-size: 14px;
}

footer {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 14px;
}

footer div {
    width: 48%;
}

footer h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

footer ul {
    list-style-type: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 5px;
}

footer ul li a {
    text-decoration: none;
    color: #333;
}

/* Styles for icons */
.icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.logo-area {
    display: flex;
    align-items: center;
}

footer ul li a {
    display: flex;
    align-items: center;
}

footer ul li a .icon {
    margin-right: 5px;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
    color: #cccbcb;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #d4d4d4;
}

.separator::before {
    margin-right: 10px;
}

.separator::after {
    margin-left: 10px;
}

.emoji {
    padding: 0 5px;
    color: transparent;
    text-shadow: 0 0 0 #cccbcb;
}

/* General responsive image rule */
img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 414px) {
    /* Styles for larger iPhones like iPhone XR, 11, 12, 13, 14, 15 Pro Max */
    body {
        width: 100%;
        margin: 0 auto;
        padding: 10px;
    }

    header,
    .main,
    footer,
    .separator {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .header-content,
    nav,
    .featured,
    .projects,
    footer div {
        width: 100%;
    }

    .project {
        width: 100%;
        margin-bottom: 20px;
    }

    p {
        width: 100%;
        max-width: 100%;
    }
    
    .logo {
        font-size: 24px;
        line-height: normal;
    }

    .sub-heading {
        font-size: 10px;
    }

    h1 {
        font-size: 21px;
        line-height: normal;
    }

    .logo-img {
        max-width: 80px;
    }

    .main img {
        width: 100%;
        max-width: 100%;
    }

    .separator::before,
    .separator::after {
        width: 100%;
    }

    .separator {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    body {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    header,
    .main,
    footer,
    .separator,
    p {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .projects {
        flex-direction: column;
    }

    .project {
        width: 100%;
        margin-bottom: 20px;
    }

    .main img {
        width: 100%;
        max-width: 100%;
    }
    .separator {
        font-size: 16px;
    }
}