/*============= GOOGLE FONTS =============*/
@import url('https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/*============= VARIABLE CSS =============*/
:root {
    /*====== Colors ======*/
    --hue-color:110;

    /* HSL Color Made */
    --skin-color: hsl(139, 93%, 24%);
    --title-color: hsl(var(--hue-color), 8%, 95%);
    --text-color: hsl(var(--hue-color), 8%, 85%);
    --body-color: hsl(var(--hue-color), 19%, 5%);
    --box-color: hsl(var(--hue-color), 14%, 10%);
    --scrool-bar-color: hsl(var(--hue-color), 12%, 38%);
    --scrool-thumb-color: hsl(var(--hue-color), 12%, 26%);

    /*====== Font and Typography ======*/
    --body-font: "Tinos", serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ...*/
    --biggest-font-size: 3rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.81rem;

    /*====== Font Weight ======*/
    --font-medium: 500;
    --font-bold: 600;

    /*====== Margenes Bottom ======*/
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*====== Z-Index ======*/
    --z-fixed: 10;
    --z-modal: 100;

    /* Responsive Typography */
    @media screen and (max-width: 1024px) {
        --biggest-font-size: 2rem;
        --h1-font-size: 1.5rem;
        --h2-font-size: 1.25rem;
        --h3-font-size: 1.125rem;
        --normal-font-size: 0.938rem;
        --small-font-size: 0.813rem;
        --smaller-font-size: 0.75rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body,
button,
input {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body {
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3 {
    color: var(--title-color);
    font-weight: var(--font-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

button,
input {
    border: none;
    outline: none;
}

/*============= LAYOUT =============*/
.container {
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
}


/*============= REUSABLE CSS CLASSES =============*/
.home.section {
    padding-top: 0;
}


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

.section_title {
    text-align: center;
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-3);
}

.section_title::before {
    content: attr(data-heading);
    display: block;
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--skin-color);
}


/*============= SIDE BAR =============*/
.social_share {
    width: 200px;
    height: 200px;
    object-fit: contain; /* keeps aspect ratio */
}

.sidebar {
    position: fixed;
    width: 100px;
    height: 100vh;
    background-color: rgb(21, 20, 20);
    transition: .5s;
}

.nav_logo {
    position: absolute;
    left: 0;
    right: 0;
    top: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--skin-color);
    text-align: center;
    margin: auto;
}

.nav_logo-text {
    font-size: 1.125rem;
    color: var(--title-color);
    font-weight: var(--font-bold);
    line-height: 40px;
}

.nav_menu {
    position: fixed;
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: top left;
    width: 100vh;
}

.menu {
    display: flex;;
}

.nav_list {
    display: flex;
    flex-direction: row-reverse;
    margin: -2px auto 0 auto;
}

.nav_link {
    float: right;
    height: 100%;
    line-height: 100px;
    padding: 0 1rem;
    color: var(--title-color);
    font-weight: var(--font-medium);
    position: relative;
    transition: .4s;
}

.nav_toggle {
    height: 32px;
    width: 36px;
    cursor: pointer;
    position: fixed;
    right: 1.5rem;
    top: 2rem;
    font-size: 1.2rem;
    border-radius: .25rem;
    background-color: var(--skin-color);
    color: var(--title-color);
    display: none;
    /* 
    i need to center it but i am having issues with it
    justify-content: center;
    align-items: center;
    */
}

.nav_close {
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    cursor: pointer;
    display: none;
}

/* Logo is not positioning correctly, need to come back to this */
.btn_share {
    position: absolute;
    bottom: 0rem;
    left: 0;
    right: 0;
    text-align: center;
}
    

/* Active Link */
.nav_link.active-link, .nav_link:hover {
    color: var(--skin-color);
}

.nav_link.active-link::after, .nav_link:hover::after {
    position: absolute;
    content: '';
    width: 60px;
    height: 6px;
    background-color: var(--skin-color);
    border-radius: 50%;
    bottom: 1.8rem;
    left: 0;
    right: 0;
    margin: auto;
}

/*============= Main =============*/
.main {
    margin-left: 100px;
}

#linkedin, #github, #cv {
    fill: var(--skin-color);
    width: 48px;
    height: 48px;
}

/*============= Home Section =============*/
.home_img {
    display: none;
}

.home {
    background: url("./Images/Daniel.jpeg") no-repeat right center;
    background-size: 600px auto;   /* Set width to 600px, height auto */
    background-color: var(--body-color); /* fallback background */
    height: 100vh;
}

.home_container {
    position: relative;
    height: 100%;
    align-items: center;
}

.home_social {
    position: absolute;
    top: 1.8rem;
    left: 0;
    display: flex;
    align-items: center;
    column-gap: 1.5rem;
}

.home_social-follow {
    font-weight: var(--font-medium);
    position: relative
}

.home_social-follow::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 2px;
    background-color: var(--title-color);
    right: -15%;
    top: 50%;
}

.home_social-links, .footer_social-link {
    display: inline-flex;
    column-gap: 1.5rem;
}

.home_social-link, .footer_social-link {
    font-size: 1.08rem;
    color: var(--text-color);
    transition: .4s;
}

.home_social-link:hover, .footer_social-link:hover {
    transform: translateY(.55rem);
}

.home_title {
    font-size: var(--biggest-font-size);
}

.home_subtitle {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-75);
}

.home_description {
max-width: 450px;
margin-bottom: var(--mb-2);
}

#Letter {
    fill: var(--skin-color);
    color: var(--skin-color);
}

