/* global style */
/* define custom css variables */
:root {
    --bg-black-900: #fff;
    --bg-black-100: #dddddd;
    --bg-black-50: #000;
    --text-black-900: #fff;
    --text-black-700: #555555;
    --text-black-600: #666666;
    --text-black-300: #bbbbbb;
    --outer-shadow: 3px 3px 3px #333, -3px -3px 3px #333;
    --outer-shadow-0: 0 0 0 #d0d0d0, 0 0 0 #f8f8f8;
    --inner-shadow: inset 3px 3px 3px #333, inset -3px -3px 3px #333;
    --inner-shadow-0: inset 0 0 0 #d0d0d0, inset 0 0 0 #f8f8f8;
}
:root * {
    /* Pause the animation */
    animation-play-state: paused;
    /* Bind the animation to scroll */
    animation-delay: calc(var(--scroll) * -1s);
    /* These last 2 properites clean up overshoot weirdness */
    animation-iteration-count: 1;
    animation-fill-mode: both;
}
.progress {
    height: 3px;
    width: 0%;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    animation: progress 1s linear;
}
@keyframes progress {
    to {
        background-color: rgb(20, 255, 226);
        width: 100%;
    }
}
html {
    scroll-behavior: smooth;
}
body {
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    background-color: var(--bg-black-50);
    transition: opacity 1s ease-in;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: transparent;
    cursor: pointer;
}
::-webkit-scrollbar-track {
    background-color: transparent;
    overflow: hidden;
}

::-webkit-scrollbar-thumb {
    background-color: #666;
    border: none;
    border-radius: 5px;
}
*:not(i){
    font-family: 'Raleway' , sans-serif;
    font-weight: 400;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}
::before, ::after {
    box-sizing: border-box;
}
a {
    text-decoration: none;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
img {
    vertical-align: middle;
    max-width: 100%;
}
.dim {
    opacity: 0;
}
.loaded {
    opacity: 1;
}
.container {
    max-width: 1140px;
    margin: auto;
}
.row {
    display: flex;
    flex-wrap: wrap;
}
.justify-content-between {
    justify-content: space-between;
}
.outer-shadow {
    box-shadow: var(--outer-shadow);
}
.inner-shadow{
    box-shadow: var(--inner-shadow);
}
.hover-in-shadow {
    position: relative;
    z-index: 1;
}
.hover-in-shadow:hover{
    box-shadow: var(--outer-shadow-0);
}
.hover-in-shadow::after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    z-index: -1;
}
.hover-in-shadow:hover:after{
    box-shadow: var(--inner-shadow);
}
.align-items-center{
    align-items: center;
}
.btn-1 {
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 500;
    color: var(--skin-color);
    background-color: transparent;
    line-height: 1.5;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}
