body {
    scroll-behavior: smooth;
    background-color: #041c2c;
    background-position: center;
    font-family: 'Tajawal', sans-serif;
    padding-top: 10%;
    color: #00ffff;
    margin-left: 20%;
    animation: slide 0.5s forwards;
    animation-iteration-count: 1;
}

@keyframes slide {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background-color: #fff;
}

::-webkit-scrollbar-thumb {
    background-color: #00ffff;
    border-radius: 10px;
}

nav {
    background-color: #041c2c;
    color: #fff;
    box-shadow: 0 0 9px black;
}

.navbar-brand::after {
    display: none;
}

nav a {
    z-index: 1;
}

.navbar-brand a {
    font-size: 20px;
}

nav ul li a:after {
    content: "";
    background-color: #00ffff;
    position: absolute;
    height: 1.5px;
    width: 3%;
    bottom: 0.6em;
    transform: translateX(-120%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.10ms ease-in-out;
}
.download-btn{
    background-color: #043d63;
    color: gainsboro;
    border: 0;
    padding: 8px 10px;
   
}

nav ul li  a:hover::after {
    transform: scaleX(2);
    transform-origin: right;
    transform: translateX(-125%);
}

#btn {
    border: 3px solid rgb(43, 28, 139);
    background-color: transparent;
}

span {
    color: #00ffff;
}

.title {
    font-size: 30px;
}

/* Intro */
#intro {
    padding: 80px 10px;
}

#intro h1 {
    color: transparent;
    -webkit-text-stroke: 1px #00ffff;
    font-size: 55px;
    font-family: 'Alkatra', cursive;
}

.desc {
    color: gray;
    font-size: 20px;
    font-weight: 600;
}

.mark-link {
    text-decoration: none;
    color: #00ffff;
}

#col {
    width: 70%;
}

#row {
    margin: 0 auto;
    width: 50vw;
}

.name {
    font-size: 40px;
    font-weight: 600;
    color: #05121a;
}

.typing {
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    font-size: 20px;
    height: 3rem;
    animation: caret 0.5s step-end infinite;
}

@keyframes caret {
    50% {
        border-color: transparent;
    }
}

.name-span {
    color: #043d63;
    -webkit-text-stroke: none;
    font-family: sans-serif;
    display: block;
    font-size: 30px;
    font-weight: 600;
}

/* About page */
#git {
    margin-left: 4px;
}

.github a {
    text-decoration: none;
    color: #00ffff;
    background: #043d63;
    padding: 10px 20px;
    border-radius: 20px;
}

#about {
    padding: 100px 10px;
}

#about::before {
    content: '';
    background: #041c2c;
    animation: showRight 1s ease forwards;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

@keyframes showRight {
    100% {
        width: 0;
    }
}

.mt-5 {
    font-size: 20px;
}

.about {
    font-size: 15px;
}

.animation {
    content: "";
    background-color: silver;
    height: 3px;
    width: 10%;
    position: absolute;
}

.inner {
    content: "";
    background-color: #fff;
    height: 3px;
    width: 25px;
    border-radius: 50px;
    position: absolute;
    animation: anime 3s linear infinite;
}

/* Title */
.title {
    font-family: 'Fasthand', cursive;
    font-size: 18px;
}

@keyframes anime {
    0% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(50px);
    }

    100% {
        transform: translateX(0px);
    }
}

.img-fluid {
    width: 60%;
    box-shadow: 5px 5px 5px #00ffff;
    margin-left: 90%;
    cursor: pointer;
}

/* Project */
.card {
    width: 100%;
    background-color: #043d63;
    border-radius: 0;
    cursor: pointer;
    height: 52vh;
    transition: 0.5s;
}

.card:hover {
    transform: translateY(10px);
}

#card {
    margin-top: 20px;
}

.card-body h3 {
    color: gainsboro;
    font-family: Arial, Helvetica, sans-serif;
}

.card-body p {
    color: gray;
    font-size: 15px;
}

.file {
    color: #00ffff;
}

/* Skills */
#skills {
    padding: 40px 40px;
}

/* Contact */
#contact {
    padding: 40px 40px;
}

#contact p {
    font-size: 15px;
}

#contact span {
    display: block;
    color: gainsboro;
}

#form {
    box-shadow: none !important;
    border-radius: 0;
    border: 0;
    color: gainsboro;
    background-color: #05121a;
    font-size: 15px;
}

#form::placeholder {
    color: gainsboro;
}

#form:focus {
    box-shadow: none;
}

textarea {
    resize: both;
    background-color: #05121a;
    border: 0;
    width: 400px;
    outline: 0;
    color: gainsboro;
    font-size: 15px;
}

#contact button {
    background-color: #06b1b1;
    color: #05121a;
    border: 0;
    padding: 5px 34%;
    border-radius: 10px;
}

#skills p {
    margin-left: 10px;
}

/* Responsive */
@media screen and (max-width: 720px) {
    body {
        margin: auto;
    }

    textarea {
        width: 250px;
    }

    .animation {
        background-color: silver;
        height: 3px;
        width: 40%;
        position: absolute;
    }

    .col-md-4 img {
        margin-left: 0;
    }

    .card {
        margin-top: 20px;
    }

    .name {
        font-size: 30px;
        letter-spacing: 4px;
    }

    .hub {
        margin-left: 90%;
        transform: translateY(-30px);
        color: #00ffff;
    }

    #intro {
        margin: auto;
    }

    #intro h1 {
        font-size: 30px;
    }

    .name-span {
        font-size: 20px;
    }

    #col p {
        font-size: 15px;
    }

    #col h1 {
        font-size: 35px;
    }

    #skills {
        margin-left: -10%;
    }

    #skills p {
        font-size: 12px;
        margin-left: 8px;
    }

    .typing {
        width: 300px;
        display: flex;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    .typing {
        font-size: 1.5rem;
        height: 2.5rem;
    }

    .name {
        font-size: 28px;
    }
}

@media screen and (max-width: 576px) {
    .typing {
        font-size: 1.2rem;
        height: 2rem;
    }

    .name {
        font-size: 25px;
    }
}

@media screen and (max-width: 320px) {
    .typing {
        font-size: 1rem;
        height: 1.8rem;
    }

    .name {
        font-size: 22px;
    }
}
