/* Typography */
html{
    font-size: 62.5%;
}

a {
    text-decoration: none;
}

ul, li {
    list-style-type: none;
}

:root {
    --color-primary: #fe7c9b;
    --color-secondary: #b6d6eb;
    --color-accent: #cf9fcb;
    --color-headings: #231f42;
    --color-body: #8F87F1;
    --color-primary-light: #f6f5ff;
    --toggle-color: #e7e7e7;
    --color-text: #707070;
    --color-yellow: #fdcb12;
}



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

body{
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    color: var(--color-headings);
    line-height: 1.5;
    min-height: 100vh;
    
}


h1, h2, h3 {
    color: var(--color-headings);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3rem;
}

p {
    margin-top: 0;
}

@media screen and (min-width: 1024px) {
    body {
        font-size: 2rem;
    }

    h1 {
        font-size: 6rem;
    }
    
    h2 {
        font-size: 4rem;
    }

    h3 {
        font-size: 2.5;
    }
    
}



/* flex box */

.justify-center {
    justify-content: center;
}

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


/* Blocks */
.block {
    --padding-vertical: 6rem;
    padding: var(--padding-vertical) 2rem;
    
}

.block__heading {
    margin-top: 0;
}

.block__header {
    text-align: center;
}

.block--dark {
    background-image: url(/images/heroImg.webp);
    background-size: cover;
    color: var(--color-headings);
}

.block--skewed-right{
    padding-top: calc(var(--padding-vertical) + 4rem) ;
    clip-path: polygon(100% 20%, 100% 100%, 0 100%, 0 0);
    overflow: hidden; 
}

.block--skewed-left{
    padding-bottom: calc(var(--padding-vertical) + 4rem) ;
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 0% 100%);
    overflow: hidden; 
}


.container {
    max-width: 1140px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .block--skewed-right{
    padding-top: calc(var(--padding-vertical) + 14rem) ; 
}
.block--skewed-left{
    padding-bottom: calc(var(--padding-vertical) + 6.5rem) ;
    
}
}


/* Icons */
.icon {
    width: 20px;
    height: 20px;
}

.bigIcon {
    width: 30px;
    height: 30px;
}


/* Buttons */

.btn {
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2rem 3rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;

}



.btn--accent{
    background: var(--color-body);
    color: var(--color-primary-light);
}

.btn--accent:hover {
    background: var(--color-primary-light);
    color: var(--color-body);
    transition: 0.3s;
}

.btn--block {
    width: 100%;
    display: inline-block;
}

