@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Lobster&display=swap);

:root {
    --color-primary: hsl(45, 100%, 72%);
    --color-primary-light: hsla(45, 100%, 72%, 0.1);
    --color-primary-medium: hsla(45, 100%, 72%, 0.2);
    --color-primary-dark: hsl(45, 90%, 65%);
    --color-bg-dark: hsl(240, 2%, 12%);
    --color-bg-darker: hsl(240, 2%, 10%);
    --color-bg-medium: hsl(240, 2%, 15%);
    --color-text-white: #ffffff;
    --color-text-light: hsl(0, 0%, 85%);
    --color-text-medium: hsl(0, 0%, 75%);
    --color-text-dark: hsl(0, 0%, 60%);
    --color-text-darker: hsl(0, 0%, 50%);
    --color-border: hsl(0, 0%, 22%);
    --color-border-light: hsla(0, 0%, 22%, 0.3);
    --color-border-lighter: hsla(0, 0%, 30%, 0.3);
    --color-shadow: hsla(0, 0%, 0%, 0.15);
    --color-shadow-dark: hsla(0, 0%, 0%, 0.25);
    --color-success: #4CAF50;
    --color-linkedin: #0a66c2;
    --color-whatsapp: #25D366
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    font-family: sans-serif;
    scroll-behavior: smooth
}

body {
    background: #111
}

main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px
}

.profile-avatar,
.profile-card,
aside {
    display: flex;
    position: relative
}

aside {
    flex-direction: column;
    gap: 20px;
    z-index: 1;
    max-height: 120vh
}

