*{
    color: #ECE6EA;
    font-family: 'Lato', sans-serif;
}

body {
    background-color: #1E1E2F;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/*common class*/

p span, li span {
    color: #f79ab1;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.line {
    flex: 1;
    height: 1px;
    background-color: #F0C1CD;
    opacity: 0.5;
}

/* header section */

header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 10em);
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 5em;
    background-color: #0e0c0ea2;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px)
}

header .menu ul {
    display: flex;
    gap: 1em;
    list-style: none;
    margin: 0;
    padding: 0;
}

header .menu a {
    text-decoration: none;
    font-size: 1em;
}

header .menu a:hover {
    color: #f17090;
}

header .menu a:active {
    color: #f17090;
}

header .name h1 {
    font-size: 1em;
    margin: 0;
    padding: 0;
    color: #F0C1CD;
}

/* about section */

#about {
    padding: 1em 5em;
    display: flex;
    gap: 5em;
    margin: 4em 0 0 0;
    height: 450px;
    align-items: center;
    scroll-margin-top: 6em;
}

#about .pic {
    margin-left: 5em;
}

#about .pic .picOfme {
  width: 250px;
  height: 350px;
  object-fit: cover;
  object-position: center;
  border-radius: 0 20% 0 20%;
  transition: transform 0.4s ease;
  animation: fadepic 3s ease;
}

#about .pic .picOfme:hover {
  cursor: pointer;
  transform: scale(1.05);
}


#about .welcome .textwelcome {
    display: flex;
    gap: 1em;
    align-items: center;
}

#about .welcome #typewelcome {
    color: #F0C1CD;
    font-size: 2em;
}

#about .welcome h3 {
    color: #f17090;
}

.welcome #blink {
    width: 2px;
    height: 2.5em;
    background-color: #F0C1CD;
    animation: blinkanim 0.6s infinite;
}

#about .welcome .CV {
    display: inline-block;
    text-decoration: none;
    font-size: 0.85em;
    margin: 1em 0 0 0;
    padding: 1em 2em;
    background-color: #f79ab1;
    border: none;
}

#about .welcome .CV:hover, #about .welcome .CV:active {
    background-color: #f17090;
    cursor: pointer;
}

#about span i {
    margin: 0 10px;
    font-size: 1.5em;
    color: #F0C1CD;
    transition: transform 0.2s ease;
}

#about span i:hover, #about span i:active {
    color: #f17090;
    cursor: pointer;
    transform: scale(1.3);
}

/* experience section */

#exp {
    padding: 0em 5em;
    scroll-margin-top: 6em;
    margin: 0;
}

#exp .expcard {
    background-color: #12121bec;
    padding: 0.5em 2em;
    border-radius: 40px;
}

#exp .expcard .exptitle {
    display: flex;
    align-items: center;
    gap: 2em;
}

#exp .expcard .expcontent{
    display: flex;
    gap: 2em;
}

.expcard .expcontent .expplace {
    display: flex;
    flex-direction: column;
}

.expplace button {
    width: 10em;
    font-size: 1em;
    padding: 1em 0;
    background: none;
    border: none;
    border-right: 1px solid #ece6ea23;
    transition: background-color 0.2s ease, border-right 0.5s ease;
}

.expplace button:hover {
    cursor: pointer;
    background-color: #f0c1cd35;
}

.expplace button.expactive {
    border-right: 2px solid #F0C1CD;
}

.expdescription .jobdate {
    font-size: 1em;
    color: #f0c1cdab;
}

.expdescription .jobtitle {
    font-size: 1.1em;
    color: #f79ab1;
}

.jobdescr ul {
    list-style: none;
    padding-left: 2em;
}

.jobdescr ul li {
    position: relative;
    padding-left: 1.5em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.jobdescr ul li.active {
    opacity: 1;
    transform: translateY(0px);
}

.jobdescr ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #f17090;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jobdescr ul li.active::before {
    opacity: 1;
}

/* education section */

#edu{
    scroll-margin-top: 6em;
    padding: 0em 5em;
    margin: 2em 0 0 0;
}

#edu .educard {
    height: auto;
    padding: 0.5em 2em;
}

#edu .educard .edutitle {
    display: flex;
    gap: 2em;
    align-items: center;
}

#edu .educard .educontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
}

.educontent .edudate {
    display: flex;
    gap: 2em;
    align-items: center;
    position: relative;
}

.edudate button {
    background: none;
    border: none;
    padding: 0.5em 1em;
    border-radius: 40%;
    transition: background-color 0.5s ease;
    position: relative; 
    z-index: 2; 
}

