/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 20px;
    /*  top padding */
}

header {
    text-align: center;
    padding: 10px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

header h1 {
    font-size: 34px;
    font-weight: normal;
    color: black;
    margin: 0;
}

header p {
    font-size: 1em;
    max-width: 600px;
    margin: 0 auto;
    color: black;
}

header img {
    height: 400px;
    width: 400px;
    border-radius: 50%;
    max-width: 100%;
    height: auto;
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a img {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
}

/* Navigation */
nav ul li {
    margin: 10px 0;
}

/* Horizontal Rule Styling */
hr {
    width: 80%;
    margin: 20px auto;
    border: none;
    border-top: 1px solid #ddd;
}

/* Responsive Styling */

/* Small Screen Adjustments */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 882px) {

    header,
    .social-links {
        width: 100%;
        max-width: 100%;
    }

    header p {
        max-width: 100%;
    }
}

/* Very Small Screens */
@media screen and (max-width: 390px) {
    header img {
        height: 200px;
        width: 200px;
    }

    header h1 {
        font-size: 28px;
    }

    header p {
        font-size: 0.9em;
    }

    .social-links a img {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 360px) {
    header img {
        height: 180px;
        width: 180px;
    }

    header h1 {
        font-size: 24px;
    }

    header p {
        font-size: 0.8em;
    }

    .social-links a img {
        width: 40px;
        height: 40px;
    }

    hr {
        width: 90%;
        margin: 15px auto;
    }
}

@media screen and (max-width: 320px) {
    header img {
        height: 160px;
        width: 160px;
    }

    header h1 {
        font-size: 22px;
    }

    header p {
        font-size: 0.75em;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a img {
        width: 35px;
        height: 35px;
    }
}

/* Specific Device Breakpoints */

/* Small Devices with Specific Heights */
@media screen and (min-width: 390px) and (max-width: 415px) and (min-height: 800px),
screen and (min-width: 360px) and (max-width: 740px) and (min-height: 800px) {
    body {
        justify-content: flex-start;
        padding-top: 20px;
    }

    header {
        padding: 5px 10px;
    }

    header img {
        height: 250px;
        width: 250px;
    }

    header h1 {
        font-size: 30px;
        margin-top: 10px;
    }

    header p {
        font-size: 0.95em;
        margin-bottom: 10px;
    }

    hr {
        width: 85%;
        margin: 15px auto;
    }

    .social-links {
        gap: 12px;
        margin-top: 15px;
    }

    .social-links a img {
        width: 60px;
        height: 60px;
    }

    body::after {
        content: '';
        display: block;
        height: 30px;
    }
}

/* Tablets */
@media screen and (min-width: 768px) and (max-width: 1280px) {
    body {
        justify-content: flex-start;
        padding-top: 40px;
    }

    header img {
        height: 300px;
        width: 300px;
    }

    header h1 {
        font-size: 36px;
        margin-top: 15px;
    }

    header p {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    hr {
        width: 70%;
        margin: 25px auto;
    }

    .social-links {
        gap: 20px;
        margin-top: 25px;
    }

    .social-links a img {
        width: 70px;
        height: 70px;
    }

    body::after {
        content: '';
        display: block;
        height: 50px;
    }
}

/* Other Device-Specific Adjustments */

/* 340x350px screens */
@media screen and (min-width: 340px) and (max-width: 350px) and (min-height: 880px) {
    header img {
        height: 220px;
        width: 220px;
    }

    header h1 {
        font-size: 28px;
    }

    header p {
        font-size: 0.9em;
    }

    .social-links a img {
        width: 50px;
        height: 50px;
    }
}

/* Galaxy S III and Samsung Galaxy */
@media screen and (width: 360px) and (min-height: 640px) and (max-height: 740px) {
    header img {
        height: 200px;
        width: 200px;
    }
}

/* Nokia Lumia 520 (320x533px) */
@media screen and (max-width: 320px) and (max-height: 533px) {
    header img {
        height: 150px;
        width: 150px;
    }

    header h1 {
        font-size: 24px;
    }

    header p {
        font-size: 0.8em;
    }

    .social-links a img {
        width: 40px;
        height: 40px;
    }

    hr {
        width: 90%;
        margin: 10px auto;
    }
}

/* iPad 768x1024px */
@media screen and (width: 768px) and (min-height: 1024px) {
    header img {
        height: 300px;
        width: 300px;
    }

    header h1 {
        font-size: 36px;
    }

    header p {
        font-size: 1.1em;
    }

    .social-links a img {
        width: 70px;
        height: 70px;
    }

    hr {
        width: 70%;
        margin: 25px auto;
    }
}

/* iPad Air 820x1180px */
@media screen and (width: 820px) and (min-height: 1180px) {
    header img {
        height: 320px;
        width: 320px;
    }

    header h1 {
        font-size: 38px;
    }

    header p {
        font-size: 1.2em;
    }

    .social-links a img {
        width: 75px;
        height: 75px;
    }

    hr {
        width: 65%;
        margin: 30px auto;
    }
}

/* Galaxy Z Fold 5 */
@media screen and (width: 344px) and (min-height: 882px) {
    header img {
        height: 220px;
        width: 220px;
    }

    header h1 {
        font-size: 30px;
    }

    header p {
        font-size: 0.95em;
    }

    .social-links a img {
        width: 55px;
        height: 55px;
    }

    hr {
        width: 80%;
        margin: 20px auto;
    }
}