/* ==========================================================================    FONT IMPORTS    ========================================================================== */
@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);

/* ==========================================================================    CSS CUSTOM PROPERTIES (VARIABLES)    ========================================================================== */
:root {
    /* Primary Color Palette */
    --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%);
    /* Background Colors */
    --color-bg-dark: hsl(240, 2%, 12%);
    --color-bg-darker: hsl(240, 2%, 10%);
    --color-bg-medium: hsl(240, 2%, 15%);
    /* Text Colors */
    --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%);
    /* Border Colors */
    --color-border: hsl(0, 0%, 22%);
    --color-border-light: hsla(0, 0%, 22%, 0.3);
    --color-border-lighter: hsla(0, 0%, 30%, 0.3);
    /* Shadow Colors */
    --color-shadow: hsla(0, 0%, 0%, 0.15);
    --color-shadow-dark: hsla(0, 0%, 0%, 0.25);
    /* Social Media Brand Colors */
    --color-success: #4CAF50;
    --color-linkedin: #0a66c2;
    --color-whatsapp: #25D366
}

/* ==========================================================================    GLOBAL RESET & BASE STYLES    ========================================================================== */
/* Universal Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

/* HTML Base Styles */
html {
    font-family: sans-serif;
    scroll-behavior: smooth
}

/* Body Base Styles */
body {
    background: #111
}

/* ==========================================================================    MAIN LAYOUT CONTAINER    ========================================================================== */
/* Main Grid Layout - Sidebar + Content */
main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px
}

/* ==========================================================================    SIDEBAR (ASIDE) - PROFILE SECTION    ========================================================================== */
/* Common Flex Properties for Profile Elements */
.profile-avatar,
.profile-card,
aside {
    display: flex;
    position: relative;
}

/* Sidebar Container */
aside {
    flex-direction: column;
    gap: 20px;
    z-index: 1;
    max-height: 100vh;
    position: sticky;
    top: 0
}

/* Profile Sidebar Container */
.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
}

/* Language Toggle Button */
/* .language-toggle {
    background: rgba(255, 219, 112, 0.1);
    border: 1px solid rgba(255, 219, 112, 0.3);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 15px auto 0;
    width: fit-content;
} */

/* .language-toggle:hover {
    background: rgba(255, 219, 112, 0.2);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 219, 112, 0.2);
} */

/* .language-toggle i {
    font-size: 12px;
} */

/* .language-toggle span {
    font-weight: 600;
    letter-spacing: 0.5px;
} */

/* Profile Card Container */
.profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    align-items: center;
}

/* Profile Avatar Container */
.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 Image */
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s
}

/* Profile Avatar Hover Effect */
.profile-avatar:hover img {
    transform: scale(1.05)
}

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

/* Profile Role & Interactive Elements Color */
.contact-icon,
.contact-item:hover .contact-label,
.menu-item button:hover,
.profile-expand-btn,
.profile-role {
    color: var(--color-primary, #ffdb70)
}

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

/* Profile Details Container */
.profile-details {
    width: 100%;
    margin-bottom: 0
}

/* Profile Expand Button (Mobile) */
.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 Button Base Styles */
.contact-icon,
.menu-item button {
    font-size: 16px;
    position: relative
}

/* Profile Expand Button Hover Effect */
.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%)
}

/* ==========================================================================    CONTACT SECTION (SIDEBAR)    ========================================================================== */
/* Section Divider */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-primary, #ffdb70), transparent);
    margin: 24px 0;
    opacity: .3
}

/* Contact List Container */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0
}

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

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

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

/* Contact Content Container */
.contact-content {
    flex: 1
}

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

/* Contact Value (Links) Styling */
.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 Effect */
.contact-value:hover {
    color: #c39f01
}

/* ==========================================================================    MAIN CONTENT WRAPPER    ========================================================================== */
/* Content Wrapper Container */
.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))
}

/* ==========================================================================    NAVIGATION & PAGE SECTIONS    ========================================================================== */
/* Common Background for Navigation & Pages */
.page,
.primary-navigation {
    background: linear-gradient(145deg, hsla(240, 2%, 15%, .95), hsla(240, 2%, 15%, .85))
}

/* Primary Navigation Container */
.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 List */
.navigation-menu {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0
}

/* Navigation Menu Buttons */
.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
}

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

/* Page Sections Base Styles */
.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)
}

/* Active Page State */
.page.active {
    display: block;
    opacity: 1
}

/* ==========================================================================    SCROLL TO TOP BUTTON    ========================================================================== */
/* Scroll to Top Button */
#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
}

/* Scroll to Top Button Visible State */
#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

/* Scroll to Top Button Hover Effect */
#scrollToTopBtn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .25)
}

/* Scroll to Top Button Active State */
#scrollToTopBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2)
}

/* ==========================================================================    RESPONSIVE DESIGN - MEDIA QUERIES    ========================================================================== */
/* Tablet Landscape (1024px and below) */
@media screen and (max-width:1024px) {

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

    .language-toggle {
        margin: 20px auto 15px;
        font-size: 13px;
    }

    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
    }

    aside {

        position: static;
    }

}

/* Tablet Portrait (768px and below) */
@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
    }
}

/* Small Tablet (680px and below) */
@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
    }
}

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

    .language-toggle {
        margin: 15px auto 12px;
        padding: 5px 8px;
        font-size: 12px;
        border-radius: 8px;
    }

    .language-toggle i {
        font-size: 10px;
    }

    .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
    }
}

/* Mobile Medium (510px and below) */
@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
    }
}

/* Mobile Small (480px and below) */
@media (max-width:480px) {
    #scrollToTopBtn {
        width: 35px;
        height: 35px;
        font-size: 18px;
        bottom: 15px;
        right: 15px
    }
}

/* Mobile Extra Small (400px and below) */
@media screen and (max-width:400px) {
    main {
        padding: 4px
    }

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

@media (max-width: 380px) {
    .primary-navigation {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        padding: 0.8rem;
        margin-bottom: 1.5rem;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navigation-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin: 0;
        padding: 0;
    }



    .menu-item button {
        width: 100%;
        font-size: 0.8rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
        transition: all 0.3s ease;
        text-align: center;
    }


    .menu-item:last-child {
        grid-column: 1 / -1;
    }

    .menu-item:last-child button {
        max-width: 200px;
        margin: 0 auto;
    }

    main {
        display: block;
        padding: 0;
    }

    .profile-sidebar {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    .profile-card {
        padding: 1rem;
        text-align: center;

    }
    .profile-avatar{
        margin-top:20px ;
    }

}


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

/* Mobile Ultra Small (330px and below) */
@media (max-width:330px) {

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

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

    .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
    }


}