.btn-pulse {
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.png-link-btn { display:inline-flex; align-items:center; justify-content:center; }
.png-link-btn img {
  width: 500px; height: auto;
}


@media screen and (min-width: 1024px) {
    .btn {
        font-size: 1.5rem;
    }
}

/* Grids */

.grid {
    display: grid;
}

@media screen and (min-width: 768px) {
    .grid--1x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Collapsibles */
.collapsible__header {
    display: flex;
    justify-content: space-between;
}

.collapsible__heading {
    margin-top: 0;
    font-size: 3rem;
}

.collapsible__content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.collapsible--expanded .collapsible__content{
    max-height: 100vh;
    opacity: 1;
}


/* Navigation Bar */
.nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 60px;
    background-color: var(--toggle-color);
    position: relative;
    z-index: 1000;
}

.nav__list {
    width: 100%;
    margin: 0;
}

.nav__item {
    padding: 0 3rem;
    border-bottom: 1px solid #bcb9b9;
    list-style: none;
    padding-left: 0;

    
}

.nav__item>a {
    color:var(--color-headings);
    transition: color .3s;
    
}

.nav__item>a:hover {
    color:var(--color-accent)
}

.nav img {
   width: 150px;
   height: 80px;
   object-fit: cover;
   margin-top: auto;
   position: relative;
   background-color: #fff;
   border-radius: 50%;
}


.nav__toggler {
    transition: box-shadow .15s;
    cursor: pointer;
    padding: 1rem 1rem;
}

.nav.collapsible--expanded .nav__toggler {
    box-shadow: 0 0 0 5px #FFFA8D;
}

@media screen and (min-width: 768px) {
    .nav__toggler {
        display: none;
    }

    .nav__list {
        width: auto;
        display: flex;
        font-size: 1.6rem;
        max-height: 100%;
        opacity: 1;
        padding-top: 1rem;
    }

    .nav__item {
        border: none;
    }
}

/* Hero---------------------------------------------------------------------------------------------------------------- */
.img_container {
  display: flex;
  gap: 0;    
}
.img_container img {
  display: block; 
  margin: 0;
  width: 100px;  
}

.hero__par, .contact-h2  {
    font-size: 3rem;
    color: var(--color-body);
    margin-top: 0;
    font-family: "Libertinus Keyboard", system-ui;
}

.hero_img {
    width: 100%;
}

.hero__tagline {
    font-size: 2rem;
    letter-spacing: 1px;
    margin: 2rem 0 5rem;
}

.hero__tagline span {
    font-weight: bolder;
}




@media screen and (min-width: 768px) {
    .hero {
        padding-top: 2rem;
    }

    .hero__content {
        text-align: left;
        align-self: center;
    }

    .img_container img {
        width: 150px;
    }

}



@media (max-width: 768px){
  .hero_img{
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    margin:0 auto; text-align:center;
  }
  .img_container{ display:flex; justify-content:center; gap:0; }
}

@media (prefers-reduced-motion: reduce){
  #mobileLoader{ display: none !important; }
}



/* About ---------------------------------------------------------------------------------------------------------------*/
.about__heading {
    font-weight: 800;
    text-shadow:
    1px 1px 2px black,
    0 0 1em blue,
    0 0 0.2em blue;
    color: white;
    margin-bottom: 10rem;
    
}

.about_buttons {
    border: 1px solid #ccc;
    display: inline-flex;
    justify-content: space-around;
    border-radius: 40px;
    gap: 12px;
    align-items: center;
    margin: 2rem;
    
}

.about__btn{
    margin: 0;
    padding: 1rem;
    border: 1px solid #ccc;
}

.about__btn.active {
    background-color: var(--color-secondary);
} 

.about__btn:hover {
    background-color: var(--color-secondary);
}

.about__section {
    max-height: 700px;
    margin-top: 100px;
}

@media (max-width: 768px){
  .parAbout{
    font-size: 1.5rem;   /* was ~2.4rem */
    line-height: 1.5;
    overflow-y: hidden;
  }

  .about__section {
    padding: 0;
  }

  .about__btn {
    font-size: 1.6rem;
  }
  

}

/* Banner */

.banner {
    max-width: 100%;
    max-height: none;
    text-align: center;
    position: relative;
}

.banner .slider {
    position: absolute;
    width: 270px;
    height: 270px;
    top:10%;
    left: calc(50% - 60px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 30s linear infinite;
}
@keyframes autoRun{
    from{
        transform: perspective(1000px) rotateY(0deg);
    }to{
        transform: perspective(1000px) rotateY(360deg);
    }
}

.banner .slider .slider__item{
    position: absolute;
    inset: 0 0 0 0;
    transform: 
        rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(150px);
}

.banner .slider .slider__item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px){
    
    .about__section{ max-height: none; }                 
    .banner{ 
        min-height: 280px;
        justify-items: center;
        
     }                        
    .banner .slider{ 
        transform: translateX(-50%) perspective(900px);
         left: calc(40% - 60px);
     }
    }



@media (max-width: 520px){
  .banner{ min-height: 200px; }
  .banner .slider{ width: 170px; height: 170px; }
  .banner .slider .slider__item{
    transform:
      rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
      translateZ(85px);
  }
}
  

/* Skills -------------------------------------------------------------------------------------------------------------------*/

#skills { 
    position: relative;
    z-index: 5; 
    margin-bottom: 60px; 
}
.skills__section {
    margin-top: 100px;
}
.skills__container { 
    border-radius:30px;
    min-height: 400px;  
}

.skills-block{
    perspective: 900px;             
    -webkit-perspective: 900px;      
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    position: relative;
                       
}


.skills__heading {
    font-weight: 800;
    text-shadow:
    1px 1px 2px black,
    0 0 1em var(--color-body),
    0 0 0.2em var(--color-body);
    color: white;
}

.skills_button {
    gap: 12px;
   
   
}

