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

/*HTML*/
html {
    scroll-behavior: smooth;
}

/*BODY*/
html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    background: linear-gradient( 135deg, #F5EFD6 0%, #f7d1ff 50%, #f1b0ff 100%);
    color: #000000;
}

/*LANGUAGE SWITCHER*/
.language-switcher {
    position: fixed;
    top: 25px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1200;
}


.language-btn {
    border: none;
    background: transparent;
    color: #777777;
    padding: 7px 11px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-btn:hover {
    color: #000000;
}

.language-btn.active {
    background: #000000;

    color: #ffffff;
}

.language-btn:active {
    transform: scale(0.95);
}

/*SIDEBAR*/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 230px;
    height: 100vh;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.55);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
}

/*SIDEBAR LOGO*/
.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    flex-shrink: 0;
}

.sidebar-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*SIDEBAR NAVIGATION*/
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-bottom a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #555555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a i,
.sidebar-bottom a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-nav a:hover,
.sidebar-bottom a:hover {
    color: #000000;
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(4px);
}

.sidebar-nav a.active {
    color: #000000;
    background: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.sidebar-bottom {
    margin-top: auto;
}

/*MOBILE MENU*/

.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #000;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease, right 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.menu-toggle.sidebar-open {
    left: auto;
    right: 20px;
}

/*MAIN PAGE*/
.portfolio {
    width: calc(100% - 230px);
    min-height: 100vh;
    margin-left: 230px;
    padding: 60px 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 90px;
    overflow-x: hidden;
}

/*PROFILE IMAGE*/

.profile-image {
    flex: 0 1 280px;
    width: 280px;
    max-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    display: block;
    width: 280px;
    height: 280px;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    box-shadow: none;
}

/*PROFILE CONTENT*/
.profile-content {
    width: 100%;
    max-width: 800px;
    min-width: 0;
}

/*INTRO*/
.intro {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: #555555;
}

/*NAME*/
.profile-content h1 {
    margin-bottom: 20px;
    font-size: 3.5rem;
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 600;
    color: #000000;
}

/*SPECIALITIES*/
.profile-content h2 {
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    color: #555555;
}

/*DESCRIPTION*/
.description {
    max-width: 700px;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.8;
    color: #222222;
}

/*SOCIAL LINKS*/
.social-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.05);
    opacity: 0.75;
}

.social-links img {
    display: block;
    width: 50px;
    height: 50px;
    max-width: 100%;
    object-fit: contain;
}

/*MOBILE*/
@media (max-width: 850px) {

    /* SIDEBAR */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* MOBILE BUTTON */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* LANGUAGE */
    .language-switcher {
        top: 20px;
        right: 80px;
    }

    /* MAIN */
    .portfolio {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        min-height: 100vh;
        padding: 110px 30px 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        overflow-x: hidden;
        overflow-y: visible;
    }

    /* PROFILE IMAGE */
    .profile-image {
        width: min(60vw, 230px);
        height: min(60vw, 230px);
        max-width: 100%;
        max-height: 100%;
        flex: 0 1 auto;
    }

    .profile-image img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: none;
        box-shadow: none;
    }

    /* PROFILE CONTENT */
    .profile-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        overflow-wrap: break-word;
    }

    /* INTRO */
    .intro {
        width: 100%;
        max-width: 100%;
        margin-bottom: 8px;
        font-size: clamp( 0.9rem, 4vw, 1rem);
        line-height: 1.5;
    }

    /* NAME */
    .profile-content h1 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 18px;
        font-size: clamp( 2.5rem, 9vw, 3.5rem);
        line-height: 1;
        letter-spacing: -0.045em;
        overflow-wrap: anywhere;
    }

    /* SPECIALITIES */
    .profile-content h2 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 25px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: clamp( 0.85rem, 3.8vw, 1rem);
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    /* DESCRIPTION */
    .description {
        width: 100%;
        max-width: 700px;
        margin-bottom: 30px;
        font-size: clamp(0.9rem, 3.8vw, 1rem);
        line-height: 1.75;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    /* SOCIAL LINKS */
    .social-links {
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: clamp(10px, 3vw, 18px);
        overflow: hidden;
    }

    .social-links a {
        width: clamp(40px, 12vw, 50px);
        height: clamp(40px, 12vw, 50px);
        flex: 0 1 auto;
    }

    .social-links img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }
}

/*SMALL MOBILE*/
@media (max-width: 480px) {

    /* MAIN */
    .portfolio {
        padding: 100px 20px 50px;
        gap: 32px;
    }

    /* IMAGE */
    .profile-image {
        width: min(55vw, 200px);
        height: min(55vw, 200px);
    }

    /* NAME */
    .profile-content h1 {
        font-size: clamp(2.25rem, 10vw, 3rem);
        line-height: 1.02;
    }

    /* SPECIALITIES */
    .profile-content h2 {
        font-size: 0.85rem;
        line-height: 1.7;
        gap: 4px;
    }

    /* DESCRIPTION */
    .description {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    /* SOCIAL */
    .social-links {
        gap: 12px;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    .social-links img {
        width: 44px;
        height: 44px;
    }
}

/*VERY SMALL MOBILE*/
@media (max-width: 360px) {

    .portfolio {
        padding: 95px 16px 45px;
        gap: 28px;
    }

    .profile-image {
        width: 170px;
        height: 170px;
    }

    .profile-content h1 {
        font-size: 2.15rem;
    }

    .profile-content h2 {
        font-size: 0.8rem;
    }

    .description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .social-links a,
    .social-links img {
        width: 42px;
        height: 42px;
    }
}