body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    padding-top: 0;
}

.wrapper {
    position: relative;
    min-height: 100vh;
}

.name-logo {
    display: flex;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
}

.trapezium {
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(to right, cornflowerblue, aqua, lightblue);
    width: 1500px;
    height: 100vh;
    clip-path: polygon(0 0, 900px 0, 700px 100%, 0 100%);
    z-index: -5;
}

.name-logo .name {
    margin-top: 5px;
    margin-left: 30px;
    color: midnightblue;
    padding-left: 60px;
    padding-top: 0;
    font-size: 45px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: 10px;
}

.name-logo .dot {
    margin-top: 0;
    margin-left: 1px;
    padding-top: 0;
    font-size: 60px;
    color: blue;
}

.hamburger {
    display: none;
}

.navlinks {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 15px;
    margin-right: 0;
    height: 60px;
    padding-left: 200px;
    padding-right: 100px;
    position: relative;
    gap: 120px;
    z-index: 2;
    white-space: nowrap;
}

.navlinks a {
    position: relative;
    display: inline-block;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-left: 20px;
    text-decoration: none;
    padding-bottom: 2px;
    color: darkgrey;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.navlinks a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
    pointer-events: none;
}

.navlinks a:hover {
    color: navy;
}

.navlinks a:hover::after {
    width: 100%;
}

.intro-text {
    color: white;
    padding-left: 50px;
    font-size: 20px;
    margin-top: 50px;
    font-family: 'DM Serif Text';
    padding: 15px;
    margin-left: 100px;
}

.fn {
    font-size: 60px;
    font-weight: bold;
    font-family: 'Goldman', sans-serif;
    color: #1a1a1a;
    white-space: nowrap;
}

.profile-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 100px auto;
    top: 155px;
    right: 535px;
    transform: translateY(-50%);
    z-index: 5;
}

.circle-frame {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 5px solid;
    border-radius: 50%;
    border-width: 3px;
    overflow: hidden;
    z-index: 1;
    background-color: #e0f7fa;
    border-color: #555;
}

.profile-image {
    position: absolute;
    width: 650px;
    height: auto;
    margin-top: 15px;
    margin-left: -65px;
    z-index: 2;
    image-rendering: crisp-edges;
}

.subnote {
    padding: 50px;
    font-size: 20px;
    font-family: 'DM Serif Text';
    padding-left: 100px;
    color: #2b2b2b;
}

.contact {
    background-color: navy;
    color: white;
    border: none;
    margin-left: 300px;
    margin-top: -30px;
    margin-bottom: 10px;
    padding: 10px 20px;
    font-size: 18px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 100px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact:hover {
    background-color: blue;
    color: whitesmoke;
    transition: all 0.3s ease;
}

.social-img {
    width: 35px;
    height: auto;
}

.social-icons {
    display: flex;
    gap: 90px;
    margin-left: 205px;
    margin-top: 50px;
}

.social-icons img.insta-logo {
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.social-icons img.fb-logo {
    width: 56px;
    height: 42px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.social-icons img.wa-logo {
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.social-icons img.insta-logo:hover,
.social-icons img.fb-logo:hover,
.social-icons img.wa-logo:hover {
    transform: scale(1.2);
}

@media (max-width: 480px) {

    /* 1. Base Setup: Lock to viewport size to prevent stretching */
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        overflow-y: hidden;
        text-align: left;
        /* Force left alignment across the board */
    }

    .trapezium {
        z-index: -10;
    }

    /* 2. Main Containers: Establish layering contexts */
    .navbar {
        display: block;
        /* Remove flexbox to stop desktop alignment rules */
        position: relative;
        min-height: 100vh;
        width: 100vw;
        overflow: hidden;
        /* Prevents the image from causing scrolling */
    }

    /* The wrapper holds all your text. We pull it to the front. */
    .wrapper {
        position: relative;
        z-index: 10;
        /* LAYER 10: Sits on top of the image */
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-center;
        z-index: 1;
    }

    .subnote {
        display: none !important;
    }

    .profile-wrapper {
        position: relative !important;
        bottom: 0 !important;
        right: 0 !important;
        height: 1450px !important;
        width: 450px !important;
        z-index: 0 !important;
        display: flex !important;
        background-color: transparent !important;
        ;
    }

    .circle-frame {
        position: relative !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: transparent !important;
        display: block !important;
        visibility: visible !important;
        overflow: visible !important;
    }

    .profile-image {
        position: static;
        display: block;
        visibility: visible;
        padding-top: 65px;
        padding-left: -20px;
        height: auto;
        z-index: -90;
        opacity: 0.75;
    }

    /* 5. Header & Logo Positioning */
    .name-logo {
        position: absolute;
        top: 20px;
        left: 20px;
        margin: 0;
        padding: 0;
    }

    .name-logo .name {
        font-size: 30px;
        margin-top: 10px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        padding: 0;
    }

    .name-logo .dot {
        margin: 0;
        margin-left: 5px;
        margin-top: -10px;
        font-size: 45px;
    }

    /* 6. Text Formatting (Left aligned, positioned over the chest) */
    .intro {
        margin-top: -200px;
        text-align: center;
    }

    .intro-text {
        margin: 0;
        padding: 0;
        font-size: 22.5px;
        line-height: 1.2;
    }

    .fn {
        font-size: 40px;
        white-space: normal;
        /* Allows your name to wrap cleanly */
    }

    .button {
        margin-top: 40px;
        margin-left: 110px;
    }

    .contact {
        margin: 0;
        border-radius: 15px;
        align-items: center;
        padding: 10px 25px;
    }

    .social-icons {
        margin-top: 40px;
        margin-left: 110px;
        padding: 0;
        gap: 25px;
        flex-direction: row;
    }

    .social-icons img.insta-logo {
        width: 35px;
        height: 35px;
    }

    .social-icons img.fb-logo {
        width: 45px;
        height: 35px;
    }

    .social-icons img.wa-logo {
        width: 35px;
        height: 35px;
    }

    /* 8. Hamburger Menu */
    .hamburger {
        display: block;
        position: absolute;
        top: 32px;
        right: 25px;
        font-size: 20px;
        z-index: 100;
        color: #1a1a1a;
    }

    .navlinks {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 20px 0;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
        z-index: 99;
        text-align: center;
        gap: 0;
        height: auto;
    }

    .navlinks.active {
        display: flex;
    }

    .navlinks a {
        font-size: 20px;
        margin: 15px 0;
        padding: 10px;
        display: block;
    }
}

@media (480px < width <=768px) {
    body {
        overflow-x: hidden;
    }

    .profile-wrapper {
        position: static;
        transform: none;
        margin: 20px auto;
        top: auto;
        right: auto;
    }

    .name-logo {
        font-size: 25px;
    }

    .name-logo .name {
        margin-left: 10px;
        padding-left: 20px;
        font-size: 50px;
    }

    .circle-frame {
        position: static;
        width: 300px;
        height: 300px;
        border-radius: 25%;
    }

    .profile-image {
        position: static;
        width: 100%;
        height: auto;
        margin: 0;
        top: auto;
        left: auto;
    }

    .trapezium {
        width: 100%;
        height: 100vh;
    }
}