#user {
    fill: white;
}

.info_item {
    display: flex;
    gap: 10px;          
}

.my_info {
    display: flex;
    column-gap: 1.8rem;
    position: absolute;
    left: 0;
    bottom: 1.8rem;
}

.info_item {
    display: flex;
    align-items: center;
}

.info_title,
.info_subtitle {
    font-size: var(--small-font-size);
}

.info_title {
    font-weight: var(--font-medium);
}

.info_icon {
    font-size: 1.8rem;
    color: var(--skin-color);
    margin-right: var(--mb-0-75);
    }

/*============= Button =============*/
.button {
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    background-color: var(--skin-color);
    color: var(--title-color);
    padding: .75rem 1.4rem;
    border-radius: 2.25rem;
    font-weight: var(--font-medium);
    position: relative;
    z-index: 1;
}

.button::after {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--box-color);
    z-index: -1;
    transform-origin: center;
    transform: scale(0);
    border-radius: 2.25rem;
    transition: .4s;
}

.button:hover::after {
    transform: scale(1);
}

.button_icon {
    font-size: 1.25rem;
}

/*============= About Section =============*/
.about_container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
}

.about_img {
    width: 480px;
    height: auto;
    border-radius: 1.5rem;
    justify-self: center;
}

.about_heading {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-75);
}

.about_description {
    text-align: justify;
    padding-right: 4rem;
    margin-bottom: var(--mb-2);
}

.about_info {
    display: grid;
    grid-template-columns: repeat(3, 140px);
    column-gap: .5rem;
    margin-bottom: var(--mb-3);
}

.about_box {
    text-align: center;
    border-radius: .25rem;
    padding: 1rem 1.25rem;
    background-color: var(--box-color);
}

.about_icon {
    font-size: 1.5rem;
    color: var(--skin-color);
    margin-bottom: var(--mb-0-75);
}

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

.about_subtitle {
    font-size: var(--smaller-font-size);
}

/*============= Skills Section =============*/
.skills {
  padding: 4rem 2rem;
}

.section_title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color:  hsl(139, 93%, 24%);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.skills_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skills_content {
  background-color: lightgray;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 8px 8px 8px hsl(139, 93%, 24%);
  transition: transform 0.2s ease;
}

.skills_content:hover {
  transform: translateY(-10px);
}

.skills_title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(139, 93%, 24%);
}

/* Skill list */
.skills_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills_item {
  background: rgb(124, 168, 124); 
  color: var(--box-color);      
  padding: 0.5rem 0.75rem;
  margin: 0.35rem 0;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  display: inline-block;
}


/*============= Work Section =============*/
.work_container {
    grid-template-columns: repeat(3, 330px);
    gap: 1.8rem;
    justify-content: center;
    padding-top: 1rem;
}

.work_filters {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: .75rem;
    margin-bottom: 2rem;
}

.work_item {
    cursor: pointer;
    color: var(--title-color);
    padding: .25rem .75rem;
    font-weight: var(--font-medium);
    border-radius: .5rem;
}

.work_card {
    background-color: var(--box-color);
    padding: 1.25rem;
    border-radius: .5rem;
}

.portfolio_item-details {
    display: none;
}

.work_img {
    border-radius: .5rem;
    margin-bottom: var(--mb-1);
}

.work_title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-5);
}

.work_button {
    color: var(--skin-color);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    column-gap: .25rem;
    cursor: pointer;
}

.work_button-icon {
    font-size: 1rem;
    transition: .3s;
}

.work_button:hover .work_button-icon {
    transform: translateX(.25rem);
}

/* Active Item Work */
.active-work {
    background-color: var(--skin-color);
    color: var(--title-color);
}

/* Portfolio Popup */
.portfolio_popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: 3s;
}

.portfolio_popup.open{
    opacity: 1;
    visibility: visible;
}

.portfolio_popup-inner {
    background-color: var(--box-color);
    width: 900px;
    border-radius: .5rem;
    padding: 2.5rem;
    position: relative;
}