.btn-1::after{
    border-radius: 30px;
}
.effect-wrap .effect{
    position: absolute;
    z-index: -1;
}
.effect-1{
    width: 30px;
    height: 30px;
    border: 4px solid #8a49ff;
    right: 10%;
    bottom: 10%;
    animation: spin 10s linear infinite;
}
.effect-2{
    left: 3%;
    bottom: 20%;
    width: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    animation: topBounce 3s ease-in-out infinite;
}
.effect-2 div{
    height: 3px;
    width: 3px;
    background-color: #ff9c07;
    margin: 0 3px 8px;
    border-radius: 50%;
}
.effect-3{
    height: 180px;
    width: 180px;
    border: 25px solid var(--skin-color);
    border-radius: 50%;
    left: 50%;
    top: -180px;
    animation: leftBounce 3s ease-in-out infinite;
}
.effect-4{
    border-top: 30px solid transparent;
    border-left: 30px solid #06d79c;
    left: 30%;
    top: 20%;
    animation: spin 15s linear infinite;
}
.effect-4::before{
    content: '';
    border-top: 30px solid transparent;
    border-left: 30px solid #06d79c;
    position: absolute;
    opacity: 0.5;
    left: -35px;
    top:-25px;
}
.effect-5{
    height: 50px;
    width: 50px;
    right: 10%;
    top: 30%;
    display: flex;
    justify-content: space-between;
    border-radius: 50%;
    overflow: hidden;
    animation: spin 10s linear infinite;
}
.effect-5 div{
    width: 1px;
    background-color: #4dd0e1;
}
@keyframes spin {
    0%{
        transform: rolate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
@keyframes topBounce {
    0%,100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(25px);
    }
}
@keyframes leftBounce {
    0%,100%{
        transform: translatex(0);
    }
    50%{
        transform: translatex(25px);
    }
}
@keyframes fadInTop {
    0%{
        opacity: 0;
        transform: translateY(-25px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }
}
.section-title{
    padding: 0 15px;
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2{
    display: inline-block;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-black-900);
    text-transform: uppercase;
    margin: 0;
}
.section-title h2::before{
    content: attr(data-heading);
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--skin-color);
}
/* loader */
#loader {
    width: 100%;
    height: 100vh;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    /* background-color: #ffde6b; */
    background-color: #000;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}
/* header */
.header {
    padding: 20px 15px;
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
}
.header .logo a{
    display: inline-block;
    text-align: center;
    line-height: 36px;
    height: 40px;
    width: 40px;
    font-size: 24px;
    color: var(--skin-color);
    border-radius: 50%;
    border: 2px solid var(--skin-color);
    font-weight: 400;
    text-transform: uppercase;
}
.header .hamburger-btn {
    height: 40px;
    width: 40px;
    display: flex;
    cursor: pointer;
    border-radius: 50%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.header .hamburger-btn::after{
    border-radius: 50%;
}
.header .hamburger-btn span{
    display: block;
    height: 2px;
    width: 16px;
    background-color:var(--bg-black-900);
    position: relative;
}
.header .hamburger-btn .span.top,
.header .hamburger-btn .span.bottom {
    content: '';
    left: 0;
    height: 2px;
    width: 16px;
    background-color:var(--bg-black-900);
}
.top{
    top: -10px;
}
.bottom {
    bottom: -4.5px;
}

/* navigation menu */
.nav-menu {
    position: fixed;
    background-color: var(--bg-black-50);
    padding: 0 15px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-menu .close-nav-menu {
    height: 40px;
    width: 40px;
    display: block;
    font-size: 35px;
    line-height: 35px;
    border-radius: 50%;
    position: absolute;
    padding: 0 6px 6px 6px;
    right: 15px;
    top: 15px;
    cursor: pointer;
    color: var(--text-black-600);
    transition: all 0.3s ease;
}
.open-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0%);
}
.nav-menu .close-nav-menu::after{
    border-radius: 50%;
}
.nav-menu-inner{
    min-height: 100vh;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-menu ul{
    padding: 15px;
}
.nav-menu ul li{
    display: block;
    margin-bottom: 20px;
    text-align: center;
}
.nav-menu ul li:last-child{
    margin-bottom: 0;
}
.nav-menu ul li a{
    display: inline-block;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-black-700);
    padding: 5px 30px;
    text-transform: capitalize;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.nav-menu ul li a.active{
    color: var(--skin-color);
}
.nav-menu ul li a:hover{
    color: var(--text-black-600);
}
.nav-menu .copyright-text{
    position: absolute;
    top: 50%;
    font-size: 15px;
    color: var(--text-black-600);
    transform: translateY(-50%) rotate(-90deg);
    left: -60px;
}
/* home section */
.home-section{
    position: relative;
}
.home-section .full-screen{
    padding: 50px 0;
    min-height: 100vh;
}

.home-section .home-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
}
.home-section .home-text .more-btn {
    position: absolute;
    top: 80vh;
    right: 48.5vw;
    animation: topBounce 5s ease-in-out infinite;
}
.home-section .home-text p{
    color: var(--text-black-300);
    font-size: 18px;
    text-transform: capitalize;
    margin: 0;
}
.home-section .home-text h2{
    font-size: 55px;
    font-weight: 700;
    color: var(--text-black-900);
    margin: 0;
}
.home-section .home-text .btn-1 {
    margin-top: 30px;
}
.home-section .home-text h1{
    font-size: 20px;
    font-weight: 500;
    color: var(--text-black-700);
    margin: 0;
    text-transform: capitalize;
}
.home-section .home-img .img-box{
    max-width: 450px;
    display: block;
    margin: auto;
    border-radius: 50%;
    padding: 15px;
}
.home-section .home-img .img-box img{
    width: 100%;
    border-radius: 25%;
    border: 10px solid transparent;
}
/* about section */
.about-section{
    padding: 80px 0 0;
    min-height: 100vh;
}
.about-section .about-img{
    flex: 0 0 40%;
    max-width: 40%;
    padding: 0 15px;
}
.about-section .about-img .img-box{
    padding: 15px;
    border-radius: 25px;
}
.about-section .about-img .img-box img{
    width: 100%;
    border: 10px solid transparent;
    border-radius: 25px;
}
.about-section .about-img .social-links{
    margin-top: 20px;
    text-align: center;
}
.about-section .about-img .social-links a{
    display: inline-block;
    height: 40px;
    width: 40px;
    font-size: 16px;
    text-align: center;
    color: var(--text-black-600);
    margin: 0 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.about-section .about-img .social-links a:hover{
    color: var(--skin-color);
}
.about-section .about-img .social-links a::after{
    border-radius: 50%;
}
.about-section .about-img .social-links a img{
    border-radius: 50%;
    line-height: 40px;
}
.about-section .about-img .social-links a img:hover{
    color: var(--skin-color);
}
.icons {
    display: block;
    text-align: center;
    font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,sans-serif;
    font-size: 12px;
}

.button-container {
    display: inline-block;
    height: 6rem;
    width: 6rem;
    margin: 0px 1.5rem;
}

.about-section .about-info{
    flex: 0 0 60%;
    max-width: 60%;
}
.about-section .about-info p{
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 15px;
    color: var(--text-black-600);
    text-align: justify;
}
.about-section .about-info span{
    font-weight: 600;
}
.about-section .about-info .btn-1{
    margin: 30px 20px 0 0;
    background-color: #f8f8f8;
}
.about-section .about-info .btn-1:hover {
    background-color: var(--skin-color);
    color: #f8f8f8;
}
.about-section .about-info .hire-me {
    animation: topBounce 3s ease-in-out infinite;
}
.about-section .about-tabs {
    padding: 60px 15px 50px;
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
}
.about-section .about-tabs .tab-item{
    display: inline-block;
    margin: 0 5px 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 16px;
    color: var(--text-black-600);
    font-weight: 500;
    text-transform: capitalize;
}
.about-section .about-tabs .tab-item:hover:not(.active){
    background-color: #333;
    color: #fff;
}
.about-section .about-tabs .tab-item.active{
    background-color: #333;
    color: #fff;
}
.about-section .tab-content{
    flex: 0 0 100%;
    max-width: 100%;
    display: none;
}
.about-section .tab-content.active{
    display: block;
    animation: fadInTop 0.5s ease;
}

.about-section .skills {
    padding: 0 0 40px;
}
  
.about-section .skills .skill-item {
    flex: 0 0 33.3%;
    max-width: 50%;
    padding: 0 15px;
    margin: auto;
    margin-bottom: 40px;
    text-align: center;
}
  
.about-section .skills .skill-item svg {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}
.about-section .skills .skill-item p {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-black-600);
    text-transform: capitalize;
    margin: 0 0 10px;
}
.about-section .education,
.about-section .experience{
    padding: 0 0 80px;
}
.about-section .timeline{
    flex: 0 0 100%;
    max-width: 100%;
    position: relative;
}
.about-section .timeline::before{
    content: '';
    width: 1px;
    left: 50%;
    top: 0;
    height: 100%;
    background-color:var(--bg-black-100);
    position: absolute;
}
.about-section .timeline .timeline-item{
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}
.about-section .timeline .timeline-item:nth-child(odd){
    padding-right: calc(50% + 50px);
    text-align: right;
}
.about-section .timeline .timeline-item:nth-child(even){
    padding-left: calc(50% + 50px);
}
.about-section .timeline .timeline-item-inner{
    padding: 30px;
    border-radius: 5px;
    position: relative;
}
.about-section .timeline .timeline-item-inner::before{
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    background-color: var(--bg-black-100);
    top: 37px;
    z-index: -1;
}
.about-section .timeline .timeline-item:nth-child(odd) .timeline-item-inner::before{
    right: -30px;
}
.about-section .timeline .timeline-item:nth-child(even) .timeline-item-inner::before{
    left: -30px;
}
.about-section .timeline .timeline-item-inner .icon{
    height: 45px;
    width: 45px;
    background-color: var(--bg-black-50);
    text-align: center;
    border: 1px solid var(--bg-black-100);
    line-height: 40px;
    border-radius: 50%;
    font-size: 14px;
    /* color: var(--skin-color); */
    position: absolute;
    top: 18px;
}
.about-section .timeline .timeline-item:nth-child(odd) .icon{
    right: -70px;
}
.about-section .timeline .timeline-item:nth-child(even) .icon{
    left: -70px;
}
.about-section .timeline .timeline-item-inner span{
    font-weight: 500;
    color: var(--skin-color);
    display: block;
    margin: 0 0 10px;
    text-transform: capitalize;
    text-align: start;
}
.about-section .timeline .timeline-item-inner h3{
    font-size: 20px;
    color: var(--text-black-700);
    font-weight: 600;
    margin: 0 0 5px;
    text-transform: capitalize;
    text-align: start;
}
.about-section .timeline .timeline-item-inner h4{
    font-size: 16px;
    font-style: italic;
    color: var(--text-black-600);
    margin: 0;
    text-align: start;
}
.about-section .timeline .timeline-item-inner p{
    font-size: 16px;
    color: var(--text-black-600);
    line-height: 26px;
    margin: 15px 0 0;
    text-align: start;
}
/* services-section */
.services-section {
    padding: 80px 0 80px;
    min-height: 100vh;
}

.services-section .service-item{
    flex: 0 0 33.33%;
    max-width: 33.33%;
    min-width: 320px;
    margin-right: auto;
    margin-left: auto;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    background-color: transparent;
    perspective: 1000px;
}
.services-section .service-item-inner{
    padding: 50px 15px;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -moz-backface-visibility: hidden;
}
.services-section .service-item-inner .icon{
   height: 60px;
   width: 60px;
   text-align: center;
   border-radius: 50%;
   transition: all 0.3s ease;
   display: block;
   margin: 0 auto 30px;
   position: relative;
}
.services-section .service-item-inner:hover .icon{
    box-shadow: var(--inner-shadow-0);
}
.services-section .service-item-inner:hover .icon::after{
    box-shadow: var(--outer-shadow);
}
.services-section .service-item-inner .icon svg{
    line-height: 60px;
    width: 100%;
    color: #fff;
    margin: 7px;
    transition: all 0.3s ease;
}
.services-section .service-item-inner:hover .icon svg{
    color: var(--skin-color);
}
.services-section .service-item-inner h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-black-700);
    margin: 0 0 10px;
    text-transform: capitalize;
}
.services-section .service-item-inner p{
    font-size: 16px;
    color: var(--text-black-600);
    margin: 0;
    line-height: 26px;
    text-align: justify;
}
.service-item:hover .service-item-inner,
.service-item:focus .service-item-inner{
  transform: rotateY(180deg);
}
.flip-card-front {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.flip-card-back {
    transform: rotateY(180deg);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    position: absolute;
    top: 35%;
    left: 30%;
}
.service-item:hover .service-item-inner .flip-card-back {
    visibility: visible;
}
.service-item:hover .service-item-inner .flip-card-front {
    visibility: hidden;
}
.flip-card-back .icon_title {
    color: var(--skin-color);
}
/* portfolio section */
.portfolio-section{
    padding: 80px 0 80px;
    min-height: 100vh;
}
.portfolio-section .section-title{
    margin-bottom: 40px;
}
.portfolio-section .portfolio-filter{
    padding: 0 15px;
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
}
.portfolio-section .filter-item{
    display: inline-block;
    margin: 0 5px 10px;
    padding: 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-black-600);
    text-transform: capitalize;
    font-size: 16px;
    transition: all 0.3s ease;
}.portfolio-section .filter-item:hover:not(.active){
    opacity: 0.6;
}
.portfolio-section .filter-item.active{
    color: var(--skin-color);
}
/* testimontial section */
.testimontial-section{
    padding: 80px 0 80px;
    min-height: 100vh;
}
.testimontial-section .testi-box{
    width: 100%;
    max-width: 600px;
    margin: auto;
}
.testimontial-section .testi-slider{
    border-radius: 50px;
}
.testimontial-section .testi-item{
    padding: 30px;
    text-align: center;
    position: relative;
}
.testimontial-section .testi-item img{
    width: 20px;
    position: absolute;
    font-size: 30px;
    color: var(--text-black-600);
}
.testimontial-section .testi-item img.right{
    left: 5px;
    top: 5px;
    padding-top: 15px;
}
.testimontial-section .testi-item img.left{
    right: 10px;
    top: 60px;
}
.testimontial-section .testi-item img:last-child{
    width: 25%;
    border-radius: 100%;
    position: relative;
}
/* contact section */
.contact-section{
    padding: 80px 0 80px;
    min-height: 100vh;
}
.contact-section .contact-item{
    flex: 0 0 33.33%;
    max-width: 33.33%;
    padding: 15px;
    display: flex;
    min-width: 300px;
    margin: auto;
}
.contact-section .contact-item-inner{
    padding: 30px 15px;
    text-align: center;
    border-radius: 5px;
    width: 100%;
}
.contact-section .contact-item-inner svg{
    font-size: 25px;
    color: #fb839e;
    margin-left: 15px;
    align-items: center;
    width: 20%;
}
.contact-section .contact-item-inner span{
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black-700);
    margin: 15px 0 10px;
    text-transform: capitalize;
}
.contact-section .contact-item-inner p{
    font-size: 16px;
    color: var(--text-black-600);
    line-height: 26px;
    margin: 0;
    word-break: break-word;
}
.contact-section .contact-item-inner a {
    font-size: 16px;
    color: var(--text-black-600);
    line-height: 26px;
    margin: 0;
    text-align: justify;
}
.contact-section .contact-form{  
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 50px;
}
.contact-section .w-50{
    padding: 0 15px;
    flex: 0 0 50%;
    max-width: 50%;
}
.contact-section .input-group{
    margin: 0 0 25px;
    transition: all 0.3s ease;
    border-radius: 30px;
}
.contact-section .input-group::after{
    border-radius: 30px;
}
.contact-section .input-group .input-control{
    height: 45px;
    display: block;
    width: 100%;
    border-radius: 30px;
    border: none;
    background-color: transparent;
    font-size: 16px;
    padding: 0 15px;
    color: var(--text-black-700);
}
.contact-section .input-group textarea.input-control{
    height: 184px;
    padding-top: 15px;
    resize: none;
}
.contact-section .submit-btn{
    flex: 0 0 100%;
    max-width: 100%;
    text-align: right;
    padding: 0 15px;
}

