:root{
    --text-color: #1a1c30;
    --link-color: #4a76ee;
    --background-color: #eeeff1;
    --background-particle-color: #2a2b32;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}



canvas {
    height: 100vh;
    width: 100vh;
    z-index: -100000;
    position: fixed;
    top: 0px;
    left: 0px
}


body{
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
}

a{
   color: var(--link-color) ;
   text-decoration: none;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
}

nav .left a{

color: var(--text-color);
font-size: 27px;
font-weight: 600;
}

/* 
nav .right a{
    color: var(--text-color);
    margin: 0 10px;

}
*/



nav .right a{
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
}

nav .right a span{
    margin-left: 5px;
    padding: 0px;
}

/* SECTION 1 HERO */

.hero-section{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 100px;
    gap: 40px;
}

.hero-section .text{
    flex: 5
}

.hero-section .text h2{
    font-size: 45px;
}

.hero-section .text .links{
    margin-top: 25px;
}

.hero-section .text .links a{
   display: inline-block; 
   padding: 5px 10px;
   border: 2px solid var(--link-color);
   border-radius: 5px;
   margin-right: 10px;
   margin-bottom: 10px;
   transition: .1s;
}
.hero-section .text .links a:hover{
    color: var(--text-color);
    border: 2px solid var(--text-color);
}
.hero-section .headshot{
    flex: 2;
    display: flex;
    justify-content: right;
}
.hero-section .headshot img{
    width: 350px;
    border-radius: 50%;
}

/*SKILLS SECTION 2 */
.skills-section{
    padding: 0 50px;
    margin-bottom: 100px;
}
.skills-section h2{
    text-align: center;
    font-size: 35px;
}
.skills-section text{
    text-align: center;
    margin-bottom: 20px;
}
.skills-section .cells{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.skills-section .cells .cell{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 200px;
    padding:  10px 20px;
    margin: 10px;
    border: 1.5px solid#d3d3d3;
    border-radius: 5px;
    background-color:var(--background-color);
    
}
.skills-section .cells .cell span{
    font-size: 18px;
    
}
.skills-section .cells .cell img{
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 2px;
    
}

/*SECTION 3: TESTIMONY */
.testimony-section{
    padding: 0 50px;
    margin-bottom: 100px;
}

.testimony-section h2{
    font-size: 35px;
    margin-bottom: 30px;
}

.testimony-section .group{
    display: flex;
    align-items: center;
    gap:  50px;
}

.testimony-section .group .person-details{
    text-align: center;
    flex: 2;
}
.testimony-section .group .person-details img{
    width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.testimony-section .group .person-details p{
    font-weight: 600;;
}
.testimony-section .group .person-details p:last-child{
    font-weight: normal;
}



.testimony-section .group .text{
    flex: 8;
}

/*SECTION 4 PROJECTS */
.projects-section{
    padding: 0 50px;
    margin-bottom: 100px;
}
.projects-section h2{
    text-align: center;
    font-size: 35px;
    padding-top: 10px;
}
.projects-section .projects-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    padding-top: 5px;
}
.projects-section .project-card{
    position: relative;
    width: 30%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 10px;
    border: 1.5px solid #d3d3d3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.projects-section .project-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.projects-section .project-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.projects-section .project-card:hover img{
    transform: scale(1.05);
}
.projects-section .project-overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26,28,48,0.9),transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.projects-section .project-card:hover .project-overlay{
    transform: translateY(0);
}
.projects-section .project-overlay span{
    font-size: 18px;
    font-weight: 600;
}
.projects-section .view-all{
    text-align: center;
    margin-top: 30px;
}
.projects-section .view-all a{
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--link-color);
    color: var(--background-color);
    border-radius: 5px;
    font-size: 16px;
    transition: 0.1s;
}
.projects-section .view-all a:hover{
    filter: brightness(0.9);
}

/*PROJECT PAGES */
.project-page{
    padding: 0 50px;
    margin-bottom: 100px;
}

.project-page h2{
    text-align: center;
    font-size: 40px;
    padding-top: 50px;
    margin-bottom: 30px;
}

.project-page .project-description{
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
    line-height: 1.6;
}

.project-page .project-description p{
    font-size: 16px;
    color: var(--text-color);
}

.project-page .screenshots-grid{
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.project-page .screenshot-card{
    position: relative;
    width: 85%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    border: 1.5px solid #d3d3d3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-page .screenshot-card:nth-child(odd){
    align-self: flex-start;
}

.project-page .screenshot-card:nth-child(even){
    align-self: flex-end;
}

.project-page .screenshot-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-page .screenshot-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-page .screenshot-card:hover img{
    transform: scale(1.05);
}

.project-page .screenshot-card .project-overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26,28,48,0.9),transparent);
    color: white;
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.project-page .screenshot-card .project-overlay span{
    font-size: 18px;
    font-weight: 600;
}

