@import url('https://fonts.googleapis.com/css2?family=Arizonia&family=Babylonica&family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Fira+Sans: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=Geom:ital,wght@0,300..900;1,300..900&family=Island+Moments&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=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --body-color: #FAFAFA;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --btn-color: #efefef;

    --text-color-second: #444444;
    --text-color-third: #055160;
    --text-color-fourth: #b4b5ba;
    --text-color-fifth: #FFFFFF;

    --first-color: #6E57E0;
    --first-color-hover: #285BD4;

    --second-color: #00C9FF;
    --third-color: #C0A631;
    --first-shadow-color: #0000001a;

    --fourth-color: #004C4C;
    --fifth-color: #428bca;
    --sixth-color: #F8F9FA;
    --seventh-color: #009999;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bricolage Grotesque', 'Geom', 'Rubik', 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
    border-radius: 25px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 30px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.btn {
    font-weight: 500;
    padding: 12px 20px;
    background: var(--btn-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}

.btn>i {
    margin-left: 10px;
}

.btn:hover {
    background: var(--second-color);
    color: var(--color-white);
}

i {
    font-size: 16px;
}

body {
    background: var(--body-color);
}

.container {
    width: 100%;
    position: relative;
}

nav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    width: 52px;
    height: auto;
}

.nav-menu,
.nav_menu_list {
    display: flex;
}

.nav-menu .nav_list {
    list-style: none;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color-second);
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}

.nav-menu-btn {
    display: none;
}

.nav-menu-btn i {
    font-size: 28px;
    cursor: pointer;
}

.active-link {
    position: relative;
    color: var(--seventh-color);
    transition: color .3s;
}

.active-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--seventh-color);
    border-radius: 50%;
}

.wrapper {
    padding-inline: 10vw;
}

.featured-box {
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

.featured-text {
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}

.featured-text-card span {
    background: var(--color-black);
    color: var(--color-white);
    padding: 3px 8px;
    font-family: 'Island Moments', 'Babylonica', sans-serif;
    font-size: 18px;
    border-radius: 5px;
}

.featured-name {
    font-size: 40px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}

.typedText {
    text-transform: capitalize;
    color: var(--seventh-color);
}

.featured-text-info {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}

.featured-text-btn {
    display: flex;
    gap: 20px;
}

.featured-text-btn .blue-btn {
    background: var(--color-black);
    color: var(--color-white);

    position: relative;
    overflow: hidden;
    display: inline-block;
}

.featured-text-btn .blue-btn::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -120%;
    width: 60%;
    height: 160%;

    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.5) 50%,
            transparent 100%);

    transition: left 0.5s ease;
    pointer-events: none;
}

.featured-text-btn .blue-btn:hover {
    background: var(--second-color);
}

.featured-text-btn .blue-btn:hover::before {
    left: 140%;
}

.social_icons {
    display: flex;
    margin-top: 5em;
    gap: 30px;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px var(--first-shadow-color);
    cursor: pointer;

    transition: transform 0.3s ease;
}

.icon a i {
    color: var(--color-black);
    transition: color 0.3s ease;
}

.icon:hover {
    transform: translateY(-5px);
}

.icon:hover a i {
    color: var(--seventh-color);
}


.featured-image {
    display: flex;
    justify-content: flex-end;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}

.image {
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}

.image img {
    width: 380px;
    height: 380px;
    object-fit: fill;
}

@keyframes imgFloat {
    50% {
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}

.scroll-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    gap: 5px;
    text-decoration: none;
    color: var(--text-color-second);
    background: var(--color-white);
    border-radius: 30px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}

.scroll-btn i {
    font-size: 20px;
}

.section {
    padding-block: 5em;
}

.row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.col {
    display: flex;
    width: 50%;
}

.top-header {
    text-align: center;
    margin-bottom: 5em;
}

.top-header h1 {
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 10px;
}

.top-header span {
    color: var(--text-color-second);
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

.about-info {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
}

.about-info p {
    text-align: center;
    font-size: 16px;
    color: var(--text-color-second);
    margin-bottom: 10px;
}

.about-btn button {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--seventh-color);
    color: var(--color-white);
    border-radius: 30px;
}

.skills-box {
    margin: 10px;
}

.skills-header {
    margin-bottom: 30px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.skills-list span {
    font-size: 14px;
    background: var(--seventh-color);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}

.project-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.project-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 30%;
    height: 250px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}

