* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    font-family: 'roboto',sans-serif;
    background-color: #343d46;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    display: none;
    visibility: hidden;
    opacity: 0
}

/* navbar*/

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 20px 10vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9;
    transition: 0.5s;
    backdrop-filter: blur(1.5px);
}

.logo {
    height: 100%;
}

.toggleBtn{
    display: none;
}

.linksContainer {
    display: flex;
    list-style: none;
    gap: 10px;
}

.links {
    color: #fff;
    text-decoration: none;
    text-transform: capitalize;
    padding: 10px 20px;
    transition: 0.5s;
}

.links:hover {
    opacity: 0.5;
}

/* hero */

#heroSection {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

#heroSection canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.heroContent {
    position: absolute;
    left: 2%;
    top: 70%;
    z-index: 2;
}

.hereHeadline {
    -webkit-animation: typing 2s steps(30, end);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}
@-webkit-keyframes typing {
    from { width:0; }
    }
    
.heroSecondaryLine {
    /* text-align: center; */
    margin: 25px 0 50px;
    font-size: 1.2rem;
    -webkit-animation: typing 2s steps(30, end);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

/* section */

section{
    padding: 60px 10vw;
}

.sectionTitle{
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    text-transform: uppercase;
    position: relative;
}

.sectionTitle::before{
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
    font-size: 4.5rem;
    font-weight: 900;
    opacity: 0.1;
    z-index: -1;
}

.sectionInfo{
    text-align: center;
    width: 50%;
    min-width: 300px;
    color: #fff;
    opacity: 0.5;
    margin: 3.5rem auto;
    font-size: 1.1rem;
    line-height: 1.8rem;
}

/* filters */

.filters{
    margin: 100px 0 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filterBtn{
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    color: #fff;
    background: transparent;
    text-transform: capitalize;
    cursor: pointer;
    transition: 0.5s;
}

.filterBtn.active, .filterBtn:hover{
    color: #000;
    background: #fff;
}

/* about */

.aboutMeContainer{
    margin-bottom: 100px;
    display: flex;
    gap: 100px;
}

.aboutImageContainer{
    width: 40%;
    height: 500px;
    position: relative;
}

.aboutImg{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personalInfo{
    color: #fff;
}

.title{
    text-align: center;
    color: #fff;
    text-transform: capitalize;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
}

.personalInfo .title{
    text-align: left;
}

.personalInfo p {
    margin: 30px 0;
    font-size: 1.1rem;
}

.personalInfo span{
    opacity: 0.5;
}

.socialLinks{
    color: #fff;
    font-size: 2rem;
    margin-right: 20px;
}

/* experions */

.experionsContainer{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    position: relative;
    gap: 60px;
    margin-top: 100px;
}

.expCard{
    padding-top: 15px;
    position: relative;
    color: #fff;
    padding-left: 60px;
    margin-bottom: 50px;
}

.cardIcon {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.time{
    padding: 15px 30px;
    background: #1a1a1a;
    border-radius: 30px;
}

.cardTitle{
    font-size: 1.2rem;
    font-weight: 300;
    margin: 40px 0 30px;
}

.cardTitle span{
    opacity: 0.5;
}

.cardInfo{
    line-height: 1.5rem;
}


/* contact */

.contactContainer{
    margin-top: 100px;
    display: flex;
    gap: 50px;
}

.contactDetails{
    width: 25%;
    color: #fff;
}

.contactCard{
    position: relative;
    padding-top: 10px;
    padding-left: 60px;
    margin-bottom: 40px;
}

.contactCard .cardTitle{
    opacity: 0.5;
}

.contactContainer .socialLinksContainer{
    width: fit-content;
    display: block;
    margin: auto;
}

.contactContainer .socialLinks{
    font-size: 1.4rem;
    /* margin-right: 10px; */
}

.contactForm{
    width: 75%;
    text-align: center;
}

input,textarea{
    width: 100%;
    padding: 20px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    outline: none;
    font-size: 1rem;
    margin-bottom: 20px;
}

.nameEmailInput{
    display: flex;
    gap: 20px;
}

textarea{
    font-family: 'roboto',sans-serif;
    resize: none;
    height: 200px;
}

.contactForm .btn{
    margin: 0;
    border: 2px solid #1a1a1a;
    appearance: none;
    padding: 15px 30px;
    background-color: transparent;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 0 40px 40px #1a1a1a inset, 0 0 0 0 #1a1a1a;
    transition: all 150ms ease-in-out;
}

.contactForm .btn:hover{
    box-shadow: 0 0 10px 0 #1a1a1a inset,0 0 10px 4px #1a1a1a;
}


.footer{
    text-align: center;
    width: 100%;
    padding: 15px;
    color: #fff;
    text-transform: capitalize;
    background: #1a1a1a;
}

.alertWarning,
.alertSuccess{
    position: relative;
    top: 50px;
    left: 50%;
    width: 25rem;
    padding: 1rem 10rem;
    text-align: center;
    transform: translate(-50%,-50%);
    color: #fff;
    display: none;
}

.alertSuccess{
    background-color: green;
}

.alertWarning{
    background-color: red;
}

/* responsive */

@media screen and (max-width:1200px) { 
    html{
        font-size: 15px;
    }
    .contactContainer{
        position: relative;
        flex-direction: column;
        padding-bottom: 70px;
    }
    .contactDetails{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3,1fr);
    }
    .contactContainer .socialLinksContainer{
        position: absolute;
        bottom: 0;
    }
    .contactForm{
        width: 100%;
    }
}

@media screen and (max-width:992px) {
    .hereHeadline{
        font-size: 3.5rem;
    }

    .filterBtn{
        padding: 10px 15px;
    }

    .aboutMeContainer{
        flex-direction: column;
        align-items: center;
    }

    .aboutImageContainer{
        width: 100%;
        min-width: 300px;
        height: 500px;
    }

    .aboutImg{
        object-fit: contain;
    }

    .personalInfo h2{
        text-align: center;
        width: 100%;
    }

    .experionsContainer{
        grid-template-columns: 1fr;
    }

    .contactContainer{
        flex-direction: column-reverse;
        padding-bottom: 0;
    }

    .contactDetails{
        grid-template-columns: repeat(2,1fr);
    }

    .contactContainer .socialLinksContainer{
        position: relative;
        margin-left: 40px;
    }
}

@media screen and (max-width:735px) {
    .nav{
        background-color: #343d46;
    }

    .toggleBtn{
        display: inline-block;
        width: 50px;
        height: 50px;
        border-radius: 2px;
        position: relative;
        cursor: pointer;
    }

    .toggleBtn span{
        position: absolute;
        width: 80%;
        height: 2px;
        background: #fff;
        top: 50%;
        transform: translate(-50%,-50%);
        transition: 0.5s;
    }

    .toggleBtn span:nth-child(1){
        top: 30%;
    }

    .toggleBtn span:nth-child(3){
        top: 70%;
    }

    .toggleBtn.active span:nth-child(1){
        top: 50%;
        transform: translate(-50%,-50%) rotate(45deg);
    }

    .toggleBtn.active span:nth-child(3){
        top: 50%;
        transform: translate(-50%,-50%) rotate(-45deg);
    }

    .toggleBtn.active span:nth-child(2){
        opacity: 0;
    }

    .linksContainer{
        flex-direction: column;
        position: absolute;
        width: 100%;
        top: 0px;
        left: 0;
        gap: 0;
        pointer-events: none;
        opacity: 0;
        transition: 0.5s;
    }

    .linksContainer.active{
        opacity: 1;
        pointer-events: all;
    }

    .links{
        display: block;
        width: 100%;
        padding: 20px 10vw;
        background: #1a1a1a;
    }

    .links:hover{
        opacity: 1;
        background: #343d46;
    }

    .hereHeadline{
        font-size: 3rem;
    }

    .contactDetails{
        grid-template-columns: repeat(1,1fr);
    }

    .contactContainer .socialLinksContainer{
        margin-top: 30px;
        margin-left: 30px;
    }
}

@media screen and (max-width:500px) {

    .hereHeadline{
        font-size: 2rem;
    }

    .heroSecondaryLine{
        font-size: 0.9rem;
        width: 80%;
        display: block;
        margin: 25px auto 50px;
        line-height: 2rem;
    }

    .nameEmailInput{
        flex-direction: column;
    }

    input:nth-child(1){
        margin-bottom: 0;
    }

    .sectionTitle{
        font-size: 1.8rem;
    }

    .sectionTitle::before{
        font-size: 3rem;
    }
    .sectionInfo{
        scale: .7;
    }
}

