@import './tabler-icons.min.css'; 
@import './common.css';


/* _____________________ CALL BUTTON _____________________ */
.cta_button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding: 10px;

    background-color: var(--color);
    color: #252525;
    font-weight: 800;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    width: 70px;
    height: 70px;


    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
}

.cta_button:hover {
    transform: scale(1.3);
}

.cta_button i {
    font-size: 30px;
}


/* _____________________ HEADER _____________________ */

.header{
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    padding-top: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f1f1f1
}

.header .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .menu_items{
    display: flex;
    align-items: center;
}

.header .menu_item{
    margin-left: 15px;
    margin-right: 15px;
    font-weight: 600;
}

.menu_item .menu_item_link:hover{
    color: var(--color);
}

/* _____________________ LOGO _____________________ */
.logo {
    display: flex;
    align-items: center;
}
.logo_img {
    width: 37px;
    height: 41px;
    background-color: var(--color);
    border-radius: 12px 10px 50px 10px;
}
.logo_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.9;
    color: #252525;
    margin-left: -30px;
    font-size: 20px;
    font-weight: 600;
}


/* _____________________ THEME _____________________ */
.switch {
    border: 2px solid rgba(var(--color-text-rgb), 0.1);
    border-radius: 45px;
    width: 72px;
    padding: 4px;
    margin-right: 120px;
    position: relative;
    cursor: pointer;
}
.switch::before,
.switch::after {
    font-family: 'tabler-icons';
    position: absolute;
    top: 4px;
    font-size: var(--fs-big);
}
.switch::before {
    content: "\eb30";
    left: -30px;
    color: var(--color);
}
.switch::after {
    content: "\eaf8";
    right: -30px;
    color: rgba(var(--bg-optional), 0.1);
}
.switch_button {
    width: 30px;
    height: 30px;
    background-color: var(--color);
    border-radius: 100%;
    transition-duration: 500ms;
}
.switch.active .switch_button {
    transform: translateX(100%);
}
.switch.active::after {
    color: var(--color);
}
.switch.active::before {
    color: rgba(var(--color), 0.1);
}
body.dark .logo_text{
    color: #f1f1ff;
    transition: color 0.3s ease;
}

/* _____________________ ABOUT ME PHOTO, DESCRIPTION _____________________ */

.about_me_photo{
    height: 500px;
    overflow: hidden;
    border-radius: 30px;
}
.about_me_photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* _____________________ SKILLS & PORTFOLIO _____________________ */
.skill,
.portfolio {
    box-shadow: 0 0 35px rgba(0,0,0, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
}

.skill_name,
.portfolio_name {
    margin-top: 15px;
    margin-bottom: 15px;
}

.portfolio_text {
    color: var(--color-text-optional);
    font-size: 14px;
}

.skill, .portfolio {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover, .portfolio:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* _____________________ MESSAGE _____________________ */
.message {
    background: var(--bg-optional);
    border-radius: 25px;
    padding: 20px;
    text-align: center;
}

.button_telegram, 
.button_email{
    width: 100%;
    max-width: 100%;
}

.message_buttons .ti {
    font-size: 20px;
}

.btn_telegram{
    background-color: rgb(23, 154, 255);
}

.btn_telegram:hover {
    background-color: #1C8CD6;
}

.btn_github{
    background-color: #24292e;
}

.btn_github:hover {
    background-color: #2f363d;
}

.btn_email{
    background-color: #4B5563;
}

.btn_email:hover{
    background-color: #3B444F;
}

/* _____________________ FOOTER _____________________ */

.footer {
    padding-top: 25px;
    padding-bottom: 25px;
    border-top: 2px solid #f1f1f1;
}

.footer_info {
    font-size: 12px;
    max-width: 700px;
}

/* _____________________ POPUP _____________________ */
.popup{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition-duration: 1s;
    transition-delay: 200ms;
    visibility: hidden;
    opacity: 0;
    z-index: 100;
}

.popup:target {
    transition-delay: 0s;
    visibility: visible;
    opacity: 1;
}

.popup_bg{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    z-index: 101;
}

.popup:target .popup_bg{
    opacity: 1;
}

.popup_content{
    position: relative;
    z-index: 102;
    background-color: #fff;
    border-radius: 35px;
    box-shadow: 1px 1px 30px rgba(153, 153, 153,0.5);
    width: 450px;
    padding: 30px;
    text-align: center;
    transition: 1s;
    transform: translateY(-1000px);
}

.popup:target .popup_content{
    transform: translateY(0px);
}

body.dark .popup, body.dark .col_description,
body.dark .popup_close{
    color: var(--bg);
}