.profile-sidebar {
    background: linear-gradient(to bottom right, #1d1d1f 0, var(--color-bg-darker, #18181a) 100%);
    border: 1px solid var(--color-border, #383838);
    border-radius: 20px;
    z-index: 1;
    width: 300px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
    transition: .3s
}

.profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 25px
}

.profile-avatar {
    background-color: #333;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1)
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s
}

.profile-avatar:hover img {
    transform: scale(1.05)
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #f3f6fc;
    letter-spacing: -.3px
}

.contact-icon,
.contact-item:hover .contact-label,
.menu-item button:hover,
.profile-expand-btn,
.profile-role {
    color: var(--color-primary, #ffdb70)
}

.profile-role {
    font-size: .9rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 1px
}

.profile-details {
    width: 100%;
    margin-bottom: 0
}

.profile-expand-btn {
    position: absolute;
    top: -19px;
    right: -15px;
    border-radius: 10px;
    font-size: 14px;
    background: linear-gradient(to bottom right, #3f3f3f 0, hsla(0, 0%, 25%, 0) 50%);
    padding: 12px 15px;
    box-shadow: 0 16px 30px var(--color-shadow-dark, hsla(0, 0%, 0%, .25));
    transition: .3s;
    z-index: 1;
    cursor: pointer;
    border: none;
    display: none
}

.contact-icon,
.menu-item button {
    font-size: 16px;
    position: relative
}

.profile-expand-btn:hover {
    transform: translateY(-2px);
    color: var(--color-text-white, #fff);
    background: linear-gradient(to bottom right, var(--color-primary, #ffdb70) 0, hsla(36, 100%, 69%, 0) 50%)
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-primary, #ffdb70), transparent);
    margin: 24px 0;
    opacity: .3
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: .3s;
    gap: 16px;
    overflow: hidden
}

.contact-item:hover {
    transform: translateX(8px);
    background: linear-gradient(to right, transparent, hsla(240, 2%, 15%, .5), transparent)
}

.contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1
}

.contact-content {
    flex: 1
}

.contact-label {
    color: var(--color-text-dark, #999);
    font-size: 14px;
    margin-bottom: 6px;
    transition: color .3s
}

.contact-value {
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f9f9f9;
    font-size: 13px
}

.contact-value:hover {
    color: #c39f01
}

.content-wrapper {
    background: var(--color-bg-dark, #1d1d1f);
    border: 1px solid var(--color-border, #383838);
    border-radius: 20px;
    padding: 30px;
    box-shadow: -4px 8px 24px var(--color-shadow-dark, hsla(0, 0%, 0%, .25))
}

.page,
.primary-navigation {
    background: linear-gradient(145deg, hsla(240, 2%, 15%, .95), hsla(240, 2%, 15%, .85))
}

.primary-navigation {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 25px;
    box-shadow: 0 15px 30px var(--color-shadow, hsla(0, 0%, 0%, .15));
    position: sticky;
    top: 0;
    z-index: 1
}

.navigation-menu {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0
}

.menu-item button {
    color: var(--color-text-medium, #bfbfbf);
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 20px;
    border: none;
    background: 0 0;
    cursor: pointer
}

.menu-item button:hover {
    transform: translateY(-2px);
    background: var(--color-primary-light, hsla(45, 100%, 72%, .1))
}

.page {
    display: none;
    opacity: 0;
    transition: opacity .5s ease-in-out;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 40px hsla(0, 0%, 0%, .2)
}

.page.active {
    display: block;
    opacity: 1
}

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-bg-dark);
    border: none;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: .3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    z-index: 1000
}

#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

#scrollToTopBtn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .25)
}

#scrollToTopBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2)
}

@media screen and (max-width:1024px) {

    .profile-role,
    .time {
        color: #ffdb70
    }

    main {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 800px
    }

    .profile-sidebar {
        width: 100%;
        max-width: 7000px
    }

    .profile-avatar {
        width: 140px;
        height: 140px;
        margin: 0 auto 25px;
        position: relative;
        border: 4px solid rgba(243, 246, 252, .1)
    }

    .profile-name {
        font-size: 1.8rem;
        font-weight: 700
    }

    .contact-value,
    .profile-role {
        font-size: 1rem
    }

    .contact-container {
        transform: none;
        transition: .5s;
        position: relative
    }

    .contact-item {
        background: rgba(255, 255, 255, .03)
    }

    .contact-item:hover {
        background: rgba(255, 255, 255, .07);
        transform: translateY(-2px)
    }

    .contact-content {
        font-weight: 800
    }

    .profile-expand-btn::before {
        content: 'More Information';
        display: inline-block;
        margin-right: 5px
    }

    .profile-expand-btn i {
        margin-left: 5px
    }

    .section-title {
        font-size: 1.5rem;
        position: relative;
        padding-left: 15px
    }

}

@media (max-width:768px) {
    .profile-name {
        font-size: 1.5rem;
        font-weight: 700
    }

    .profile-role {
        font-size: 1.01rem;
        font-weight: 500
    }

    .contact-label {
        font-size: .85rem;
        margin-bottom: 2px
    }

    .contact-value {
        font-size: .87rem
    }


    .section-header {
        margin-bottom: 30px
    }

    .section-title {
        font-weight: 600;
        font-size: 22px;
        color: #ffdb70
    }

    .section-subtitle {
        font-size: 14px
    }

    #scrollToTopBtn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px
    }
}

@media screen and (max-width:680px) {
    .contact-value {
        font-size: .85rem
    }

    .content-wrapper {
        width: 100%;
        padding: 0 10px
    }

    .navigation-menu {
        display: flex;
        justify-content: center;
        padding: 0;
        margin: 0;
        gap: 5px
    }

    .primary-navigation {
        margin: 15px 0;
        padding: 5px;
        background-color: #f8f9fa;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .06)
    }

    .page {
        padding: 20px 15px
    }

    .section-header {
        margin-bottom: 20px;
        position: relative
    }

    .section-title {
        font-size: 22px;
        font-weight: 600;
        margin: 0 0 15px
    }


}

@media screen and (max-width:576px) {
    .profile-avatar {
        width: 90px;
        height: 90px
    }

    .profile-name {
        font-size: 1.3rem;
        font-weight: 700
    }

    .profile-role {
        font-size: .85rem;
        font-weight: 500
    }

    .menu-item button {
        padding: 10px;
        font-size: .9rem
    }

    .contact-item {
        margin-bottom: 8px;
        padding: 8px
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
        position: relative;
        padding-left: 10px
    }

    .time {
        font-size: .8rem;
        font-weight: 500
    }



    .header-icon,
    .section-subtitle {
        font-size: 20px
    }


}

@media screen and (max-width:510px) {
    .profile-sidebar {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 12px
    }

    .profile-avatar {
        width: 70px;
        height: 70px
    }

    .profile-name {
        font-size: 1.1rem;
        font-weight: 700
    }

    .profile-role {
        font-size: .75rem;
        font-weight: 500
    }

    .overview-text {
        font-size: .85rem
    }

    .menu-item button {
        padding: 6px 8px;
        font-size: .9rem
    }

    .menu-item button::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 50%;
        width: 0;
        height: 2px;
        background: #ffdb70;
        transition: .3s;
        transform: translateX(-50%);
        opacity: 0;
        border-radius: 1px
    }


    .section-title {
        font-size: 20px;
        font-weight: 600;
        color: #ffdb70
    }

    .section-subtitle {
        font-size: 14px
    }


}

@media (max-width:480px) {
    #scrollToTopBtn {
        width: 35px;
        height: 35px;
        font-size: 18px;
        bottom: 15px;
        right: 15px
    }
}

@media screen and (max-width:400px) {
    main {
        padding: 4px
    }

    

    .profile-card {
        padding: 10px 5px;
        margin-bottom: 9px
    }

}


@media screen and (max-width:370px) {
    main {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden
    }
}

@media (max-width:330px) {

    .content-wrapper,
    main {
        max-width: 100%;
        padding: 0
    }

    main {
        margin: 0;
        width: 100%;
        overflow: hidden
    }

    .profile-avatar {
        width: 60px;
        height: 60px
    }

    .profile-name {
        font-size: 1.1rem;
        font-weight: 700
    }

    .contact-value,
    .profile-role {
        font-size: .7rem
    }

    .profile-role {
        font-weight: 500
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 10px
    }
}