.skills-btn {
  padding: 1rem 2rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-headings);
  border: 2px solid var(--color-body);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
    z-index: 10; 
    margin-bottom: clamp(12px, 2.5vw, 28px);
}

.liquid {
  background: linear-gradient(var(--color-primary) 0 0) no-repeat calc(200% - var(--p, 0%))
    100% / 200% var(--p, 0.2em);
  transition: 0.3s var(--t, 0s),
    background-position 0.3s calc(0.3s - var(--t, 0s));
} 

.liquid:hover {
  --p: 100%;
  --t: 0.3s;
  color: #fff;
} 

.cardItem {
  pointer-events: auto;
    cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  -webkit-transition: -webkit-transform 0.3s, box-shadow 0.3s;
  outline: none;
  will-change: transform;
}

.card1, .card2, .card3, .card4 {
    background: radial-gradient(circle,rgba(252, 247, 247, 1) 35%, rgba(143, 135, 241, 1) 100%);
    transform: rotateX(60deg) translateY(-200px);
    box-shadow: 0px 20px 60px rgba(0,0,0, 0.5);
    width: 250px;
    height: 250px;
    margin-top: 50px;
    margin-bottom: 10px;
    transition:.6s;
    text-align:center;
    position: absolute;
    z-index: 11;
}

.card1 {
  top: 0;
}

.card1:hover{
  transform: rotatex(0deg);
  transform: rotatez(0deg);
  transition:.6s;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}
.card1 img{
  transform: translateY(15px);
  width:150px;
  height:120px;
}
h4{
  font-size:25px;
  color:var(--color-headings);
  text-shadow: 0 0 2px rgb(255,255,255);
  transform: translatey(10px);
  margin-top: 2rem;
  text-transform: uppercase;
}


.card2 {
  left: 280px;
 
}

.card2:hover{
    transform: rotatex(0deg);
  transition:.6s;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}
.card2 img{
  transform: translateY(15px);
  width:150px;
  height:120px;
}
.card3 {
  left: 550px;
  
}
.card3:hover{
   transform: rotatex(0deg);
  transition:.6s;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}
.card3 img{
  transform: translateY(15px);
  width:150px;
  height:120px;
}

.card4 {
  left: 820px;

}
.card4:hover{
   transform: rotatex(0deg);
  transition:.6s;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
  
}
.card4 img{
  transform: translateY(15px);
  width:150px;
  height:120px;
}



 
 @media (max-width: 1060px){
  .card1{ left:  40px;  width:180px; }
  .card2{ left: 270px;  width:180px; }
  .card3{ left: 490px;  width:180px; }
  .card4{ left: 720px;  width:180px; } 
}

@media (max-width: 900px){
  .skills__section{ margin-top: 60px; }
  .skills__container{ overflow: visible; }

 
  .skills-block{
    position: static;
    height: auto;                
    transform: none;
    transform-style: flat;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    padding: 8px 0;
  }

  .skills-block > div[class^="card"]{
    position: static;            
    width: 100%;
    height: auto;
    transform: none;             
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
    border-radius: 16px;
    padding: 16px 12px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(252,247,247,1) 35%, rgba(143,135,241,.25) 100%);
  }

  .skills-block img{
    width: 96px; height: auto; transform: none;
  }

  .skills-block h4{
    margin: 10px 0 4px;
    font-size: 2rem;
    text-shadow: none;
  }
}

@media (min-width: 641px) and (max-width: 900px){
  .skills-block{
    transform-style: preserve-3d;
  }
  .skills-block > .card{          
    position: absolute;
    will-change: transform;
  }
}


@media (max-width: 520px){
  .skills-block{ grid-template-columns: 1fr; }
  .skills-block img{ width: 88px; }
}  


  
/* projects------------------------------------------------------------------------- */

#projects { 
    position: relative; 
    z-index: 1;
    margin-top: 60px;
    overflow: hidden;
 }

.heading {
    display: flex;
    justify-content: center;
}

.projects__heading {
    text-shadow:
    2px 2px 2px black,
    0 0 1em rgb(131, 192, 221),
    0 0 0.2em rgb(131, 192, 221);
    color: white;
    font-weight: 800;
}


.project-container {
    display: flex;
}

.item {
    height: 70vh;
    background-size: cover;
    flex: 1;
    background-position: center;
    margin: 2px;
    position: relative;
}

