:root {
    --bg: rgba(255, 255, 255);
    --bg-head: rgba(0, 0, 0, 0.7);
    --light: black;
    --reverse-light: white;
    --light-border: 2px solid rgb(0, 0, 0);
    --reverse-light-border: 2px solid rgb(255, 255, 255);
    --theme-btn: block;
    --theme-btn-reverse: none;
}

[data-theme="dark"] {
    --bg: rgba(0, 0, 0, 0.918);
    --bg-head: rgba(255, 255, 255, 0.432);
    --light: white;
    --reverse-light: black;
    --light-border: 2px solid rgb(255, 255, 255);
    --reverse-light-border: 2px solid rgb(0, 0, 0);
    --theme-btn: none;
    --theme-btn-reverse: block;
}

* {
    margin: 0;
    padding: 0;
    font-family: lato;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}

body {
    background-color: var(--bg);
}

h1,
h2,
h3 {
    color: var(--light);
}

p {
    text-align: justify;
    line-height: 1.5;
}


/* MENU BAR */

header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5rem;
    justify-content: center;
    background-color: var(--bg-head);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 2rem;
}

ul li a {
    position: relative;
    color: white;
    font-weight: 400;
}

ul li a::before {
    position: absolute;
    content: ' ';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(17, 236, 225), rgb(0, 255, 0));
}

ul li a:hover::before {
    width: 100%;
}

.lang-btn,
.visit-btn {
    background: linear-gradient(to right, rgb(17, 236, 225), rgb(0, 255, 0));
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    border-radius: 3rem;
    font-weight: bold;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.5s ease-in-out;
}

#theme-switch {
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    transition: 0.3s ease-in-out;
    background-color: var(--reverse-light);
}

#theme-switch:hover {
    transform: scale(1.1);
}

#theme-switch img {
    height: 35px;
}

#theme-switch img:last-child {
    display: var(--theme-btn-reverse);
}

#theme-switch img:first-child {
    display: var(--theme-btn);
}

.lang-btn:hover,
.visit-btn:hover {
    background: linear-gradient(to right, rgb(0, 255, 0), rgb(17, 236, 225));
    transform: scale(1.1);
}

.lang-btn i {
    font-size: 25px;
    display: flex;
    align-items: center;
}

.lang-btn i span {
    margin-left: 5px;
    font-size: 17px;
}

#menu-icon {
    font-size: 2rem;
    display: none;
}


/* MAIN */

section {
    min-height: 100vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}