/* Portfolio Section */
.portfolio-section {
    margin-top: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 600;
}
.portfolio-filter {
    text-align: center;
    margin-bottom: 30px;
}

.filter-item {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.filter-item.active, .filter-item:hover {
    background-color: #333;
    color: #fff;
}

.portfolio-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.portfolio-item {
    flex: 0 0 calc(33.33% - 40px);
    max-width: 350px;
    min-width: 300px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

.portfolio-item:hover {
    box-shadow: 0 0 20px #333;
    cursor: pointer;
    transform: scale(1.1);
}

.portfolio-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.portfolio-item-img img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}
.portfolio-item-img img:hover {
    transform: scale(1.1);
}

.portfolio-item-title {
    text-align: center;
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #111;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #000;
    width: 80%; 
    max-width: 800px;
    border-radius: 10px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
}

#modal-title {
    text-align: center;
    margin-top: 0;
    color: #fff;
}

#modal-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

#modal-brief, #modal-info {
    margin-bottom: 20px;
    color: #fff;
}

#modal-info li {
    margin-bottom: 5px;
}


/* Slideshow container */
.slideshow-container {
    max-width: 800px;
    position: relative;
    margin: auto;
}
  
/* Hide the images by default */
.mySlides {
    display: none;
    transition: 0.6s ease;
}