.edudate button:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%; 
    left: 100%; 
    width: 2em; 
    height: 2px; 
    background-color: #f0c1cd45; 
    transform: translateY(-50%);
    z-index: 1;
}

.edudate button:hover {
    background-color: #f0c1cd35;
    cursor: pointer;
}

.edudate button.eduactive {
    background-color: #F0C1CD;
    border: #ECE6EA 1px solid;
    color: #ffffff;
}

.edudescr .datedescr {
    width: 700px;
}

.datedescr h3 {
    font-size: 1.1em;
    text-align: center;
    color: #f79ab1;
}

.datedescr h4 {
    color: #f0c1cdab;
    font-size: 0.9em;
    text-align: center;
}

.datedescr .eddescription {
    border-left: 2px solid #F0C1CD;
    padding-left: 20px;
    margin-left: 10px;
    position: relative;
    text-align: left;
}

.dipdescr {
    position: relative;
    margin-bottom: 1.5em;
}

.dipdescr::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #ECE6EA;
    border-radius: 50%;
}

/* project section */

#project {
    scroll-margin-top: 4em;
    padding: 0em 5em;
    margin: 2em 0 0 0;
}

#project .projectcard{
    height: auto;
    padding: 0.5em 2em;
}

#project .projectcard .projecttitle {
    display: flex;
    gap: 2em;
    align-items: center;
    margin-bottom: 2em;
}

.carouselContent {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 2em;
    overflow: hidden;
    background-color: #12121b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.CarouselItem {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.CarouselItem::-webkit-scrollbar {
    display: none;
}

.CarouselItem .Item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.CarouselItem .Item .ItemBackground {
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
    transition: transform 0.5s ease;
}

.CarouselItem .Item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0) 100%);
    z-index: 1;
}

.CarouselItem .Item:hover .ItemBackground {
    opacity: 0.6;
}

.CarouselItem .Item .Itemcontent {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    color: #ECE6EA;
}

.CarouselItem .Item .Itemcontent h1 {
    font-size: 2.5rem;
    color: #f17090;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.CarouselItem .Item .Itemcontent p {
    color: #ffffff;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.9), 0px 2px 4px rgba(0, 0, 0, 1);
}

.CarouselItem .Item .Itemcontent .techskill {
    color: #ECE6EA;
    margin-top: 25px;
}

.Itemcontent .techskill button {
    margin: 0.2em 0.2em;
    background-color: #0E0C0E;
    padding: 0.5em 1em;
    border: 1px solid #ECE6EA;
    border-radius: 1em;
    font-weight: bold;
    color: #F0C1CD;
}

.CarouselItem .Item:hover .Itemcontent .techskill button {
    background-color: #F0C1CD;
    color: #0E0C0E;
}

.Item .Itemcontent a {
    display: inline-block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    text-decoration: 0;
    padding: 0.5em 1em;
    border: 1.3px solid #ECE6EA;
    transition: all 0.5s ease;
    border-radius: 2em;
    margin-top: 30px;
}

.Item:hover a {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.Item a:hover {
    background-color: #ECE6EA;
    color: #0E0C0E;
}

.carouselContent .Btncarousel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 1px solid rgba(240, 193, 205, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carouselContent .Btncarousel:hover { 
    background: #F0C1CD; 
    color: #12121b;
}

.carouselContent .Btncarousel.prev { left: 20px; }
.carouselContent .Btncarousel.next { right: 20px; }

.carouselContent .carouselIndic {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carouselIndic .indic {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: 0.3s;
}

.carouselIndic .indic.active {
    background: #F0C1CD;
}

/* skill section */

#skill {
    margin-top: 4em;
    padding: 0em 5em;
    scroll-margin-top: 6em;
}

#skill .skillcard {
    padding: 0.5em 2em;
    border-radius: 40px;
}


#skill .skillcard .skilltitle {
    display: flex;
    align-items: center;
    gap: 2em;
}

.skillcard .skillsupport {
    display: flex;
    justify-content: right;
}

.skillcard .skillsupport a {
    color: #f17090;
}

.skillcard .skillsupport a:hover {
    color: #f79ab1;
}

.skillcard .skillcontent div {
    opacity: 0;
    transform: translateY(60px);
    background-color: #12121b98;
    padding: 0.5em;
    border-radius: 2em;
    border: 1px solid #f0c1cd1f;
    transition: opacity 1s ease, transform 1s ease;
}

