@font-face {
    font-family: 'Nippo';
    src: url(Nippo-Variable.ttf);
}

:root {
    --text-color: #b6c2d9;
    --link-color: purple;
    --background-color: #272932;
    --neon-color: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* smooth scroll when link is click */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nippo', sans-serif;
    background-color: var(--background-color);
    min-height: 100vh;
    /* Avoid using 100vw because it includes the vertical scrollbar width and can cause
       an unwanted horizontal scrollbar. Use 100% instead. */
    min-width: 100%;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    height: 80px;
    align-items: center;
}

nav .left a {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

nav .right a {
    color: white;
    margin: 0 10px;
}

nav .right a:last-child {
    color: white;
    background-color: grey;
    padding: 5px 10px;
    border-radius: 5px;
}

nav .right a span {
    margin-right: 5px;
}

/*SECTION 1: PROFILE*/
.profile-section {
    display: flex;
    padding: 0 50px;
    margin: 50px 0;
    align-items: center;
    gap: 40px;
    min-height: 80vh;
    margin-top: -50px;
    /* border: red 1px solid; */


}

.profile-section .text {
    flex: 5;
    text-align: center;
    color: #b6c2d9;
    margin-left: 200px;
    /* border: red 1px solid; */

}

.profile-section .text h2 {
    font-size: 75px;
}

.profile-section .text p {
    color: white;
    font-size: 20px;
    font-weight: 500;
}

.profile-section .text .links {
    display: flex;
    margin-top: 20px;
    justify-content: center;
    gap: 10px;
    /* border: red 1px solid; */

}


.profile-section .text .links .fa-brands {
    font-size: 25px;
}

.profile-section .text .links a {
    font-size: 20px;
    color: var(--neon-color);
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid var(--neon-color);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: .1s;
}

.profile-section .text .links a:hover {
    color: var(--text-color);
    border: 2px solid var(--text-color);

}

.profile-section .profile-pic {
    flex: 5;
    display: flex;
    justify-content: center;
    /* border: red 1px solid; */
}

.profile-section .profile-pic img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center -25px;
}


/* TIMELINE */
.timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 100px;
    gap: 150px;
}

.timeline p,
.timeline h3 {
    color: white;
}

.timeline h2 {
    display: flex;
    align-items: center;
    gap: 10px; /* space between icon and text */
    font-size: 35px;
    color: white;
}

.timeline h3 {
    margin-bottom: 10px;
    font-size: 26px;
    color: var(--text-color)
}

.timeline #level {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.timeline-col-card {
    border-left: white 3px solid;
    padding-left: 40px;
    margin-top: 30px;
}


.timeline-card {
    position: relative;
    border-radius: 15px;
    padding: 30px 20px 30px 20px;
    margin-bottom: 30px;

    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(2,6,23,0.6);
}

.timeline-card:before {
    position: absolute;
    content: '';
    width: 25px;
    height: 25px;
    background-color: white;
    border-radius: 50%;
    left: -55px;
    top: 90px;
}



















@media (max-width: 1500px) {
    .education-section .text {
        margin-left: 0;
        /* Remove the left margin that was set for big screen */
    }
}

@media (max-width: 1380px) {
    .education-section .cards {
        padding: 0 10px;
        margin: 50px 50px 0 50px;
        /* Remove side margins */

    }
}

@media (max-width: 1200px) {
    .education-section .cards {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cards per row */
        margin: 50px 50px 0 50px;
        /* Adjust side margins */
        padding: 0;
        /* Remove horizontal padding */
    }
}



@media (max-width: 1102px) {
    .fa-solid.fa-code {
        display: none;
    }

    .profile-section .profile-pic img {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 912px) {
    .profile-section .profile-pic img {
        width: 320px;
        height: 320px;
    }


}

@media (max-width: 850px) {

    /* Section 1: profile */
    .profile-section .text h2 {
        font-size: 45px;
    }
}


@media (max-width: 740px) {
    .profile-section {
        flex-direction: column-reverse;
    }

    .profile-section .text {
        margin-left: 0;
        margin-top: -130px;
        /* Remove the left margin that was set for big screen */
    }

    .profile-section .profile-pic img {
        width: 300px;
        height: 300px;
        margin-top: 80px;
    }

    /*PROJECTS SECTION*/
    .education-section .cards {
        grid-template-columns: 1fr;
        /* 1 card per row */
        margin: 50px 100px 0 100px;
        /* Reduce side margins for small screens */
        padding: 0;
        /* Remove horizontal padding */
    }
}

@media (max-width: 600px) {

    /*NAV BAR*/
    nav {
        padding: 0 20px;
    }

    nav .right a {
        font-size: 20px;
    }

    nav .right a:last-child {
        color: var(--text-color);
        background-color: var(--background-color);
        padding: 0;
    }

    nav .right a span {
        display: none;
    }

    /*PROFILE SECTION*/
    .profile-section {
        padding: 0 20px;
    }

    .profile-section .text h2 {
        font-size: 30px;
    }

    /* SKILLS SECTION */
    .skills-section {
        padding: 0 20px;
    }

    .skills-section .cells .cell span {
        font-size: 16px;
    }

    /* CONTACT SECTION */
    .contacts-section {
        padding: 0 20px;
    }
}