.mySlides:hover {
    cursor: pointer;
}

/* Next & previous buttons */
#prev, #next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: grey;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}
  
/* Position the "next button" to the right */
#next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
  
/* On hover, add a black background color with a little bit see-through */
#prev:hover, #next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
    color: grey;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}
  
/* Number text (1/3 etc) */
.numbertext {
    color: grey;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
.reveal{
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s all ease;
}
  
.reveal.active{
    transform: translateY(0);
    opacity: 1;
}

/* Scroller styling */
.scroller {
    height: 1.2em;
    line-height: 1.2em;
    position: relative;
    overflow: hidden;
    width: 20em;
}
.scroller > span {
    width: max-content;
    position: absolute;
    top: 0;
    animation: slide 8s infinite;
    font-weight: bold;

}
@keyframes slide {
    0% {
        top: 0;
    }
    25% {
        top: -1.2em;
    }
    50% {
        top: -2.4em;
    }
    75% {
        top: -3.6em;
    }
}
/* Typewriter effect 1 */
@keyframes typingFullStack {
    0%, 5% { content: ""; }
    10% { content: "F"; }
    15% { content: "Fu"; }
    20% { content: "Ful"; }
    25% { content: "Full"; }
    30% { content: "Full-"; }
    35% { content: "Full-S"; }
    40% { content: "Full-Sta"; }
    45% { content: "Full-Stack"; }
    50% { content: "Full-Stack S"; }
    55% { content: "Full-Stack Sof"; }
    60% { content: "Full-Stack Softw"; }
    65% { content: "Full-Stack Softwar"; }
    70% { content: "Full-Stack Software "; }
    75% { content: "Full-Stack Software En"; }
    80% { content: "Full-Stack Software Eng"; }
    85% { content: "Full-Stack Software Engi"; }
    90% { content: "Full-Stack Software Engin"; }
    95% { content: "Full-Stack Software Enginee"; }
    100% { content: "Full-Stack Software Engineer"; }
}

@keyframes typingProblemSolver {
    0%, 5% { content: ""; }
    10% { content: "P"; }
    15% { content: "Pr"; }
    20% { content: "Pro"; }
    25% { content: "Prob"; }
    30% { content: "Probl"; }
    35% { content: "Proble"; }
    40% { content: "Problem"; }
    45% { content: "Problem "; }
    50% { content: "Problem S"; }
    55% { content: "Problem So"; }
    60% { content: "Problem Sol"; }
    65% { content: "Problem Solv"; }
    70% { content: "Problem Solve"; }
    75% { content: "Problem Solver"; }
    100% { content: "Problem Solver"; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typewriter {
    --caret: currentcolor;
    display: inline-block;
    font-family: monospace;
    white-space: nowrap;
}

.typewriter::before {
    content: "";
    animation: typingFullStack 5s steps(30, end) 0s 1 normal forwards,
               typingProblemSolver 5s steps(30, end) 5s 1 normal forwards;
}

.typewriter::after {
    content: "|";
    animation: blink 1s infinite;
}

.typewriter.nocaret::after {
    border-right: 0;
}

@media (prefers-reduced-motion) {
    .typewriter::before {
        animation: none;
        content: "Full-Stack Software Engineer";
    }
    .typewriter::after {
        animation: none;
    }
}  
/*Type Writer Effect End*/
/* Media queries */
@media (max-width: 768px) {
    body {
        width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    .effect-3 {
        display: none;
    }
    .effect-2 div{
        visibility: hidden;
    }
    .home-section .home-text h1{
        width: max-content;
    }
    .btn-1 {
        width: max-content;
    }
    .portfolio-item {
        flex: 0 0 calc(50% - 40px);
    }
    .description h3,
    .info h3 {
        font-size: 14px;
    }

    .description p {
        font-size: 13px;
    }

    .about-img {
        min-width: 330px;
        margin: auto;
    }
    .icons {
        display: flex;
    }
    .icons .button-container .button {
        max-width: 30px;
    }
    .about-info {
        min-width: 320px;
        margin: auto;
    }
}

@media (max-width: 650px) {
    .home-img {
        visibility: hidden;
    }
    .home-text {
        padding: 0 15px;
    }
    .home-section .home-text .more-btn {
        right: 43vw;
    }
    .portfolio-item-img img {
        height: auto;
    }
}