/* Basic styles */

@import url('https://fonts.googleapis.com/css2?family=Anuphan&family=Poppins:ital,wght@1,400;1,500&family=Ubuntu:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anta&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html,
body {
    overflow-x: hidden;
}

:root {
    --primary-color: #05231a;
    --font-color: #FFFAF4;
}

section {
    padding: 100px 0;
    min-height: 100vh;
}

.max-width {
    max-width: 1300px;
    padding: 0 20px;
    margin: auto;
}

/* Navbar styling */

.nav-item {
    color: #FFFAF4;
    width: auto;
    height: auto;
}


.navbar-toggler .navbar-toggler-icon {

    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,255)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.navbar-toggler-icon {
    margin-right: 50px;
}


@media (max-width:500px) {
    .navbar-toggler-icon {
        margin-right: 10px;
    }
}

/* home section styling */

.home {
    /* z-index: 1; */
    position: relative;
    display: flex;
    background-image: url(images/rectangle.jpg);
    background-attachment: fixed;
    background-size: cover;
    margin: auto;
    font-family: "Anta", sans-serif;
     font-style: normal;
    color: var(--primary-color);
}

/* .home .max-width {    
        margin: auto 0 auto 10px;
} */

.home .home-content {
    color: var(--primary-color);
    justify-content: center;
    padding-top: 70px;
    padding-left: 30px;
    /* color: #FAF3F0; */
}

.home .home-content #text-2 {
    font-size: 100px;
    padding-bottom: 3px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    margin-top: 53px;

}
.home .home-content #text-3{
    font-size: 45px;
    display: flex;
        align-items: center;
        justify-content: center;

}

#home-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#hirebtn {
    background-color: var(--primary-color);
    color: var(--font-color);
    width: 120px;
    height: 40px;
    margin-top: 20px;
    border: none;
    transition: all 0.3s ease;
    font-size: large;
}

#hirebtn:hover {
    background-color: var(--font-color);
    color: var(--primary-color);
    background: none;
}

.fa {
    color: rgb(210, 210, 210);
}

#home-socials {
   
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;

}
#home-socials #icons {
    padding:20px;
}

@media (max-width:1148px) {

    /* .socialright {
        margin-left: 20%;
        margin-top: 15%;
        margin-right: 0px;

    } */
    /* #home-socials{
        
    } */
}

#home-socials #icons .fa:hover {
    color: #02271d;
}

.desc {
    display: inline-flex;
}

.desc .text-first {
    margin-top: 3px;
    color: #FFFAF4;
    /* font-weight:100;
    font-size: small; */
}

.desc .text-sec {
    padding-left: 15px;
    line-height: 49px;
    overflow: hidden;
    height: 47px;

}

.desc .text-sec li {
    padding-top: 2px;
    color: #289a78;
    list-style: none;
    font-size: 40px;
    font-weight: 500;
    position: relative;
    top: 0;
    animation: slide 7s steps(7) infinite;
}

@keyframes slide {
    100% {
        top: -360px;
    }
}

.desc .text-sec li span {
    position: relative;

}

.desc .text-sec li span::after {
    content: "";
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
    background: #05231a;
    border-left: 2px solid black;
    animation: typing 1s steps(12) infinite;
}

@keyframes typing {
    100% {
        left: 100%;
        margin: 0 -35px 0 35px;
    }
}

/* responsive media query start -  home*/

@media (max-width:947px) {
    .max-width {
        padding: 0 50px;
    }

    .menu-btn {

        display: block;
        z-index: 999;
    }

    /* .socialright {
        margin-left: 26%;
        margin-top: 25%;
        margin-right: 0;
    } */

    /* #home-socials{

    } */
    #home-socials #icons{
        padding: 10px;
    }
    .navbar .menu {
        position: fixed;
        background: var(--primary-color);
        width: 100%;
        left: -100%;
        top: 0;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
    }

    .navbar .menu.active {
        left: 0;

    }

    .navbar .menu li {
        display: block;
    }

    .navbar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 20px;
    }
    
    .home {
        /* z-index: 1; */
        position: relative;
        display: flex;
        /* background-image: url(images/n.png); */
        background-attachment: fixed;
        background-size: cover;
        margin: auto;
        font-family: 'Ubuntu', sans-serif;
        color: var(--primary-color);
    }

    .home .home-content #text-2 {
        font-size: 50px;
        /* white-space: normal; */
        overflow: visible;
    }

    .home .home-content #text-3{
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
       
    }

    #hirebtn:hover {
        background-color: var(--font-color);
        color: var(--primary-color);
        background: none;
    }
}

@media (min-width: 947px) and (max-width: 1128px) {
    /* .socialright {
        margin-left: 5%;
        margin-top: 17%;
        margin-right: 15px;
    } */
    /* #home-socials{

    } */

    #hirebtn:hover {
        background-color: var(--font-color);
        color: var(--primary-color);
        background: none;
    }
}

