@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background-color: hwb(0 100% 0%);
}

li, a, button{
    font-family:'funnel display';
    font-weight:600;
    font-size: 22px;
    color: hwb(0 0% 100%);
    text-decoration: none;
}

header{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 10%;
    border: 0px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav_bar{
    list-style: none;
}

.nav_bar li{
    display: inline-block;
    padding: 0 20px;
}

.nav_bar li a{
    transition: all 0.3s ease 0s;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.nav_bar li a:hover{
    color: hsl(0, 100%, 50%);
}

.container { display: inline-block;
    display: flex;
    justify-content: last baseline;
}

.text{
    font-size: 280px;
    color: hwb(0 0% 100%);
    display: flex;
    justify-content: flex-start;
    font-weight:800;
    letter-spacing: 5px;
    line-height: 700px;
    margin-bottom: 25px;
    font-family: 'funnel display';
    border-right: 5px solid ;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    animation:
        typing 2s steps(10),
        cursor .4s step-end infinite alternate;
}

@keyframes cursor{
    50% {border-color: transparent;}
}

@keyframes typing{
    from {width: 0;}
}


section {
    padding: 10em;
  }
  
  #about h2{
    font-family:'funnel display';
    font-weight:700;
    font-size: 60px;

  }

  #about p{
    font-family:'funnel display';
    font-weight:500;
    font-size: 22px;
  }

  #about img-cem {
    align-items: center;
    justify-items: center;
  }

  #about{
    text-align: center;
    font-family:'funnel display';
    animation: appear 4s linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  #projects h2{
    font-family:'funnel display';
    font-weight:700;
    font-size: 60px;
    text-align: center;
    animation: appear 4s linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  #projects p{
    font-family:'funnel display';
    font-weight:500;
    font-size: 22px;
    text-align: center;
    padding: 1em;
    animation: appear 4s linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
  
  #portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 90px;
    padding: 40px 10%;
    width: 100%;
  }
  
  .portfolio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: appear 4s linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
  
  .portfolio-item:hover {
    transform: scale(1.05);
  }
  
  .portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .portfolio-item p {
    padding: 10px;
    font-size: 1em;
    color: hsl(0, 0%, 0%);
    text-align: center;
  }

  #contact h2{
    font-family:'funnel display';
    font-weight:700;
    font-size: 60px;
    text-align: center;
    padding: 1em;
  }

  #contact {
    align-items: center;
    text-align: center;
    font-family:'funnel display';
    animation: appear 4s linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  @keyframes appear{
    from{
        opacity: 0;
        scale: 0.4;
    }
    to{
        opacity: 1;
        scale: 1;
    }
  }

  #contact p{
    font-family:'funnel display';
    font-weight:600;
    font-size: 22px;
    color: hwb(0 0% 100%);
    text-decoration: none;
    transition: all 0.3s ease 0s;
    color: black;
    text-decoration: none;
    
}

#contact p:hover{
    color: hsl(0, 100%, 50%);
}

#contact a{
    font-family:'funnel display';
    font-weight:600;
    font-size: 22px;
    color: hwb(0 0% 100%);
    text-decoration: none;
    transition: all 0.3s ease 0s;
    color: black;
    text-decoration: none;
}

#contact a:hover{
    color: hsl(0, 100%, 50%);
}

.accordion-item {
    animation: appear 4s linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}






@media(max-width: 1770px) {
    header{
        padding: 22px 4%;
    }
    .icons {
        padding: 0 4%;
    }
    .scroll-down {
        right: 4%;
    }
}


@media(max-width: 1670px) {
    :root{
        --big-font: 5.5rem;
        --p-font: 15px;
    }
    .text {
        font-size: 240px;
    }
}


@media(max-width: 1370px) {
    .icons {
        display: none;
    }
    section {
        padding: 0 4%;
    }
    .text {
        font-size: 220px;
    }
}



@media(max-width: 1150px) {
    :root{
        --big-font: 4.6rem;
    }
    .hero-button {
        padding: 10px 23px;
    }
    .text {
        font-size: 190px;
    }
}

@media(max-width: 950px) {
        .navlinks {
        position: absolute;
        width: 100%;
        height: 100vh;
        padding: 100px 50px;
        top: 0;
        right: 0;
        left: 100%;
        bottom: 0;
        display: flex;
        flex-direction: column;
        backdrop-filter: blur(32px);
        transition: all .6s ease-in-out;
    }
    .navlinks a {
        display: block;
        padding: 0;
        margin: 0px 0px 25px 0px;
        font-size: 1.7rem;
    }
    .navlinks.open {
        left: 0;
    }
    .text {
        font-size: 140px;
    }

}
@media(max-width: 920px) {
    .scroll-down {
        display: none;
    }
    .hero {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-text {
        padding-top: 130px;
    }
    .hero-image {
        height: 800px;
        width: 500px;
        margin: 0 auto;
    }
    .hero-image img{
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .text {
        font-size: 130px;
    }
}

@media(max-width: 570px) {
    .hero {
        height: 100vh;
    }
    .hero-image {
        height: 400px;
        width: 400px;
        margin: 0 auto;
    }
    :root {
        --big-font: 4rem;
    }
    .text {
        font-size: 120px;
    }
}


@media(max-width: 440px) {
    :root {
        --big-font: 3.4rem;
    }
    .hero-text h5 {
        font-size: 15px;
    }
    .hero-image {
        height: 360px;
        width: 360px;
        margin: 0 auto;
    }
    .text {
        font-size: 60px;
    }
}

