@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sora:wght@100..800&display=swap');

*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body.dark {
    --bg-color1: #131313;
    --bg-color2: #00000075;
    --color1: #FFF;
    --border-color: hsl(0 0% 20%);
    --drop-shadow1: rgba(17, 32, 114, 0.6);
}

body:not(.dark) {
    --bg-color1: #ECF3F9;
    --bg-color2: #fff;
    --color1: #303030;
    --border-color: hsl(0 0% 80%);
    --drop-shadow1: rgba(17, 32, 114, 0.2);
}

a {
    text-decoration: none;
    outline: none;
}

li {
    list-style: none;
}

h1 {
    font-size: 2rem;
    color: var(--color1);
    font-weight: 500;
    text-transform: uppercase;
}

h2 {
    font-size: 2.5rem;
    margin-top: 2rem;
    text-transform: capitalize;
    color: var(--color1);
    font-weight: 500;
}

h3 {
    text-align: center;
    text-transform: capitalize;
    color: var(--color1);
    font-size: 2.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

h3>span {
    color: #4119f4;
}

h3~p {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

h4 {
    font-size: 1.25rem;
    color: var(--color1);
    font-weight: 600;
}

h5 {
    color: #FFF;
    font-size: 1.025rem;
    font-weight: 800;
}

p {
    color: var(--color1);
    font-family: 'Poppins', sans-serif;
}

img {
    width: 100%;
    object-fit: cover;
    vertical-align: middle;
}

body {
    font-family: 'Sora', sans-serif;
    background-color: var(--bg-color1);
}

.portfolio-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.portfolio-row {
    display: flex;
    flex-wrap: wrap;
}

.portfolio-row.header-wrap {
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 60px;
    color: var(--color1);
}

.theme-toggle {
    border: none;
    background-color: transparent;
}

.theme-toggle .bx-moon,
.theme-toggle .bx-sun {
    cursor: pointer;
    color: #9f9e99;
    padding: 10px 10px;
    display: block;
    font-size: 1.25rem;
    transition: all 0.4s;
}

body:not(.dark) .theme-toggle .bx-sun {
    display: none;
}

body.dark .theme-toggle .bx-moon {
    display: none;
}

header {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    position: fixed;
    padding: 2rem 0;
    transition: .8s;
    background-color: var(--bg-color1);
    display: none;
}

#about {
    padding: 2rem 0;
    background-color: var(--bg-color1);
}

.about-content {
    align-items: center;
}

.about-image {
    padding: 30px;
    background-color: var(--bg-color2);
    border-radius: 20px;
    text-align: center;
    width: 100%;
    cursor: pointer;
}

.about-image img {
    border-radius: 999px;
}

.social-item {
    margin-top: 20px;
    display: inline-block;
}

.social-item:not(:last-child) {
    margin-right: .5rem;
}

.social-item a {
    width: 50px;
    height: 50px;
    color: var(--color1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: 10px;
}

.about-intro {
    margin: 3rem 0;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    filter: drop-shadow(30px 30px 80px var(--drop-shadow1));
}

.about-text {
    padding: 30px;
    background-color: var(--bg-color2);
    color: var(--color1);
    border-radius: 20px;
}

.text-notification {
    color: var(--color1);
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.text-notification i {
    color: #4119f4;
    margin-right: 10px;
}

.btn-submit {
    background-color: #4119f4;
    color: #FFF;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    border-radius: 15px;
    padding: 12px 24px;
}

.text-wrap {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    cursor: pointer;
    font-weight: 800;
}

.main-title {
    -webkit-text-stroke: 1px var(--color1);
    -webkit-text-fill-color: transparent;
}

.main-title,
.hover-title {
    transition: .5s cubic-bezier(0.51, 0.57, 0.17, 1);
    font-family: "Poppins", sans-serif;
}

.hover-title {
    color: var(--color1);
    position: absolute;
    transform: translate3d(0, 100%, 0);
}

.text-wrap:hover .main-title {
    transform: translate3d(0, -100%, 0);
    transition-delay: 0.1s;
}

.text-wrap:hover .hover-title {
    transform: translate3d(0, 0, 0);
}

.main-text-wrapper {
    padding: 0 20px;
    background-color: var(--bg-color2);
    border-radius: 20px;
}

.text-wrapper {
    overflow: hidden;
}

.about-me {
    padding: 2.5rem;
    width: max-content;
    flex-wrap: nowrap;
    display: flex;
    gap: 1rem;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {

    100% {
        transform: translate(calc(-50% - 0.5rem));
    }
}

.about-me h4 {
    margin: 0 1rem;
}

.about-me h4 span {
    font-size: 2rem;
}

#services {
    padding: 60px 15px;
    background-color: var(--bg-color1);
}

#services .portfolio-container {
    background-color: var(--bg-color2);
    padding: 4rem 0;
    border-radius: 20px;
}

.service-row {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 2rem;
}

.service-card {
    cursor: pointer;
    padding: 40px 35px;
    transition: .4s;
    border: 1px solid var(--border-color);
}

.service-card .icon {
    color: var(--color1);
    font-size: 4rem;
    transition: .4s;
}

.service-content h6 {
    color: var(--color1);
    transition: .4s;
    margin: 1rem 0;
    font-size: 1.45rem;
}

.service-content p {
    transition: .4s;
    color: var(--color1);
}

.service-card:hover {
    background-color: #4119f4;
}

.service-card:hover .icon,
.service-card:hover h6,
.service-card:hover p {
    color: #FFF;
}

#resume {
    padding: 60px 0;
    background-color: var(--bg-color1);
}

#resume .portfolio-container>span {
    color: #4119f4;
    display: block;
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 600;
}