.project-box>i {
    font-size: 50px;
    color: var(--seventh-color);
    margin-bottom: 25px;
}

.project-box p {
    font-size: 15px;
    color: var(--color-white);
}

.project-box::after,
.contact-info::after {
    content: "";
    position: absolute;
    bottom: -100%;
    background: var(--second-color);
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 0;
}

.project-box>*,
.contact-info>* {
    position: relative;
    z-index: 1;
}

.project-box:hover::after {
    bottom: 0;
}

.contact-info:hover::after {
    bottom: 0;
}

.project-box:hover.project-box i,
.project-box:hover.project-box>h3,
.project-box:hover.project-box>p {
    color: var(--color-white);
    z-index: 2;
}

.contact-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    height: 315px;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}

.contact-info>h2 {
    color: var(--seventh-color);
    margin-bottom: 20px;
}

.contact-info>p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    margin-block: 5px;
}

.contact-info p>i {
    font-size: 18px;
}

.contact-info p a {
    color: inherit !important;
    text-decoration: none !important;
}

@media (hover: hover) and (pointer: fine) {
    .contact-info p a:hover {
        text-decoration: underline !important;
    }
}

.contact-info::after {
    background: var(--second-color);
}

.contact-info:hover.contact-info>h2 {
    font-size: 24px;
    color: var(--color-white);
    z-index: 2;
}

.contact-info:hover.contact-info p {
    font-size: 16px;
    color: var(--color-white);
    z-index: 2;
}

.form-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-inputs {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 1px;
}

.g-field {
    position: relative;
    flex: 1;
}

.g-input {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid var(--seventh-color);
    border-radius: 8px;
    background: var(--body-color);
    color: var(--color-black);

    font-size: 16px;
    padding: 18px 14px 10px;
    outline: none;

    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input.g-input {
    height: 56px;
}

.g-field--textarea {
    margin-bottom: 1px;
}

.g-field--textarea .g-input {
    min-height: 180px;
    height: 250px;
    padding-top: 22px;
    resize: none;
}

.g-label {
    position: absolute;
    left: 12px;
    top: 18px;

    color: #777777;
    background: var(--body-color);
    padding: 0 4px;

    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.15s ease, color 0.15s ease, top 0.15s ease;
}

.g-input:hover {
    border-color: var(--second-color);
}

.g-field:focus-within .g-input {
    border-color: var(--second-color);
    box-shadow: 0 0 0 1px var(--second-color);
}

.g-field:focus-within .g-label,
.g-input:not(:placeholder-shown)+.g-label {
    top: -8px;
    transform: scale(0.85);
    color: var(--second-color);
}

.g-input:not(:placeholder-shown) {
    border-color: var(--second-color);
    box-shadow: 0 0 0 1px var(--second-color);
}

.form-button>.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--seventh-color);
    color: var(--color-white);

    position: relative;
    overflow: hidden;
}

.form-button>.btn::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -120%;
    width: 60%;
    height: 160%;

    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.5) 50%,
            transparent 100%);

    transition: left 0.55s ease;
    pointer-events: none;
}

.form-button>.btn:hover {
    background: var(--second-color);
}

.form-button>.btn:hover::before {
    left: 140%;
}

.form-button i {
    font-size: 18px;
    transform: rotate(-45deg);
}

.submit-message {
    font-size: 16px;
    background: var(--seventh-color);
    border-color: var(--seventh-color);
    color: var(--color-white);
    transition: background-color 0.2s ease;
}

.submit-message:hover {
    background: var(--fourth-color);
    border-color: var(--fourth-color);
}

body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-dialog {
    max-width: 480px;
    width: 90%;
}