h3 {
    position: absolute;
    top: 15px;
    left:20px;
    backdrop-filter: blur(6px);
    background: color-mix(in oklab, #ffffff 40%, transparent);
     border:1px solid rgba(255,255,255,.6);
    font-size: 0;
    font-weight:700;
}

.par {
    position: absolute;
    top:70px;
    left:20px;
    backdrop-filter: blur(6px);
    background: color-mix(in oklab, #ffffff 60%, transparent);
     border:1px solid rgba(255,255,255,.6);
    color: #000000;
    font-size: 0;
    border:1px solid rgba(255,255,255,.6);
    border-radius:12px;
    /* padding:.45rem .9rem; */
    
}

.selected {
    flex: 4;
}

.selected h3 {
    font-size: 35px;
    transition: all 1s ease-in;
}

.selected .par {
    font-size: 15px;
    transition: all 1s ease-in;
}

.selected .lang {
    font-size: 35px;
    transition: all 1s ease-in;
}

.label{
    font-size: 30px;   
}


.one {
 background-image: url(/images/mockup6.webp);   
}

.two {
background-image: url(/images/mockup2.webp);
}

.three {
background-image: url(/images/mockup1.webp);
}

.four {
    background-image: url(/images/mockup4.webp);
}

.five {
    background-image: url(/images/mockup5.webp);
}

@media (max-width: 900px){
  .project-container { display: grid; gap: 14px; }
  .item{
    height: auto;
    aspect-ratio: 16 / 9;   /* nice card shape */
    border-radius: 16px;
    overflow: hidden;
  }
}

@media (max-width: 520px){
    .selected h3{
        font-size: 20px;
    } 
}
    



/* Contact-------------------------------------------------------------------------------------------------- */

.contact__heading {
    margin-bottom: 10rem;
}

.contact-h2 {
    text-transform: uppercase;
}

.parContact {
    padding-top: 1.5rem;
}

.getintouch__list li{ 
    display:grid; 
    grid-template-columns: 22px 1fr; 
    align-items:center; 
    gap: 1.2rem; 
    padding: 1.5rem;
}

.getintouch__list a{
     color: inherit; 
     text-decoration: none; 
     border-bottom: 1px dashed transparent; 
    }

.getintouch__list a:hover{ 
    border-color: currentColor; 
}

.iconContact{ 
    color: var(--color-body); 
}

.form {
    text-align: center;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px){
  .form-row{ grid-template-columns: 1fr; }
}

.field{ 
    display: grid; 
    gap: 6px; 
}
.field input, .field textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;                 
  border-radius: 12px;
  font: inherit;
  box-sizing: border-box;
}
.field input:focus, .field textarea:focus{
  outline: none;
  border-color: color-mix(in oklab, var(--color-body, #8F87F1) 45%, #e5e7eb);
  box-shadow: 0 0 0 4px rgba(143,135,241,.25); 
}

.contact__submit{
  margin: 12px auto 0;      
  
    font-size: 1.6rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
  transition: filter .2s ease, transform .08s ease;
}

.contact__submit:hover{
  filter: brightness(1.05);
}

.contact__submit:active{
  transform: translateY(1px);
}

.contact__submit:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-body) 30%, white 70%);
}

/* Footer ---------------------------------------------------------------------------------------------------*/
.mini-footer{
  background: var(--toggle-color);      
  padding: 1.6rem 0;                    
  border-top: 1px solid rgba(0,0,0,.06);
}

.mini-footer__inner{
  display: grid;
  grid-auto-flow: row;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

@media (min-width: 700px){
  .mini-footer__inner{
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
}

.mini-footer__brand img{
  width: 110px;
  height: 58px;
  object-fit: cover;
  background: #fff;
  border-radius: 50%;
}

.mini-footer__socials{
  display: inline-flex;
  gap: 10px;
  padding: 0; margin: 0;
  list-style: none;
}

.mini-footer__socials a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  color: var(--color-headings);
  background: #fff;
  transition: transform .08s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.mini-footer__socials a:hover{
  border-color: var(--color-body);
  color: var(--color-body);             
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.mini-footer__copy{
  color: var(--color-text);
  opacity: .85;
  font-size: 1.4rem;                    
}


 