@import url('https://googleapis.com');

:root {
    --background-light: #FFFFFF;
    --background-darker: #FCFCFC;

    --highlight1: #F72585;
    --highlight2: #4895EF;
    --highlight3: #B5179E;

    --black: #121212;
    --grey: #F1F1F1;
    --light-grey: #777777;

    --visible-slides: 3;
}

html {
  scroll-behavior: smooth;
}

body {
    margin: 0;
    font-size: 16px;
    color: var(--black);
    font-family: Lato, Helvetica, sans-serif;
}

h2{
    text-align: center;
    margin-bottom: 3rem;
}

.container {
    margin: 0 auto;
    width: 90%;
    max-width: 92em;
}

section {
    padding-top: 2rem;
    padding-bottom: 3rem;
     scroll-margin-top: 70px;
}

section:nth-of-type(odd) {
    background: var(--background-darker);
}

section:nth-of-type(even) {
    background: var(--background-light);
}

nav {
    display: flex;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    background: var(--background-light);
    z-index: 9;
}

nav a {
    text-decoration: none;
    color: var(--black);
    text-transform: uppercase;
}

nav a:hover{
    text-decoration: underline;
}

nav menu {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

nav .contact-btn {
    position: fixed;
    right: 1rem;
    margin: auto 0;
}

nav a.active {
    color: var(--highlight1);
}



header {
    min-height: 100vh;
    display: flex;
}

header .container {
    display: flex;
    align-items: center;
    gap: 10%;
}

header .container > * {
    flex-grow: 1;
    box-sizing: border-box;
}

header h1, header h2 {
    display: inline-block;
    background: linear-gradient(to right, var(--highlight2) 13%, var(--highlight3) 50%, var(--highlight1) 100%);
    background-clip: text;
    color: transparent;
}

header .name-title h1, header .name-title h2 {
    margin: 0;
    text-align: left;
}

header .name-title h1 {
    font-weight: 800;
    font-size: 42px;
}

header .name-title h2 {
    font-weight: 400;
    font-size: 24px;
}

header img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

header .circle {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: relative;
}

.circle::before {
    content: "";
    position: absolute;
    inset: 0;  
    z-index: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--highlight3), transparent);
    width: 380px;
    height: 380px;
}

.circle {
    border-radius: 90% !important;
    width: 380px !important;
    height: 380px;
    overflow: hidden;
}

.inner-circle {
    position: relative;
    z-index: 1;
    width: 378px;
    height: 378px;
    border-radius: 50%;
    background: white;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
}