.modal-content {
    background: var(--color-white);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.success-modal,
.error-modal,
.connection-modal {
    border-radius: 18px;
    border: none;
    padding: 36px 40px 36px;
    text-align: center;
}

.success-modal .modal-body,
.error-modal .modal-body,
.connection-modal .modal-body {
    padding: 0;
}

.success-icon,
.error-icon,
.connection-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 0px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon {
    color: #28a745;
}

.error-icon {
    color: #dc3545;
}

.connection-icon {
    color: #dc3545;
}

.success-title,
.error-title,
.connection-title {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10px;
}

.success-title {
    color: #28a745;
}

.error-title {
    color: #dc3545;
}

.connection-title {
    color: #dc3545;
}

.success-text,
.error-text,
.connection-text {
    color: #6c757d;
    margin-bottom: 28px;
    font-size: 14px;
}

.success-back,
.error-back,
.connection-back {
    background: transparent;
    border: none;
    cursor: pointer;

    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    color: var(--seventh-color);
}

.success-back:hover,
.error-back:hover,
.connection-back:hover {
    text-decoration: underline;
    color: var(--second-color);
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: var(--body-color);
    padding-block: 40px 60px;
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 34px;
    height: auto;
}

.middle-footer .footer-menu {
    display: flex;
}

.footer_menu_list {
    list-style: none;
}

.footer_menu_list a {
    text-decoration: none;
    color: var(--text-color-second);
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    margin-inline: 20px;
}

.footer-social-icons {
    display: flex;
    gap: 30px;
}

.footer-social-icons a i {
    color: var(--color-black);
    transition: 0.3s;
}

.footer-social-icons a:hover i {
    color: var(--seventh-color);
}

.bottom-footer {
    position: absolute;
    bottom: 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    color: var(--text-color-second);
    text-align: center;
}

body.dark-mode {
    --body-color: #272822;
    --color-white: #272d38;
    --color-black: #ffffff;
    --text-color-second: #cdd0da;
    --first-shadow-color: rgba(0, 0, 0, 0.5);
    --seventh-color: #00bfa5;
}

body.dark-mode .success-text,
body.dark-mode .error-text,
body.dark-mode .connection-text {
    color: #a0a0a0;
}

.nav-menu .mode-toggle {
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
}

.mode-toggle i {
    font-size: 22px;
    color: var(--text-color-second);
    transition: 0.3s;
}

.mode-toggle i:hover {
    color: var(--seventh-color);
}

.scrollup {
    position: fixed;
    right: 32px;
    bottom: -30%;
    z-index: 99;
    transition: 0.4s;
    text-decoration: none;

    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;
}

.scrollup_icon {
    font-size: 48px;
    color: var(--seventh-color);
    background-color: var(--body-color);
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 12px var(--first-shadow-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scrollup:hover .scrollup_icon {
    color: var(--second-color);
    box-shadow: 0 6px 16px var(--first-shadow-color);
    transform: translateY(-5px);
}

.show-scroll {
    bottom: 48px;
}

@media only screen and (max-width: 1024px) {
    .featured-text {
        padding: 0;
    }

    .featured-name {
        font-size: 26px;
    }

    .image,
    .image img {
        width: 320px;
        height: 320px;
    }

    .scrollup {
        right: 72px;
    }

    .scrollup_icon {
        font-size: 40px;
        padding: 4px;
    }
}

@media only screen and (max-width: 900px) {
    .nav-button {
        display: none;
    }

    .nav-menu.responsive {
        left: 0;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: 80vh;
        transition: .3s;
    }

    .nav_menu_list {
        flex-direction: column;
    }

    .nav-menu-btn {
        display: flex;
        padding: 0 10% 0 0;
        align-items: center;
        justify-content: center;
    }

    .nav-logo img {
        width: 48px;
        height: auto;
    }

    .featured-box {
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }

    .featured-text {
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }

    .social_icons {
        margin-top: 2em;
    }

    .featured-image {
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }

    .image,
    .image img {
        width: 180px;
        height: 180px;
    }

    .row {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }

    .col {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .about-info {
        width: 100%;
    }

    .project-container {
        justify-content: center;
    }

    .project-box {
        width: 80%;
    }

    .form-inputs {
        flex-direction: column;
    }

    .success-modal,
    .error-modal,
    .connection-modal {
        padding: 25px 20px 25px;
    }

    .success-icon,
    .error-icon,
    .connection-icon {
        width: 70px;
        height: 70px;
        font-size: 14px;
        margin-bottom: 0px;
    }

    .success-title,
    .error-title,
    .connection-title {
        font-size: 16px;
    }

    .scrollup {
        right: 64px;
    }

    .scrollup_icon {
        font-size: 40px;
        padding: 4px;
    }
}

@media only screen and (max-width: 540px) {
    .nav-logo img {
        width: 32px;
        height: auto;
    }

    .featured-name {
        font-size: 24px;
    }

    .featured-text-info {
        font-size: 14px;
    }

    .about-info p {
        font-size: 14px;
    }

    .project-box {
        width: 100%;
    }

    .form-inputs {
        flex-direction: column;
    }

    .input-field {
        width: 100%;
    }

    .scrollup {
        right: 56px;
    }

    .scrollup_icon {
        font-size: 28px;
        padding: 4px;
    }

}