.resume-body {
    display: flex;
    border: 1px solid var(--border-color);
    margin: 3rem auto;
    padding: 1rem;
    border-radius: 5rem;
    justify-content: center;
}

input[type="radio"] {
    transition: .4s;
    display: none;
}

.resume-body>label {
    padding: 10px 20px;
    border-radius: 5px;
    color: var(--color1);
    cursor: pointer;
    border-radius: 5rem;
    transition: .4s;
}

.experience-tab,
.education-tab {
    position: absolute;
    display: none;
    margin: 3rem 0;
    width: 375px;
    padding: 15px;
    margin: 1rem 0;
    text-align: left;
}

input[type="radio"]:checked+label {
    background-color: #4119f4;
    color: #FFF;
}

#tab1:checked~#experience,
#tab2:checked~#education {
    display: grid;
    grid-template-rows: repeat(1, 1fr);
    margin: 4rem;
    gap: 3rem;
    animation: fadeIn 1s ease;
}

.institution,
.organization {
    color: #4119f4;
    font-weight: 400;
    font-size: 1rem;
}

.years {
    color: var(--color1);
}

.tab-content {
    position: relative;
    padding: 1rem 2.1rem;
}

.tab-content::after {
    position: absolute;
    content: "";
    height: 7px;
    width: 7px;
    left: 8px;
    top: 25px;
    transform: rotate(45deg);
    background-color: #e15747;
}

.tab-content::before {
    content: "";
    height: 70%;
    width: 3px;
    left: 10px;
    position: absolute;
    background: #e8e8e8;
}

#projects {
    padding: 60px 0;
    margin-top: 700px;
    background-color: var(--bg-color1);
}

#projects .portfolio-container {
    background-color: var(--bg-color2);
    padding: 4rem 2rem;
    border-radius: 20px;
}

.filter-wrap {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn {
    position: relative;
    font-size: 1rem;
    line-height: 40px;
    color: var(--color1);
    cursor: pointer;
    border: 0;
    background-color: var(--bg-color2);
    font-family: 'Poppins', sans-serif;
    margin-top: 1rem;
    transition: .4s;
}

.btn:not(:last-child) {
    margin-right: 2rem;
}

.btn::after {
    opacity: 0;
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 30px;
    height: 3px;
    transition: 0.5s;
    background: #4119f4;
}

.btn.active {
    color: #4119f4;
}

.btn.active::after {
    opacity: 1;
}

.btn:hover {
    color: #4119f4;
    background-color: transparent;
}

.portfolio-wrapper {
    display: flex;
    gap: 15px;
    flex-direction: column;
    margin-top: 30px;
}

.portfolio-wrapper .portfolio-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
}

.portfolio-item.show {
    animation: fadeIn 4.4 ease;
}

@keyframes fadeIn {

    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.portfolio-item.hide {
    display: none;
}

.portfolio-item-content {
    position: absolute;
    left: 25px;
    top: 25px;
    right: 25px;
    bottom: 25px;
    background-color: rgba(16, 16, 16, .5);
    transition: .5s;
    transform: scale(1.15);
    opacity: 0;
}

.product-title {
    width: 100%;
    position: absolute;
    bottom: -45px;
    padding: 15px 30px;
    opacity: 0;
    transition: .5s;
    text-align: center;
    color: var(--bg-color2);
}

.product-title h4,
.product-title p {
    color: #FFF;
}

.portfolio-item:hover .portfolio-item-content {
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:hover .product-title {
    bottom: 30%;
    opacity: 1;
}

#contact {
    padding: 60px 0;
    background-color: #131313;
}

#contact .portfolio-container {
    max-width: 1100px;
}

#contact h3,
#contact p {
    color: #FFF;
}

.subtitle {
    position: relative;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
    text-align: left;
    padding-left: 85px;
    color: #FFF;
}

.subtitle::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #FFF;
}

#contact ul {
    margin-top: 2rem;
}

#contact .social-item a {
    color: #FFF;
}

#contact form {
    margin-top: 2rem;
}

#contact .social-item {
    margin-top: 0;
}

.contact-info {
    width: 100%;
    padding-top: 45px;
    order: 2;
}