.about img {
    width: 30vw;
    border-radius: 50%;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.location img {
    width: 30px;
}

.info-box {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.info-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.8;
}

.info-box h1 {
    font-size: 3rem;
    font-weight: 600;
}

.info-box span {
    background: linear-gradient(to right, rgb(17, 236, 225), rgb(0, 255, 0));
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}

.btn-group {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.btn {
    color: var(--light);
    border-radius: 3rem;
    padding: 0.5rem 1.5rem;
    border: var(--light-border);
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
    height: 43px;
}

.btn:hover {
    background-color: var(--light);
    color: var(--reverse-light);
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials a {
    color: var(--light);
}

.socials i {
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.socials i:hover {
    transform: scale(1.2);
}

.section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 3rem;
}

/* ABOUT */

.skill-section {
    background-color: var(--light);
    color: var(--light);
    border-radius: 3rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.skill-section h3 {
    margin-bottom: 10px;
}

.skill-img img {
    width: 20vw;
    border-radius: 3rem;
}

.skill-detail {
    margin-left: 3rem;
}

/* Education */

.edu-journey-container {
    display: flex;
    justify-content: center;
}

.education-division {
    margin-bottom: 3rem;
}

.edu-info {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}

.edu-card {
    display: grid;
    grid-template-columns: 1fr 5fr;
    border: var(--light-border);
    padding: 1rem 2rem;
    transition: 0.3s ease-in-out;
    color: var(--light);
}

.edu-card:hover {
    transform: scale(1.02);
    background-color: var(--light);
    color: var(--reverse-light);
}


.edu-card:first-child {
    border-top-left-radius: 3rem;
}

.edu-card:last-child {
    border-bottom-right-radius: 3rem;
}

.edu-card img {
    width: 150px;
}

.edu-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.edu-card h4 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.edu-card p {
    margin-top: 10px;
}

.edu-card div {
    padding: 1.5rem;
}

.school-link {
    display: flex;
    justify-content: end;
    margin: 0;
    padding: 0;
}



/* Experience */

.experience-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}



.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-card {
    border: var(--light-border);
    color: var(--light);
    border-radius: 3rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: left;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.grid-card:hover {
    transform: scale(1.02);
    background-color: var(--light);
    color: var(--reverse-light);
}

.grid-card i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.grid-card span {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, rgb(17, 236, 225), rgb(0, 255, 0));
    background-clip: text;
    color: transparent;
}

/* Projects */

.projects-division {
    margin-bottom: 5rem;
}

.projects-division h3:first-child,
.education-division h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card,
.coming-soon {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    border: var(--light-border);
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: var(--light);
}

.project-card:hover,
.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    background-color: var(--light);
    color: var(--reverse-light);
}

.coming-soon {
    background-color: var(--light);
    margin-top: 1.5rem;
}

.coming-soon:hover {
    transform: translateY(-10px) scale(1.02);
}

.project-card img {
    width: 30vw;
    border-radius: 1rem;
    border: var(--light-border);
}

.project-card:hover img {
    border: var(--reverse-light-border);
}

.project-card .btn {
    color: var(--light);
}

.project-card:hover .btn,
.project-card:hover .btn-group a {
    border: var(--reverse-light-border);
    color: var(--reverse-light);
}

.project-card:hover .btn:hover,
.project-card:hover .btn-group a:hover {
    border: var(--light-border);
    background-color: var(--reverse-light);
    color: var(--light);
}

.project-card h3,
.coming-soon h3 {
    font-size: 3rem;
    font-weight: 600;
    background: linear-gradient(to right, rgb(17, 236, 225), rgb(0, 255, 0));
    background-clip: text;
    color: transparent;

}


/* Contact */

.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 50px;
}

.contact-card {
    border: var(--light-border);
    border-radius: 15px;
    padding: 1rem 4rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: var(--light);
}

.contact-card i {
    font-size: 2rem;
    padding: 10px;
    margin-bottom: 10px;
}

.contact-card a:hover {
    text-decoration: none;
}

.contact-card-upper,
.contact-card-lower {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-moreinfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.contact-num {
    transition: 0.3s ease-in-out;
}

.contact-card:hover .contact-num {
    color: var(--reverse-light);
}

.contact-moreinfo p {
    margin-bottom: 50px;
    color: var(--light);
}



/* FOOTER */

footer {
    bottom: 0;
    left: 0;
    height: 10rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

footer ul {
    display: flex;
    gap: 3rem;
    align-items: center;
}

footer ul li a {
    color: var(--light);
    font-weight: 600;
}

.copyright {
    font-size: 300;
    margin-top: 2rem;
    color: var(--light);
}

.link-gradient {
    background: linear-gradient(to right, rgb(17, 236, 225), rgb(0, 255, 0));
    background-clip: text;
    color: transparent;
}

/* All translatable elements */
[data-lang] {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-changing {
    opacity: 0;
    transform: translateY(2px);
}

/* SCROLLBAR */

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgb(17, 236, 225), rgb(0, 255, 0));
}

/* Responsiveness */

@media (max-width: 1622px) {
    .project-card img {
        width: 40vw;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1280px) {
    header {
        padding: 1rem 2rem;
        gap: 2rem;
    }

    .about .about-container {
        gap: 3rem;
    }

    .experience-info {
        flex-direction: column;
    }

    .input-box input {
        padding: 2rem 5rem;
        font-size: 2.5rem;
    }

    .input input::placeholder {
        font-size: 2.5rem;
    }

    .input-box i {
        font-size: 2.5rem;

    }

    .skill-img {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .skill-img img {
        width: 30vw;
    }

}

@media (max-width: 1080px) {
    header #menu-icon {
        display: block;
    }

    .nav-link {
        position: absolute;
        top: 100%;
        margin-top: 1rem;
        width: 100%;
        padding: 1rem;
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 3rem;
        display: none;
    }

    .nav-link li {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .active {
        display: block;
    }

    header {
        padding: 1rem 5rem;
    }

    header .logo {
        font-size: 1.5rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-section {
        flex-direction: column;
        padding: 3rem;
    }

    .skill-detail {
        margin-left: 0;
        margin-top: 3rem;
    }

    .edu-card {
        grid-template-columns: 2fr 4fr;
    }

    .edu-card img {}

}

@media (max-width: 880px) {

    .about-container {
        flex-direction: column;
    }

    .input-box input {
        padding: 1rem 2rem;
        font-size: 2rem;
    }

    .input-box input::placeholder {
        font-size: 1.5rem;
    }

    .input-box i {
        display: none;
    }

    .grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .skill-img {
        width: 90%;
    }

    .edu-card {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 600px) {


    .profile {
        width: 80vw;
    }

    .input-box input {
        padding: 0.5rem 3rem;
        width: 80%;
        font-size: 1.5rem;
    }

    .input-box input::placeholder {
        font-size: 1.5rem;
    }

    footer ul {
        gap: 1rem;
    }
}