/* ----------------------- Google Fonts -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;700;800;900&display=swap');

/* ----------------------- CSS Variables ------------------- */
:root
{
    --header-height: 3rem;
    --nav-width: 324px;

    /* font weight */
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* Colors */
    --first-color: #808080;
    --first-color-dark: #7e7e7e;
    --first-color-darken: #245a50
    ;
    --text-color: #54423D;
    --first-color-light: #EAE7E6;
    --first-color-light-dark: #d7dcee;
    --first-color-lighten: #fff;

    /* Font & Typography */
    --body-font: 'Poppins', sans-serif;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /* Margins */
    --mb-1: .5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
    --mb-5: 2.5rem;

    /* z-index */
    --z-fixed: 100;
}

@media screen and (min-width: 768px)
{
    :root
    {
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/* BASE */
*, ::before, ::after
{
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
}

body
{
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    background-color: var(--first-color-lighten);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, p
{
    margin: 0;
}

h3
{
    font-weight: var(--font-semi-bold);
}

ul
{
    margin: 0;
    padding: 0;
    list-style: none;
}

a
{
    text-decoration: none;
    color: var(--text-color);
}

img
{
    max-width: 100%;
    height: auto;
    display: block;
}

/* Menu icon */
.bx
{
    font-size: 1.6rem;
}

/* Class CSS */
.section
{
    padding: 4rem 0 2rem;
}

.section-title
{
    font-size: var(--h1-font-size);
    color: var(--first-color);
    margin-bottom: var(--mb-3);
    text-align: center;
}

.section-subtitle
{
    display: block;
    font-size: var(--small-font-size);
    color: var(--first-color-darken);
    text-align: center;
    font-weight: var(--font-bold);
    margin-bottom: .25rem;
}

/* Layout */
.bd-grid
{
    max-width: 1024px;
    display: grid;
    grid-template-columns: 100%;
    column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}

.l-header
{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--first-color-lighten);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* -------------------- Nav ----------------------- */
.nav
{
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__menu
{
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    padding: 3rem;
    display: flex;
    align-items: center;
    background-color: var(--first-color);
    transition: .5s;
}

.nav__close
{
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--first-color-light);
    cursor: pointer;
}

.nav__item
{
    margin-bottom: var(--mb-4);
}

.nav__link
{
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--first-color-lighten);
    font-weight: var(--font-bold);
    transition: .3s;
}

.nav__link:hover
{
    color: var(--first-color-light-dark);
}

.nav__toggle
{
    color: var(--first-color-dark);
    font-size: 1.3rem;
    cursor: pointer;
}

/* --------------------- show menu -------------------- */
.show
{
    left: 0;
}

/* ----------------------- Active menu ----------------- */
.active
{
    color: var(--first-color-light-dark);
}

/* ----------------------- Home ------------------------------ */
.home__container
{
    height: calc(100vh - var(--header-height));
    align-items: center;
}

.home__data
{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: max-content;
    text-align: center;
}

.home__img
{
    padding-top: 1.3rem;
    padding-left: .8rem;
    width: 160px;
    height: 160px;
    background-color: var(--first-color);
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--mb-2);
}

.home__img img
{
    width: 155px;
}

.home__title
{
    font-size: var(--h1-font-size);
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
}

.home__profession
{
    font-size: var(--small-font-size);
    color: var(--first-color-dark);
    margin-bottom: var(--mb-5);
}

.home__social
{
    margin-bottom: 5rem;
}

.home__social-link
{
    display: inline-flex;
    background-color: var(--first-color);
    color: var(--first-color-lighten);
    font-size: 1.1rem;
    border-radius: 50%;
    padding: .40rem;
    margin: 0 var(--mb-1);
    transition: .3s;
}

.home__social-link:hover
{
    background-color: var(--first-color-dark);
}

.home__button
{
    width: 100%;
}

/* ----------------------- Buttons ------------------ */
.button
{
    display: inline-block;
    background-color: var(--first-color);
    color: var(--first-color-lighten);
    padding: 1rem 2rem;
    font-weight: var(--font-semi-bold);
    border-radius: .5rem;
    transition: .3s;
}

.button:hover
{
    background-color: var(--first-color-dark);
}

.button__light
{
    background-color: var(--first-color-lighten);
    color: var(--first-color);
}

.button__light:hover
{
    color: var(--first-color-lighten);
}


/* ------------------------- About -------------------------------- */
.about__container
{
    row-gap: 2rem;
}

.about__data
{
    text-align: center;
}

.about__description
{
    margin-bottom: var(--mb-4);
}

.about__img
{
    width: 260px;
    border-radius: .5rem;
    margin: 0 auto;
    background-color: var(--first-color);
}

.about__information
{
    margin-bottom: var(--mb-4);
}

.about__information-title
{
    font-size: var(--h3-font-size);
    color: var(--first-color-dark);
    margin-bottom: var(--mb-2);
}

.about__information-data
{
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    margin-bottom: var(--mb-3);
}

.about__information-icon
{
    font-size: 1.5rem;
    color: var(--first-color);
    margin-right: var(--mb-4);
}

.about__information-subtitle
{
    display: block;
    font-weight: var(--font-semi-bold);
}

.about__information-subtitle-small
{
    font-size: var(--small-font-size);
}

/* -------------------------------------------- Skills ------------------------- */
.skills__container
{
    row-gap: 2rem;
}

.skills__subtitle
{
    font-size: var(--h3-font-size);
    color: var(--first-color-dark);
    margin-bottom: var(--mb-2);
}

.skills__data
{
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 var(--mb-2);
    margin-bottom: var(--mb-4);
}

.skills__name
{
    text-transform: uppercase;
}

.skills__bar
{
    position: absolute;
    bottom: -.75rem;
    height: .25rem;
    background-color: var(--first-color);
}

.skills__html
{
    width: 90%;
}

.skills__js
{
    width: 80%;
}

.skills__react
{
    width: 60%;
}

.skills__angular
{
    width: 70%;
}

.skills__php
{
    width: 60%;
}

.skills__node
{
    width: 50%;
}

.skills__java
{
    width: 80%;
}

.skills__python
{
    width: 70%;
}

/* -------------------------------- Education ---------------------------- */
.education__container
{
    row-gap: 2rem;
}

.education__content
{
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
}

.education__year, .education__race
{
    font-size: var(--h3-font-size);
    mask-border: .25rem;
}

.education__university, .education__specialty
{
    display: block;
    font-size: var(--smaller-font-size);
}

.education__year, .education__university
{
    text-align: right;
}

.education__time
{
    padding: 0 1rem;
    justify-self: center;
}

.education__rounder
{
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--first-color);
    border-radius: 50%;
}