.contact-item {
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.contact-item span {
    color: #FFF;
}

.footer-contact {
    width: 100%;
    padding-top: 15px;
}

.input-wrapper,
.input-subject,
.form-submit {
    width: 100%;
    padding: 10px 0;
}

.form-submit .btn-submit {
    border: none;
    border-radius: 0;
    font-family: 'Poppins', sans-serif;
}

.input-control,
.contact-msg {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: transparent;
    border: 1px solid #FFF;
    color: #FFF;
    line-height: 45px;
    outline: none;
    padding: 0 30px;
    width: 100%;
    font-weight: 500;
}

.contact-msg {
    height: 120px;
    line-height: 1.2;
    padding: 20px 30px;
    resize: none;
}

.footer-contact label {
    color: #FFF;
    margin-bottom: .5rem;
    display: inline-block;
}

#contact label span {
    color: #e15747;
}

footer {
    background-color: #131313;
    padding: 20px 0;
}

footer p {
    color: #FFF;
}

.portfolio-row.footer-wrap {
    flex-direction: column;
    align-items: center;
}

header.footer-sticky {
    display: block;
    background-color: var(--color1);
    padding: 0;
    border-top: 1px solid var(--color1);
    animation: fadeIn 1s ease;
}

header .theme-toggle {
    display: none;
}

.navbar-toggle {
    border: none;
    background-color: transparent;
}

.navbar-toggle i {
    font-size: 1.25rem;
    line-height: 30px;
    cursor: pointer;
    color: var(--bg-color1);
}

header.footer-sticky .logo {
    font-size: 1rem;
    font-weight: 300;
    color: var(--bg-color1);
}

.portfolio-navbar {
    display: none;
}

.portfolio-navbar.show {
    position: absolute;
    background-color: var(--color1);
    padding: 15px;
    text-align: center;
    transform: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.navbar-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-navbar ul li {
    display: inline-block;
}

.navbar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

.portfolio-navbar ul li a {
    color: var(--bg-color1);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 50px;
}

.portfolio-navbar ul li:not(:last-child) {
    padding: 0 10px;
}

@media (min-width:768px) {

    h1 {
        font-size: 2.5rem;
        margin: 1.25rem 0;
    }

    h3 {
        font-size: 2.125rem;
    }

    nav {
        display: none;
    }

    .navbar-widget {
        display: none;
    }

    .navbar-toggle {
        display: none;
    }

    header {
        display: block;
        position: unset;
    }

    .portfolio-navbar {
        display: block;
    }

    .portfolio-navbar ul li {
        display: inline-block;
    }

    .portfolio-navbar ul li a {
        color: var(--color1);
        line-height: 65px;
    }

    .portfolio-navbar ul li a i {
        display: none;
    }

    header .theme-toggle {
        display: block;
    }

    header.footer-sticky .logo {
        font-size: 1.25rem;
        font-weight: 800;
        color: #343434;
    }

    .about-content {
        flex-wrap: nowrap;
        gap: 2rem;
    }

    .about-image {
        width: 35%;
    }

    .about-intro {
        width: 65%;
        text-align: unset;
    }

    #services {
        margin: 5rem 30px;
    }

    .service-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .resume-body>label {
        padding: 10px 45px;
    }

    .education-tab,
    .experience-tab {
        width: 1000px;
    }

    #tab1:checked~#experience,
    #tab2:checked~#education {
        grid-template-rows: unset;
        grid-template-columns: repeat(2, 1fr);
    }

    #projects {
        margin-top: 350px;
    }

    .filter-wrap {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .portfolio-wrapper {
        flex-direction: row;
    }

    .contact-info {
        order: 1;
        width: 40%;
        padding-top: 15px;
    }

    .footer-contact {
        order: 2;
        width: 55%;
        padding-left: 100px;
    }

    .input-wrapper {
        padding: 0 10px;
        width: 50%;
        margin-bottom: 10px;
    }

    .input-subject,
    .form-submit {
        padding: 10px;
    }

    header.header-sticky {
        left: 0;
        right: 0;
        top: 0;
        bottom: unset;
        position: fixed;
        padding: .65rem 0;
        z-index: 2000;
        transition: .4s;
        background-color: rgba(248, 249, 250, 0.7);
    }

    .header-sticky .portfolio-navbar ul li a {
        color: #343434;
    }

    .header-sticky .theme-toggle .bx-moon,
    .header-sticky .theme-toggle .bx-sun {
        color: #343434;
    }
}

/* ======= Message following form submission: error or success ======== */

.loader {
    padding: 10px;
    margin: 10px;
    background-color: #ECF3F9;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.loader.show {
    display: block;
}

.loader i {
    color: #000;
    animation: rotateme .4s linear infinite;
}

/* ---- loader animation ----- */

@keyframes rotateme {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-message {
    background-color: #ECF3F9;
    margin: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.show {
    display: block;
}

.success-msg {
    color: green;
    line-height: 3;
}

.error-msg {
    color: red;
    line-height: 3;
}