.project-page .view-all{
    text-align: center;
    margin-top: 40px;
}

.project-page .view-all a{
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--link-color);
    color: var(--background-color);
    border-radius: 5px;
    font-size: 16px;
    transition: 0.1s;
}

.project-page .view-all a:hover{
    filter: brightness(0.9);
}
/*SECTION 5 SLIDESHOW */
.slideshow-section h2{
    text-align: center;
    font-size: 35px;
}
.slideshow-section .banner{
    display: flex;
    width: 100%;
    height: 80vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.slideshow-section .banner .slider{
    margin-top: 100px;
    position: absolute;
    width: 250px;
    height: 400px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(2000px);
    animation: autoRun 20s linear infinite;
}

.slideshow-section .view-all{
    text-align: center;
    margin-top: 0px;
}
.slideshow-section .view-all a{
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--link-color);
    color: var(--background-color);
    border-radius: 5px;
    font-size: 16px;
    transition: 0.1s;
}
.slideshow-section .view-all a:hover{
    filter: brightness(0.9);
}

@keyframes autoRun{
    from{
        transform: perspective(2000px) rotateY(0deg);
    } to{
        transform: perspective(2000px) rotateY(360deg);
    }
}

.slideshow-section .banner .slider .item{
    position: absolute;
    inset: 0 0 0 0;
    transform:
    rotateY(calc( (var(--position) - 1) * (360 / var(--quantity))*1deg)) 
        translateZ(550px);
}

.slideshow-section .banner .slider .item img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*GALLERY*/
.gallery-section h2{
    text-align: center;
    font-size: 35px;
}

.gallery-section{
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 16px;
    padding: 16px;
}

.gallery-section img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/*LIGHTBOX*/
.lightbox{
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lightbox.active{
    opacity: 1;
    visibility: visible;
}

.lightbox img{
    max-width: 90%;
    max-height: 90%;
    border-radius: 0px;
}

.lightbox::after{
    content: 'x';
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

.gallery-section img:hover{
    transform: scale(1.03);
}


/* SECTION 5 CONTACT */
.contact-section{
    padding: 0 50px;
    margin-bottom: 100px;
}

.contact-section h2{
    font-size: 35px;
}

.contact-section .group{
    display: flex;
    gap: 50px;
}
.contact-section .group .text{
    flex: 3;
    margin-top: 0px;
}
.contact-section .group form{
    flex: 3;
    display: flex;
    flex-direction: column;
}

.contact-section .group form input,
.contact-section .group form textarea {
    font-family: 'Poppins';
    border: 2px solid var(--link-color);
    background-color: transparent;
    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
}

.contact-section .group form button{
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: var(--link-color);
    border: none;
    height: 50px;
    cursor: pointer;
    transform: .1s;
}

.contact-section .group form button:hover{
  filter: brightness(.9);  
}


.footer{
    padding: 20px 50px;
}

@media (max-width:850px) {

    .hero-section .text h2{
        font-size: 35px;
    }
    
}

@media (max-width:740px) {

    .hero-section{
        flex-direction: column-reverse;
    }

    .hero-section .headshot img{
        width: 300px;
    }

    /*SECTION 3 TESTIMONY */
    .testimony-section{
        text-align: center;
    }
    .testimony-section .group{
        flex-direction: column;
    }

    /*SECTION 4 GALLERY */
    .gallery-section .banner{
    }

    /*SECTION 5 CONTACT */
    .contact-section .group{
    flex-direction: column;
    }
}

@media (max-width:600px){
    /* NAVIGATION BAR */
    nav{
        padding: 0 20px;
    }

    nav .right a{
        font-size: 22px;
    }
    nav .right a:last-child{
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }

    nav .right a span{
        display: none;
    }

    /*Section 1 */
    .hero-section{
        padding: 0 20px;
    }

    .hero-section .text h2{
        font-size: 30px;
    }

    /*SECTION 2: SKILLS */
    .skills-section{
        padding:  0 20px;
    }

    .skills-section .cells .cell span{
        font-size: 16px;
    }

    /*SECTION 3 TESTIMONY */
    .testimony-section{
        padding: 0 20px;
    }

    /*SECTION 4 GALLERY */
    .gallery-section{
        display: none;
    }
    
    /*SECTION 5 CONTACT */
    .contact-section{
        padding:  0 20px;
    }

    

}