.portfolio_popup-content {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 3rem;
}

.portfolio_popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--skin-color);
    cursor: pointer;
}

.portfolio_popup-img {
    border-radius: .5rem;
}

.portfolio_popup-subtitle {
    font-size: var(--smaller-font-size);
    margin-bottom: var(--mb-0-25);
}

.details_title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1);
}

.details_description {
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-2);
}

.details_info li {
    margin-bottom: var(--mb-0-75);
    text-transform: capitalize;
    font-size: var(--small-font-size)
}

.details_info li:last-child {
    margin-bottom: 0;
}

.details_info li span {
    font-weight: normal;
}

.details_info a {
    text-transform: lowercase;
    color: var(--skin-color);
}

/*======= Contact Section =========*/

.contact_container {
    grid-template-columns: 300px 340px;
    column-gap: 3rem;
    justify-content: center;
    align-items: center;
}

.contact_info {
    display: grid;
    row-gap: 1rem;
}

.contact_card {
    background-color: var(--box-color);
    padding:1rem;
    border-radius: .5rem;
    text-align: center
}

.contact_card-icon {
    font-size: 1.8rem;
    color: var(--title-color);
    margin-bottom: var(--mb-0-25);
}

.contact_card-title,
.contact_card-data {
    font-size: var(--small-font-size);
}

.contact_card-title {
    font-weight: var(--font-medium);
}

.contact_card-data {
    display: block;
    margin-bottom: var(--mb-0-75)
}

.contact_button {
    color: var(--skin-color);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .25rem;
    cursor: pointer;
}

.contact_button-icon {
    font-size: 1rem;
    transition: .3s;
}

.contact_button:hover .contact_button-icon {
    transform: translateX(.25rem);
}

.input_container {
    position: relative;
    margin-top: .1rem;
    margin-bottom: 1.9rem;
}

.input {
    width: 100%;
    border: 2px solid var(--text-color);
    background-color: transparent;
    padding: .6rem 1.2rem;
    color: var(--title-color);
    font-weight: var(--font-medium);
    font-size: var(--font-medium);
    letter-spacing: .5px;
    outline: none;
    border-radius: .50rem;
    transition: .3s;
}

textarea.input {
    padding: .8rem 1.2rem;
    min-height: 140px;
    border-radius: .50rem;
    resize: none;
}

.input_container label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    padding: 0 .4rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: var(--font-medium);
    pointer-events: none;
    z-index: 15;
    transition: .5s;
}

.input_container .textarea label {
    top: 1rem;
    transform: translateY(0);
}

.input_container span {
    position: absolute;
    top: 0;
    left: 25px;
    color: transparent;
    transform: translateY(-50%);
    font-size: var(--small-font-size);
    padding:0 .4rem;
    pointer-events: none;
    z-index: var(--z-fixed);
}

.input_container span::before,
.input_container span::after{
    content: "";
    position: absolute;
    width: 10%;
    height: 5px;
    opacity: 0;
    background-color: var(--body-color);
    top: 50%;
    transform: translateY(-50%);
    transition: .3s;
}

.input_container span::before {
    left:50%;
}

.input_container span::after {
    right:50%;
}

.input_container.focus label {
    top: 0;
    transform: translateY(-50%);
    left: 25px;
    font-size: var(--smaller-font-size);
}

.input_container.focus span::before,
.input_container.focus span::after {
    width: 50%;
    opacity: 1;
}

/*========== FOOTER =========*/
.footer {
    padding-top: 2rem;
}

.footer_container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.6rem;
}

.footer_bg {
    background-color: var(--box-color);
    padding: 3rem 0 3.5rem;
}

.footer_title {
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-0-25);
}

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

.footer_links {
    display: flex;
    justify-content: center;
    column-gap: 2rem;
}

.footer_link:hover {
    color: var(--skin-color);
}

.footer_socials {
    justify-self: flex-end;
}

.footer_social {
    font-size: 1.25rem;
    margin-right: var(--mb-1-5);
}

.footer_social:hover {
    color: var(--skin-color);
}

.footer_copy {
    font-size: var(--smaller-font-size);
    text-align: center;
    margin-top: 4.5rem;
}

.footer_title,
.footer_subtitle,
.footer_link,
.footer_social {
    color:var(--title-color);
}

/*========= SCROLL UP ==========*/
::-webkit-scrollbar {
    width: .60rem;
    background-color: var(--scrool-bar-color);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrool-thumb-color);
    border-radius: .5rem;
}

/*=========== BREAKPOINTS =========*/
/* For Large Devices */
@media screen and (max-width:1408px) {
    .container {
        margin-left: var(--mb-2-5);
        margin-right: var(--mb-2-5)
    }
}

