@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');


*,
::after,
::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

body {
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    background: #1c1d25;
}

a {
    display: inline-block;
}

/* scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px #111;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: #333;
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: #0c6454;
    -webkit-box-shadow: inset 0 0 6px #111;
}

/* hero section styling */

nav {
    background: #1c1d25;
    height: 4rem;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #000;
    padding: 0 0.5rem;
    font-size: 2.4rem;
    background: #fff;
    user-select: none;
}

.hero nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero nav ul a {
    margin: 0 1rem;
    color: #fff;
    font-size: 1.6rem;
    text-transform: uppercase;
    padding: 0.5rem 0.8rem;
    position: relative;
    z-index: 1;
}

.hero nav ul a::before {
    transform: scaleX(0);
    transform-origin: right;
    content: " ";
    position: absolute;
    inset: 0 0 0 0;
    background: #FF5151;
    z-index: -1;
    transition: transform 0.3s ease;
    border-bottom: 0.2rem solid #fff;
}

.hero nav ul a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* main section styling */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: calc(100vh - 4rem);
}

main>* {
    margin: 1rem 0;
}

main h1 {
    color: #12947d;
    font-size: 5rem;
}

main span {
    font-size: 2rem;
}

span .span2-span {
    text-decoration: underline;
    color: #f8afda;
}

.social-media a {
    font-size: 2.5rem;
    margin: 0 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 1rem;
    color: #fff;
}

.social-media a:nth-child(1):hover {
    color: #1da1f2;
}

.social-media a:nth-child(2):hover {
    color: #0274b3;
}

.social-media a:nth-child(3):hover {
    color: #888;
}

main .to-down {
    position: relative;
    top: 4rem;
    animation: up-down 0.4s ease-in-out infinite alternate;
    cursor: pointer;
}

main a img {
    width: 5rem;
}

@keyframes up-down {
    0% {
        transform: translateY(0.5rem);
    }

    100% {
        transform: translateY(-0.5rem);
    }
}

/* about me section styling */
.about-me {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.about-me h1 {
    font-size: 3.5rem;
}

.about-me a {
    color: #fff;
    background: #FF5151;
    padding: 1rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    border-radius: 1rem;
    /* border: 0.2rem solid #1c1d25; */
    transition: all 0.3s;
    box-shadow: 0.5rem 0rem 0 0, -0.5rem 0rem 0 0;
}

.about-me a:hover {
    box-shadow: 0.5rem 0.5rem 0 0, -0.5rem -0.5rem 0 0;

}

.about-me-detail {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.about-me-detail p {
    font-size: 2.5rem;
    font-weight: 100;
    width: 50rem;
    color: rgb(214, 214, 214);
}

.about-me-detail img {
    height: 18rem;
    border-radius: 50%;
}

/* project section styling */
.projects {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.projects h1 {
    font-size: 3.5rem;
}

.project-card-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.project-card {
    height: 30rem;
    width: 22rem;
    background: #313440;
    margin: 0 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 0.6rem;
    border-radius: 1rem;
    box-shadow: -10px -10px 0px 0px #ff5151, -20px -20px 0px 0px #12947d;
    transition: all 0.3s;
}

.project-card:hover {
    box-shadow: -5px -5px 0px 0px #ff5151, -10px -10px 0px 0px #12947d;
}

.project-card img {
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    border: 0.2rem solid #fff;
    object-fit: cover;
}

.project-card p {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.616);
    /* word-break: break-all; */
}

.project-card h2 {
    text-transform: capitalize;
    font-weight: 700;
}

.project-card a {
    text-align: center;
    text-transform: capitalize;
    font-size: 1.2rem;
    color: #000;
    background: #fff;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    box-shadow: 0.5rem 0 #ff5151, -0.5rem 0 #12947d;
    transition: all 0.3s;
}

.project-card a:hover {
    box-shadow: 0.5rem 0.5rem #ff5151, -0.5rem -0.5rem #12947d;
}

/* contact section styling */

.contact-me {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
}

.contact-form>* {
    margin: 0.8rem 0;
}

.contact-me h1 {
    font-size: 3.5rem;
}

.contact-me .contact-form {
    width: 35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-form input {
    width: 100%;
    height: 2rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
    height: 2.5rem;
    outline: none;
    border: none;
    font-size: 1.2rem;
    padding: 0 1rem;
    background: #313440;
    color: #fff;
    transition: all 0.3s;
}

.contact-form input[type="submit"] {
    background: #ff5151;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    text-transform: uppercase;
    height: 2.8rem;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 0.2rem;
    transition: all 0.3s;
    box-shadow: 0.4rem 0rem 0 0, -0.4rem 0rem 0 0;
    border-radius: 1rem;
}

.contact-form input[type="submit"]:hover {
    /* transform: scale(0.98); */
    box-shadow: 0.4rem 0.4rem 0 0, -0.4rem -0.4rem 0 0;
}

.contact-form textarea {
    outline: none;
    border: none;
    font-size: 1.2rem;
    color: #fff;
    width: 100%;
    padding: 1rem;
    background: #313440;
    resize: vertical;
    height: 12rem;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: #282a31;
}

/* media query */

@media only screen and (max-width: 425px) {}


















/* experimental styling */

.img-box {
    position: relative;
    z-index: 1;
}

.img-box::before {
    content: "Hello! It's Me";
    position: absolute;
    z-index: -1;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 0.4rem;
    transition: all 0.2s;
    transition-delay: 0.5s;
}

.img-box::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    background: #fff;
    height: 1rem;
    width: 1rem;
    transition: all 0.2s;
    z-index: -2;
    transition-delay: 0.5s;
}


.img-box:hover::before {
    top: -4rem;
}

.img-box:hover::after {
    top: -2.6rem;
}