.skillcard .skillcontent div.active {
    opacity: 1;
    transform: translateY(0);
}

.skillcard .skillcontent div.active:hover {
    background-color: #f0c1cd17;
    transform: translateX(1em);
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.1s ease;
}

.skillcard .skillcontent h3 {
    font-size: 1.1em;
    color: #F0C1CD;
}

.skillcontent .star {
    list-style: none;
    padding-left: 2em;
}

.skillcontent .star li {
    position: relative;
    padding-left: 1.5em;
}

.skillcontent .star li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #f17090;
}

/* Technology section */

#technology {
    margin-top: 4em;
    padding: 0em 5em;
    scroll-margin-top: 6em;
}

#technology .techcard {
    height: auto;
    padding: 0.5em 2em;
}

#technology .techcard .techtitle {
    display: flex;
    align-items: center;
    gap: 2em;
    margin-bottom: 2em;
}

.techcard .techcontent {
    display: flex;
    flex-wrap: wrap;
    height: 80%;
    gap: 1em;
    justify-content: center;
    align-items: center;
}

.techcard .techcontent .techitem {
    position: relative;
    min-width: 300px;
    width: 300px;
    min-height: 400px;
    height: 400px;
    text-align: center;
    background-color: #12121b98;
    border-radius: 2em;
    overflow: hidden;
    border: 2px solid #F0C1CD;
    width: 30%;
}

.techitem .techimg {
    width: 100%;
    height: 100%;
}

.techitem .techimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.techitem .techdescr {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.4) 10%, 
        rgba(0, 0, 0, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.techitem .techdescr h1 {
    color: #F0C1CD;
}

.techitem .techdescr a {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    text-decoration: 0;
    padding: 0.5em 1em;
    border: 1.3px solid #ECE6EA;
    transition: all 0.5s ease;
    margin-top: 30px;
    border-radius: 2em;
}

.techitem .techdescr:hover {
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.3) 10%, 
        rgba(0, 0, 0, 0.6) 100%
    )
}

.techitem .techdescr:hover a {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.techdescr a:hover {
    background-color: #ECE6EA;
    color: #0E0C0E;
}

/*footer*/

footer {
    margin: 4em 0 1em 0;
}

footer p {
    font-size: 0.7em;
    color: #f0c1cd35;
    text-align: center;
}

@keyframes blinkanim {
    50% {background: none;}
}

@keyframes fadepic {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 100%;
    }
}

/* Media screen Tablet */

@media (max-width: 1024px) {
    header {
        width: calc(100% - 2em);
        padding: 1em;
        gap: 2em;
        font-size: 0.9em;
    }

    #about {
        padding: 1em;
    }

    #about .pic {
        margin-left: 1em;
    }

    #about .welcome #typewelcome {
        font-size: 1.9em;
    }

    #exp {
        padding: 0 1em;
    }

    #edu {
        padding: 0 1em;
    }

    #edu .educard {
        padding: 0.5em 0;
    }

    #project {
        padding: 0 1em;
    }

    #project .projectcard {
        padding: 0.5em 0;
    }

    #skill {
        padding:  0 1em;
    }

    #skill .skillcard {
        padding: 0.5em 0;
    }

    #technology {
        padding: 0 1em;
    }

    #technology .techcard {
        padding: 0.5em 0;
    }   
}

@media (max-width : 768px) {
    header {
        font-size: 1em;
        justify-content: center;
    }

    header .name h1 {
        display: none;
    }

    body {
        margin: 0;
    }

    #about {
        text-align: center;
    }

    #about .welcome .textwelcome {
        justify-content: center;
        margin-top: 5em;
    }

    #about .pic {
        display: none;
    }

    #exp {
        padding: 0;
    }

    #exp .expcard {
        border-radius: 0;
    }

    #exp .expcard .expcontent{
        flex-direction: column;
    }

    .expcard .expcontent .expplace {
        flex-direction: row;
        justify-content: center;
    }

    .expplace button {
        border-right: none;
        border-bottom: 1px solid #ece6ea23;
        transition: border-bottom 0.5s ease;
    }

    .expplace button.expactive {
        border-right: none;
        border-bottom: 2px solid #F0C1CD;
    }

    .edudescr .datedescr {
        width: 100%;
    }

    .carouselContent .Btncarousel {
        display: none;
        visibility: hidden;
    }
}

@media (max-width : 480px) {

    header .menu {
        display: none;
    }

    header .name h1 {
        display: flex;
    }

    #about .welcome #typewelcome {
        font-size: 1.5em;
    }
}