@media screen and (max-width: 1216px) {
    .about_container {
        column-gap: 2.5rem;
    }    

    .about_description {
        padding-right: 0;
    }

    .work_container {
        grid-template-columns: repeat(2, 330px);
        gap: 2.5rem;
    }
}

@media screen and (max-width: 1024px) {
    .container {
        margin-left: var(--mb-1-5);
        margin-right: var(--mb-1-5);
    }

    .sidebar {
        width:100%;
        z-index:999;
        transform: translateX(-100%);
    }

    .show-sidebar {
        transform: translateX(0);
    }

    .nav_logo,
    .btn_share {
        display: none;
    }

    .nav_menu {
        height: 100%;
        width: 100%;
        transform: rotate(0deg) translateX(0);
        display: flex;
        justify-content: center;
    }

    .nav_list {
        flex-direction: column;
        height:100%;
        justify-content: center;
        align-items: center;
    }

    .nav_link {
        padding: 1rem 0;
        line-height: 1.5;
    }

    .nal_link.active-link::after, .nav_link:hover::after {
        bottom: 0;
    }

    .nav_close {
        display: block;
    }

    .nav_toggle {
        display: flex;
    }

     .main {
        margin-left: 0;
    }

    .about_container {
        grid-template-columns: 1fr;
        row-gap: 2.5rem;
    }

    .about_img {
        width: 350px;
    }

    .about_data {
        text-align: center;
    }

    .about_info {
        justify-content: center;
    }

    .about_box {
        padding: .75rem .5rem;
    }

    .about_description {
        padding: 0rem;
        text-align: center;
    }

    /* I would need to do the qualification, skills, or any other section that i add */

    .work_card {
        padding: 1rem;
    }

    .work_img {
        margin-bottom: var(--mb-0-75);
    }

    .work_title {
        margin-bottom: var(--mb-0-25)
    }

        /* I would need to do the service, testimonials, or any other section that i add */

    .portfolio_item-details {
        margin-bottom: var(--mb-1-5);
    }

    .details_info li {
        margin-bottom: var(--mb-0-5);
    }

    .details_title {
        margin-bottom: var(--mb-0-75)
    }
} 

@media screen and (max-width: 778px) {
    .about_img {
        width: 250px;
    }

    /* Qualification and other needs to be edited */

    .work_container {
        grid-template-columns: 330px;
    }

    /*serveces etc... */

    .contact_container {
        grid-template-columns: 330px;
        row-gap: 3rem;
    }

    .footer_container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 3rem;
    }

    .footer_socials {
        justify-self: start;
    }

    .footer_links {
        flex-direction: column;
        row-gap: 1rem;
    }

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

    .footer_copy {
        margin-top: var(--mb-3)
    }

    .portfolio_popup-inner {
        width: 420px;
        padding: 2.8rem 1.5rem 2.5rem;
    }

    .portfolio_popup-content {
        grid-template-columns: 1fr;
        row-gap: 1.6rem;
    }

    .details_title {
        font-size: var(--normal-font-size);
    }

    .portfolio_popup-close {
        top: .5rem;
    }

}

@media screen and (max-width: 576px) {
    .nav_toggle {
        right: initial;
        left: 1.5rem;
    }

    .home{
        background-image: none;
        height: initial;
        align-items:initial;
        padding: 7rem 0 2rem;
    }

    .home_container {
        row-gap: 2rem;
    }

    .home_img {
        display: block;
        width: 250px;
        justify-self: center;
    }

    .home_social, .footer_socials {
        left: initial;
        right: -1rem;
        flex-direction: column;
        row-gap: 3.5rem;
    }

    .home_social-follow {
        font-size: var(--smaller-font-size);
        transform: rotate(90deg);
    }

    .home_social-links, .footer_social-link {
        flex-direction: column;
        row-gap: .25rem;
    }

    .home_social-link {
        font-size: var(--normal-font-size);
    }

    .about_info {
        grid-template-columns: repeat(3, 1fr);
    }

    .about_description {
        padding: 0;
    }

    .my_info {
        left: initial;
    }

    /* services and others... */

    .work_container, .contact_container {
        grid-template-columns: 330px;
    }

    .footer_container {
        grid-template-columns: 1fr;
    }

    .footer_links {
        justify-self: flex-start;
    }

}

@media screen and (max-width: 350px) {
    .container {
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }

    .home_img {
        width: 200px;
    }

    .home_title {
        font-size: var(--h1-font-size);
    }

    .home_subtitle {
        font-size: var(--normal-font-size);
    }

    .about_info {
        grid-template-columns: repeat(2, 1fr);
        row-gap: .5rem;
    }

    /* qualifications and others... */

    .work_container,
    .contact_container {
        grid-template-columns: 1fr;
    }

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

    .work_filters {
        column-gap: .25rem;
    }
}