ul.icon-list {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.icon-list li {
    width: 40px;
    height: 40px;
}

.cv-icon {
    margin-top: 5px;
    margin-left: 5px;
    max-width: 100%;
}

.icon stop:nth-child(1) { stop-color: var(--highlight2); }
.icon stop:nth-child(2) { stop-color: var(--highlight3); }
.icon stop:nth-child(3) { stop-color: var(--highlight1); }



.cards {
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
    flex-grow: 1;
}


.carousel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.carousel-viewport {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.carousel .arrow {
    height: 3rem;
    cursor: pointer;
    fill: var(--black);
    flex-shrink: 0;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.carousel .arrow:hover {
    fill: var(--highlight2);
    transform: scale(1.1);
}


.carousel-viewport .cards.slides {
    display: flex !important;
    position: relative !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);

    left: calc(50% - (50% / var(--visible-slides))) !important; 
}


.carousel-viewport .cards.slides.no-transition {
    transition: none !important;
}

.slide {
    flex: 0 0 calc(100% / var(--visible-slides)) !important;
    display: flex;
    justify-content: center;
}


.slide .card {
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 100%;
    min-height: 25rem;
    background: var(--grey);
    overflow: hidden;
    flex: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    
    opacity: 0.4;
    transform: scale(0.85);
    
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card .info {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.5rem 1rem;
}

.card h3 {
    padding: 0;
    margin: 0;
    color: var(--black);
}

.card .tags {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin-top: auto;
    padding-top: 1rem;
}

.card .tag {
    background: var(--highlight1);
    color: var(--grey);
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 0.85rem;
}

.card .tag:nth-child(odd) {
    background: var(--highlight2);
}


.slide.is-active .card {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.slide.is-left .card {
    transform: scale(0.85);
    opacity: 0.4;
}

.slide.is-right .card {
    transform: scale(0.85);
    opacity: 0.4;
}

.dot_line{
    position: relative;
}

.sphere{
    position: absolute;
    left: 0;
    top: -17px;
    height: 34px;
    width: 34px;
    border-radius: 100%;
}

.experience_description, .experience_title{
    margin-left: 100px;
}


.experience_title{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}

.experience_title *, .experience_description{
    margin-top: 0;
    margin-bottom: 0;
}

.experience_description{
    color: var(--light-grey);
}

hr.bold_line{
    border: none;
    height: 1px;
}

.timeline .experience_element{
    margin-bottom: 50px;
}

.timeline .experience_element:last-of-type{
    margin-bottom: 0;
}

.timeline{
    margin-bottom: 80px;
    margin-top: 20px;
}

.color_highlight1{
    color: var(--highlight1);
    background-color: var(--highlight1);   
    background: var(--highlight1);
}

.color_highlight2{
    color: var(--highlight2);
    background-color: var(--highlight2);   
    background: var(--highlight2);
}

.color_highlight3{
    color: var(--highlight2);
    background-color: var(--highlight3);   
    background: var(--highlight3);
}

.color_black{
    color: var(--black);
    background-color: var(--black);   
    background: var(--black);
}

hr.color_highlight1{
    background: linear-gradient(to right, var(--highlight1) 10%, var(--black) 100%);;   
}

hr.color_highlight2{
    background: linear-gradient(to right, var(--highlight2) 10%, var(--black) 100%);;   
}

hr.color_highlight3{
    background: linear-gradient(to right, var(--highlight3) 10%, var(--black) 100%);;   
}

h3:not(.card h3){
    font-weight: 400;
}

.grid_merge_2_columns p:first-of-type{
    grid-column: span 2;
}

.study_cards{
    display: flex;
    gap: 3rem;
    justify-content: space-around;
    flex-wrap: wrap;
}

.study_card{
    border: 2px solid transparent; 
    border-image: linear-gradient(200deg, var(--highlight2) 13%, var(--highlight3) 50%, var(--highlight1) 100%) 1;
    padding: 2rem;
}

.skill_icon{
   display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px; 
    border-radius: 100%;
    padding: 15px;

}

.skill_icon::before {
    content: "";
    width: 100%;
    height: 100%;
    
    background-color: var(--color-black); 
    
    -webkit-mask: var(--icon-url) no-repeat center / contain;
    mask: var(--icon-url) no-repeat center / contain;
    background-color: var(--background-darker); 
}

.skills{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.skill{
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.skill_title
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 1rem;
    text-align: center;
}

.skill_items{
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 3rem;
}


.skill_title.color_highlight1
{
    background: none;
    color: var(--color-black);
    border-right: 2px solid var(--highlight1);
}

.skill_title.color_highlight2
{
    background: none;
    color: var(--color-black);
    border-right: 2px solid var(--highlight2);
}

.skill_title.color_highlight3
{
    background: none;
    color: var(--color-black);
    border-right: 2px solid var(--highlight3);
}

.contact{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    justify-content: center;
}

.contact div{
    display: flex;
    flex-direction: column;
    width: fit-content;
    margin: 0 auto;
}

a{
    text-decoration: none;
}

.contact p{
    margin: 0;
}

.contact a, .contact address{
    display: flex;
    flex-wrap: nowrap;
}

.contact a{
    align-items: center;
    color: var(--highlight2);
}

.contact a:hover{
    text-decoration: underline;
}

.contact a .icon{
    fill: var(--highlight2);
}
  

.contact .icon{
    height: 18px;
    margin-right: 8px;
}

footer{
    background: var(--black);
    color:white;
}

.footer{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.footer .icon-list, .footer .thanks{
    display: flex;
    justify-content: center;
}

.footer .icon-list .icon{
    fill:white;
}

footer{
    padding: 2rem 0;
}

address{
    font-style: normal;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
@media screen and (max-width: 1050px){
    .skills{
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media screen and (max-width: 810px) {
    
    :root {
        --visible-slides: 1;
    }

    nav {
        display: block;
        top: 0;
        padding: 0.5rem 0 !important;
    }

    nav menu {
        position: fixed;
        inset: 0;
        z-index: 20 !important;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
        padding-top: 6rem;
        height: 100vh;
        background: var(--background-light) !important;
        
        /* Hidden off-screen to the right */
        transform: translateY(-100%);
        visibility: hidden; 
        pointer-events: none; /* Prevents clicking when hidden */
        
        /* Smooth transition for both sliding in and out */
        transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    nav menu.active {
        /* Slides into view */
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .menu-toggle {
        position: relative;
        display: block !important;
        width: 36px;
        height: 36px;
        z-index: 21 !important;
    }


    header .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
    }

    header .container > * {
        flex-grow: 0;
    }

    header .name-title h1 {
        font-size: 38px;
    }

    header .name-title h2 {
        font-size: 21px;
    }

    header .circle {
        height: 280px;
    }

    .circle::before {
        width: 280px;
        height: 280px;
    }

    .circle {
        width: 280px !important;
        height: 280px;
    }

    .inner-circle {
        width: 278px;
        height: 278px;
    }

    .carousel .arrow {
        height: 2rem;
    }


    .sphere{
        top: -10px;
        height: 20px;
        width: 20px;
    }

    .experience_description, .experience_title{
        margin-left: 50px;
    }


    .experience_title{
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }


    .skill_icon{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px; 
        border-radius: 100%;
        padding: 10px;
    }

    .skills h3{
        font-size: 16px;
    }

    .skill{
        display: grid;
        grid-template-columns: 100px 1fr;
        align-items: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .skill_items{
        display: grid;
        grid-template-columns:1fr 1fr;
        gap: 1rem;
    }

    .skill_title{
        padding-right: 1rem;
    }

    .contact{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .contact > div{
        margin: 0;
    }

    
    .footer{
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
    }
}