:root {
    --textColor: #8f71ff;
    --backgroundColor: orange;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: monospace;
}

img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/*  Header file */
#header {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-size: 20px;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

nav {
    position: fixed;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100vw;
    height: 10%;
    background: rgba(227, 220, 220, 0.2);
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wrapper-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    justify-content: space-evenly;
    align-items: center;
}

.wrapper-nav h2,
nav ul,
.lang {
    width: 250px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-right: 30px;
    list-style: none;

}

nav ul li a {
    color: black;
    text-decoration: none;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: var(--textColor);
    display: block;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

#f {
    color: var(--textColor);
    font-style: italic;
}

.lang {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 30px;
    border: 1px solid var(--textColor);
    border-radius: 20px;
}

.headerText {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 90%;
}

.text-content {
    color: transparent;
    background-image: radial-gradient(circle farthest-corner at center center, rgba(255, 94, 247, 1) 17.8%, var(--textColor) 100.2%);
    background-clip: text;
    -webkit-background-clip: text;
    display: none;
}

.text-content.active {
    display: inline-block;
}

.headerText h2 {
    font-style: italic;
}

#t1,
#t2,
#t3 {
    display: inline-block;
    animation: 2s scale infinite forwards;
}

#t2 {
    animation-delay: 0.5s;
}

#t3 {
    animation-delay: 1s;
}

@keyframes scale {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        color: var(--textColor);
        transform: translateY(-10px);
    }
}

.read-more {
    display: flex;
    width: 100vw;
    justify-content: center;
    position: absolute;
    bottom: 50px;
    z-index: 10px;
}

.read-more a {
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
    background: white;
    width: 200px;
    height: 60px;
    border-radius: 30px;
    box-shadow: var(--textColor) 0px 3px 12px;
}

.read-more a span {
    position: relative;
    display: block;
    background: var(--textColor);
    width: 50px;
    height: 50px;
    border-radius: 50px;
}

#caret-down {
    position: absolute;
    display: block;
    background: white;
    width: 7px;
    height: 42px;
    left: 0;
    right: 0;
    border-radius: 10px;
    margin: auto;
    transform: translateY(-5px);
    animation: caret 1s forwards infinite
}

#caret-down::before,
#caret-down::after {
    content: '';
    display: block;
    background: white;
    width: 25px;
    height: 7px;
    border-radius: 10px;
}

#caret-down::before {
    transform: rotate(40deg) translate(9px, 35px);
}

#caret-down::after {
    transform: rotate(-40deg) translate(-17px, 18px);
}

@keyframes caret {

    0%,
    100% {
        transform: translateY(-2px)
    }

    50% {
        transform: translateY(-10px);
    }
}

/* About section */
#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: relative;
    background-image: radial-gradient(circle, rgb(203 213 225) 2px, #fff 2px);
    background-size: 2.5rem 2.5rem;
    background-position: center center;
}

.wrapper-about {
    display: flex;
    width: 100vw;
    height: 80vh;
    align-items: center;
    justify-content: center;
}

.about-us {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.about-us div {
    text-align: center;
}

.about-us div p {
    font-size: 15px;
    font-style: italic;
    border-bottom: 1px solid black;
    margin-bottom: 10px;
}

#profile {
    margin-right: 20px;
    width: 200px;
    height: 200px;
    border-right: 2px solid var(--textColor);
    border-radius: 30px;
    object-fit: cover;
}

#social-media a {
    text-decoration: none;
    color: var(--textColor);
}

i {
    margin-top: 50px;
}

/* Contact section */
#contact {
    display: flex;
    background-image: url(images/contact.jpg);
    background-size: cover;
    width: 100vw;
    height: 100vh;
}

.leftSide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
    height: 100%;
}

.rightSide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    height: 100%;
}

form {
    background: white;
    width: 80%;
    height: 60%;
    border-radius: 50px;
}