.education__rounder::before
{
    content: '';
    position: absolute;
    transform: translate(-4px, -4px);
    width: 20px;
    height: 20px;
    border: 1px solid var(--first-color);
    border-radius: 50%;
}

.education__line
{
    display: block;
    height: 90%;
    width: 2px;
    background-color: var(--first-color);
    transform: translate(5px, -4px);
}

/* ------------------------------------ Services ------------------------------- */
.services__container
{
    row-gap: 2rem;
}

.services__content
{
    padding: 1.5rem .5rem;
    border: 2px solid var(--first-color);
    border-radius: .5rem;
    text-align: center;
}

.service__icon
{
    font-size: 2rem;
    padding: .5rem;
    background-color: var(--first-color);
    color: var(--first-color-lighten);
    border-radius: 50%;
    margin-bottom: var(--mb-2);
}

.services__title
{
    font-size: 1.25rem;
    color: var(--first-color-dark);
    margin-bottom: var(--mb-1);
}

.services__content, .services__icon, .services__title, .services__description
{
    transition: .5s;
}

.services__content:hover
{
    background-color: var(--first-color);
}

.services__content:hover .service__icon
{
    background-color: var(--first-color-lighten);
    color: var(--first-color);
}

.services__content:hover .services__title
{
    color: var(--first-color-lighten);
}

.services__content:hover .services__description
{
    color: var(--first-color-lighten);
}

/* ------------------------------------------ Project in mind ------------------------- */
.project
{
    background-color: var(--first-color);
    padding-bottom: 0px;
}

.project__container
{
    row-gap: 2rem;
}

.project__data
{
    text-align: center;
}

.project__title, .project__description
{
    color: var(--first-color-lighten);
}

.project__description
{
    margin-bottom: var(--mb-4);
}

.project__img
{
    width: 220px;
    justify-self: center;
}

/* ------------------------------ Works ----------------------------- */
.works__container, .contact__container
{
    row-gap: 2rem;
}

.works__img
{
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
}

.works__data
{
    position: absolute;
    bottom: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #808080bc;
    border-radius: .5rem;
    transition: .3s;
}

.works__link
{
    display: inline-flex;
    font-size: 1.5rem;
    background-color: var(--first-color-lighten);
    color: var(--first-color);
    padding: .25rem;
    border-radius: .25rem;
    margin-bottom: var(--mb-2);
}

.works__title
{
    font-size: var(--h3-font-size);
    font-weight: 600;
    color: var(--first-color-lighten);
}
.works__date
{
    font-size: var(--h4-font-size);
    font-weight: 200;
    color: var(--first-color-lighten);
}

.works__more_info
{
    font-size: var(--h4-font-size);
    color: var(--first-color-lighten);
    font-family: poppins;
    cursor: pointer;
    margin: 1vh;
    padding: 1vh 2vh;
    background-color: #245a50;
    border-radius: 20px;
    border: none;
}

.works__modal{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.works__modal_content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1rem 1.5rem;
    width: 24rem;
    border-radius: 0.5rem;
}

.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}

.close-button {
    float: right;
    width: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    background-color: lightgray;
}
.close-button:hover {
    background-color: darkgray;
}

.works__img:hover .works__data
{
    bottom: 0;
}

/* ----------------------------- Contact ---------------------- */
.contact__container
{
    row-gap: 3rem;
    display: flex;
    flex-direction: column;
}