@media (max-width:500px) {
    .max-width {
        padding: 0 18px;
    }

    .home .home-content #text-2 {
        font-size: 40px;
        white-space: normal;
        overflow: visible;
        padding-left: 2px;
    }
    .home .home-content #text-3{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #hire-btn {
        font-size: medium;
    }

    /* .socialright {
        margin-left: 2%;
        margin-top: 50%;
        margin-right: 30px;
    } */
    #home-socials{
        display: flex;
        flex-wrap: nowrap;
    }
    

}
.container{
    overflow: hidden;
}

/* about section styling */

.about {
    background-color: var(--primary-color);
    height: auto;
    font-family: 'Poppins', sans-serif;
    padding: 20px 0;
}

.about p {
    font-size: 24px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

.abouttext,
.veridiang,
.title {
    color: rgb(210, 210, 210);
}

.about .title,
.portfolio .title {
    margin-top: 40px;
}

.portfolio .title,
.contact .title {
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 10px;
    position: relative;
}

.about .title {
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

#cvbtn {
    background-color: var(--font-color);
    color: var(--primary-color);
    width: 110px;
    height: 40px;
    margin-top: 20px;
    border: none;
    transition: all 0.3s ease;
    font-size: large;
    display: block;
    /* margin-left: auto; */
    margin-right: auto;
}

#cvbtn:hover {
    background-color: var(--primary-color);
    color: var(--font-color);
    background: none;
}

.about2 {
    margin-top: 40px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .about {
        padding: 10px;
    }

    .about p {
        font-size: 24px;
    }

    .about .title {
        font-size: 32px;
        margin-top: 10px;
    }

    #cvbtn {
        width: 90px;
        height: 35px;
        font-size: medium;
    }
}

@media (max-width: 500px) {
    .about .title {
        font-size: 28px;
        margin-top: 10px;
    }

    .about p {
        font-size: 22px;
    }

    #cvbtn {
        width: 80px;
        height: 30px;
        font-size: small;
    }

    .max-width {
        padding: 0 10px;
    }
}


/* Projects section */
.card-custom .card-custom-image {
    overflow: hidden;
}


.link-custom .card-custom-image img {
    transition: all 0.4s ease;
}

.card-custom:hover .card-custom-image img {
    transform: scale(1.05);
    /* Adjust the scale factor as needed */
    transition: transform 0.3s ease;
}



#cbody {

    padding-left: 70px;
}



.portfolio,
.cardsc {
    /* height: 120vh; */
    /* min-width: 80vh; */
    background-image: url(images/rectangle.jpg);
    background-attachment: fixed;
    background-size: cover;
    margin: auto;
}

#portfolio2 {
    min-height: 40vh;
}

#devicon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#tohover {
    font-size: 50px;
    color: rgb(210, 210, 210);
    padding: 5px;
}

#tohover:hover {
    color: #02271d;
}

@media (max-width: 767px) {
    #devicon {
        justify-content: flex-start;
    }

    #tohover {
        color: rgb(210, 210, 211);
    }

    #tohover:hover {
        color: #05231a;
    }
}


#pt {
    color: #05231a;
}

.portfolio .title::before {

    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #05231a;
    transform: translateX(-50%);
}

/* contact section styling */

.contact {
    /* height: 80vh; */
    background-color: var(--primary-color);
    justify-content: center;
    align-items: center;
    display: flex;
}

.contact p {
    font-size: 24px;
    font-family: 'Poppins', sans-serif;

}

.socials {
    /* margin-top: 50px; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 50px;

}

#icons {
    padding: 15px;
    }
#icons a .fa{
    font-size: 36px;
}

.anime1 {
    align-items: center;
    display: flex;
    justify-content: center;
}

.anime {
    width: 60rem;
    height: 100px;
    background: #05231a;
    align-items: center;
    display: flex;
    justify-content: center;
    color: #FFFAF4;
    border-radius: 9px;
}

#blog_h1 {
    font-size: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width:805px) {
    .anime {
        width: 30rem;
        height: 90px;
    }

    #blog_h1 {
        font-size: 25px;
        align-items: center;
    }
}

@media (max-width:440px) {
    .anime {
        width: 25rem;
        height: 90px;
    }

    #blog_h1 {
        font-size: 20px;
        align-items: center;
    }
}


@media (max-width:360px) {
    .anime {
        width: 20rem;
        height: 90px;
    }
}



#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #02271d;
    border: none;
    box-shadow: none;
}


/* footer */

footer {
    min-height: 70px;
    background: #02271d;
    color: var(--font-color);
}

#copyright {
    font-size: medium;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Ubuntu', sans-serif;
}