.contact__input
{
    padding: 1rem;
    outline: none;
    border: none;
    background-color: var(--first-color-light);
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb-2);
    border-radius: .5rem;
}

.contact::placeholder
{
    color: var(--first-color-dark);
    font-family: var(--body-font);
    font-weight: var(--font-medium);
}

.contact__button
{
    outline: none;
    border: none;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    cursor: pointer;
}

.contact__info
{
    margin-bottom: var(--mb-3);
}

.contact__subtitle
{
    font-size: var(--h3-font-size);
    color: var(--first-color-dark);
    margin-bottom: var(--mb-1);
}

.contact__text
{
    display: block;
    padding-left: 1rem;
}

/* ---------------------------------- Footer ---------------------------- */
.footer
{
    background-color: var(--first-color-darken);
    color: var(--first-color-lighten);
    text-align: center;
}

.footer__title
{
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-2);
}

.footer-description
{
    margin-bottom: var(--mb-2);
}

.footer-social
{
    margin-bottom: 3rem;
}

.footer__link
{
    display: inline-flex;
    background-color: var(--first-color-light);
    color: var(--first-color);
    font-size: 1.1rem;
    border-radius: 50%;
    padding: .40rem;
    margin: 0 var(--mb-1);
    transition: .3s;
}

.footer-link:hover
{
    background-color: var(--first-color-lighten);
    color: var(--first-color);
}

.footer__copy
{
    font-size: var(--smaller-font-size);
    color: var(--text-color);
}

/* ------------------------- Media Queries for tablet screen ---------------------------- */
@media screen and (min-width: 786px)
{
    .home__button
    {
        width: initial;
    }

    .nav__menu
    {
        width: var(--nav-width);
    }

    .about__container,
    .skills__container,
    .services__container,
    .works__container,
    .contact__inputs
    {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__img
    {
        width: 160px;
    }

    .about__data
    {
        text-align: initial;
    }

    .about__information
    {
        padding-left: 4rem;
    }

    .education__time
    {
        padding: 0 2rem;
    }

    .project
    {
        background: none;
    }

    .project__container
    {
        background-color: var(--first-color);
        grid-template-columns: 2fr 1.2fr;
        padding: 0 2rem;
        border-radius: .5rem;
    }

    .project__data
    {
        padding: 1rem 0;
    }

    .project__title, .project__data
    {
        text-align: initial;
    }

    .project__img
    {
        width: 230px;
        align-self: flex-end;
    }

    .contact__inputs
    {
        display: grid;
        column-gap: 1.5rem;
    }

    .contact__info
    {
        padding-left: 3rem;
    }

    .footer
    {
        background: none;
    }

    .footer__container
    {
        background-color: var(--first-color-darken);
        padding: 3rem 0;
        border-radius: .5rem;
    }
}

/* ------------------------------ Media Query for laptop/desktop screen ------------------------- */
@media screen and (min-width: 1024px)
{
    body
    {
        margin: 0;
        padding-left: var(--nav-width);
    }

    .l-header
    {
        width: 0;
    }

    .nav__toggle, .nav__logo, .nav__close
    {
        display: none;
    }

    .nav__menu
    {
        left: 0;
    }

    .home__container
    {
        height: 100vh;
    }

    .section
    {
        padding: 3rem 0 2rem;
    }

    .bd-grid
    {
        margin-left: auto;
        margin-right: auto;
    }

    .about__img
    {
        width: 200px;
    }

    .services__container, .works__container, .contact__container
    {
        grid-template-columns: repeat(3,1fr);
    }
}
/*------------------POPUPS------------*/
.overlay_flight_traveldil {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}
.overlay_flight_traveldil:target {
    visibility: visible;
    opacity: 1;
}
.popup_flight_travlDil {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    position: relative;
    transition: all 2s ease-in-out;
}
.popup_flight_travlDil .close_flight_travelDl {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}
.popup_flight_travlDil .content_flightht_travel_dil {
    max-height: 30%;
    overflow: auto;
}

.content_flightht_travel_dil_description li{
    font-size: var(--smaller-font-size);
    padding: 5px;
    list-style-type: square;
}

.content_flightht_travel_dil_description{
    padding: 10px;
}

/* TECHNOLOGIES SLIDER */
.techs-slider {
	align-items: center;
	background: #E3E3E3;
	display: flex;
	justify-content: center;
}

@mixin white-gradient {
	background: linear-gradient(to right,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
}

/* // Animation */
@keyframes scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(calc(-250px * 7))}
}


/* // Styling */
.slider {
	background: white;
	box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
	height: 100px;
	margin: auto;
	overflow:hidden;
	position: relative;

	&::before,
	&::after {
		@include white-gradient;
		content: "";
		height: 100px;
		position: absolute;
		width: 200px;
		z-index: 2;
	}
	&::after {
		right: 0;
		top: 0;
		transform: rotateZ(180deg);
	}

	&::before {
		left: 0;
		top: 0;
	}
	.slide-track {
		animation: scroll 40s linear infinite;
		display: flex;
		width: calc(250px * 14);
	}
	.slide {
		height: 100px;
		width: 250px;
	}
}