@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --background-color: #ffe4e1;
    --second-background-color: #ffd1dc;
    --text-color: #4b3832;
    --main-color: #ffb6c1;
    --first-color: #c06868;
    --second-color: #922c2c;
    --third-color: #f78796;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: var(--background-color);
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
}

html::-webkit-scrollbar {
    width: 0.8rem;
}

html::-webkit-scrollbar-track {
    background: var(--main-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 9%;
    background: #eb8190;
    filter: drop-shadow(10px 10px 5px #922c2c);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    height: 10rem;
}

.logo {
    font-size: 3rem;
    color: var(--second-color);
    text-shadow:  0 0 10px var(--third-color), 0 0 20px 
    var(--first-color), 0 0 30px var(--third-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    text-shadow:  0 0 10px var(--third-color), 0 0 20px 
    var(--first-color), 0 0 30px var(--third-color);
    margin-left: 4rem;
    font-weight: 900;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

@media (max-width:995px) {
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 40%;
        border-left: 3px solid var(--main-color);
        border-bottom: 3px solid var(--main-color);
        border-bottom-left-radius: 2rem 3rem;
        padding: 1rem;
        background-color: var(--second-background-color);
        border-top: 0.1rem solid var(--second-color);
        display: none;
    }
    .navbar.active {
        display: block;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .navbar a:hover,
    .navbar a.active {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid var(--main-color);
    }
}

section {
    min-height: 100vh;
    padding-top: 15rem;
    margin: 0 auto;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: var(--background-color);
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home .home-content p {
    font-weight: 700;
}
span {
    color: var(--third-color);
    
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.home-image {
    border-radius: 50%;
    flex-shrink: 0;
}

.home-image img {
    position: relative;
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    max-width: 400px;
}

.home-image img:hover {
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px var(--main-color));
}

.home-content p {
    font-size: 2.5rem;
    font-weight: 500;
}

.social-icon a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: transparent;
    border: 0.2rem solid var(--third-color);
    font-size: 2rem;
    border-radius: 50%;
    color: var(--third-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-icon a:hover {
    color: white;
    transform: scale(1.3)translateY(-5px);
    background: var(--third-color);
    box-shadow: 0 0 25px var(--main-color);
}

.typing-text {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;

}

.typing-text span {
    position: relative;
}

.typing-text span::before {
    content: 'BSCS-ML Student';
    color: var(--third-color);
    animation: words 20s infinite;
}

.typing-text span::after {
    content: '';
    background: var(--background-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--background-color);
    right: 0;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words {
    0%, 20% {
        content: 'BSCS-ML Student';
    }
    21%, 40% {
        content: 'Digital Artist';
    }
    41%, 60% {
        content: 'Graphic Designer';
    }
    61%, 80% {
        content: 'Video Editor';
    }
    81%, 100% {
        content: 'Future ML-Engineer';
    }
}
@keyframes typing {
    10%, 15%,
    30%, 35%,
    50%, 55%,
    70%, 75%,
    90%, 95% {
        width: 0;
    }
    5%, 20%,
    25%, 40%,
    45%, 60%,
    65%, 80%, 85% {
        width: calc(100% + 8px);
    }
}

@media (max-width: 1000px) {
    .home {
        gap: 4rem;
    }
}

@media (max-width: 995px) {
    .home {
        flex-direction: column;
        margin: 5rem 4rem;
    }
    .home .home-content h3 {
        font-size: 2.5rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-image img {
        width: 70vw;
        margin-top: 2rem;
        max-width: none;
    }
}

.about {
    background: var(--second-background-color);
    text-align: center;
}

.about p {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.heading {
    font-size: 45px;
    font-weight: 600;
    margin: 1rem 1rem;
    margin-bottom: 1.5%;
}

.about-container {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.about-container p {
    font-size: 20px;
    font-weight: 600;
}

.about-box {
    background-color: var(--main-color);
    height: 200px;
    border-radius: 3rem;
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.about-box:hover {
    background: transparent;
    color: var(--text-color);
    transform: scale(1.01);
    border: 5px solid var(--main-color);
    box-shadow: 0 0 15px var(--first-color);
    cursor: pointer;
}

.about-box .about-information {
    display: flex;
    flex-direction: column;
    text-align: center;
    max-height: 200px;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.about h4{
    font-size: 3rem;
    font-weight: 900rem;
    margin-bottom: 1rem;
}

.about-information p {
    font-size: 2rem;
    font-weight: 500;
    max-height: 100px;
    margin: auto;
}

@media (max-width:991px) {
    section {
        padding: 10rem 3% 2rem;
    }
    .about {
        padding-bottom: 7rem;
    }
}

@media (max-width:895px) {
    .about h2 {
        margin-bottom: 3rem;
        font-size: 40px;
    }
    .about-container {
        grid-template-columns: repeat(1,1fr);
    }
    .about .about-information h4 {
        font-size: 20px;
        font-weight: 900;
    }
    .about .about-information p {
        font-size: 15px;
    }
}

.skills p {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
    margin-left: 5%;
    margin-right: 5%;
}
.skills {
    background: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.skills .info img {
    width: 150px;
}

.skills h2 {
    font-size: 45px;
}

.skills .container {
    background:var(--main-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    margin: auto;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
}

.skills .container .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.skills .container .bar {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 1rem;
    background: var(--background-color);
    box-shadow: 0 4px 10px var(--third-color);
    transition: 0.3s ease;
}

.skills .container .bar:hover {
    box-shadow: 0 4px 10px var(--third-color);
    transform: scale(0.9);
}

.skills .container .bar .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.skills .container .bar .info span {
    font-size: 2rem;
    font-weight: 500;
    margin-left: 0.5rem;
    color: var(--first-color);
}

@media screen and (max-width:600px) {
    .skills .container {
        margin: 0;
        padding: 0;
    }
    .skills .container .row {
        grid-template-columns: repeat(2, 1fr);
        margin: 1rem;
        padding: 2rem 0.rem 2rem 0.2rem;
        gap: 1rem;
    }
    .skills .container {
        margin-top: 5px;
        width: 100%;
    }
    .skills p {
        font-size: 20px;
    }
    .skills .info img {
        width: 100px;
    }
    .skills .container .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        width: 90%;
    }
}


.portfolio {
    background: var(--second-background-color);
    text-align: center;
    padding-bottom: 5rem;
}


.portfolio {
    background: var(--second-background-color);
    text-align: center;
    padding-bottom: 5rem;
}

.portfolio p {
    font-size: 3rem;
    font-weight: 500;
    max-height: 100px;
    margin-bottom: 2%;
}

.portfolio h2 {
    font-size: 45px;
    font-weight: 600;
    margin: 1rem 1rem;
}

.portfolio .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio .timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--second-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -2px;
}

.portfolio .container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%
    
}

.portfolio .container::after {
    content: '❤︎';
    position: absolute;
    width: 25px;
    height: 25px;
    line-height: 25px;
    right: -17px;
    background-color: var(--background-color);
    border: 4px solid var(--second-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    font-size: 1.89rem;
    text-align: center;
    font-weight: 600;
    color: var(--second-color);
}

.portfolio .left {
    left: 0;
}

.portfolio .right {
    left: 50%;
}

.portfolio .left::before {
    content: '';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--main-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--main-color);
}

.portfolio .right::before {
    content: '';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--main-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--main-color) transparent transparent;
}

.portfolio .right::after {
    left: -16px;
}

.portfolio .content {
    background: var(--main-color);
    position: relative;
    border-radius: 6px;
    font-size: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px var(--first-color);
}

.portfolio .content:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px var(--second-color);
}

.portfolio .content .tag {
    font-size: 1.5rem;
    padding-top: 1.5rem;
    padding-left: 1.5rem;
}

.portfolio .content .decs {
    margin-left: 1.5rem;
    padding-bottom: 1rem;
}

.portfolio .content .tag h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
}

.portfolio .content .decs p {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-color);
}

.portfolio .content img {
    width: 350px;
}

.portfolio .content iframe {
    width: 400px;
    height: 300px;
}

.button {
    display: inline-block;
    padding: 2rem;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: white;
    border: 2px solid var(--second-color);
    background-color: var(--second-color);
    box-shadow: 0 0 5px var(--second-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.button:hover {
    transform: scale(1.03);
    background-color: var(--first-color);
    border: 2px solid var(--first-color);
    color: white;
    box-shadow: 0 0 5px var(--second-color);
}

@media screen and (max-width: 600px) {
    .portfolio .timeline {
        margin-top: rem;
    }
    .portfolio .timeline::after {
        left: 31px;
    }
    .portfolio .container {
        width: 100%;
        padding-left: 8rem;
        padding-right: 2rem;
    }
    .portfolio .container::after {
        font-size: 2.2rem;
    }
    .portfolio .container::before {
        left: 61px;
        border: medium solid var(--main-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--main-color) transparent transparent;
    }
    .portfolio .left::after {
        left: 15px;
    }
    .portfolio .right::after {
        left: 15px;
    }
    .portfolio .right {
        left: 0%;
    }
    .portfolio .content img {
        width: 200px;
    }
    .portfolio .content iframe {
        width: 250px;
        height: 200px;
    }
    .portfolio .content .tag h3 {
        font-size: 25px;
        align-items: center
    }
    .portfolio h2 {
        font-size: 40px;
    }
    .portfolio p {
        font-size: 20px;
        margin-bottom: 25%;
    }
}

.footer {
    background-color: var(--main-color);
    padding: 2rem;
    text-align: center;
    border-top: 3px solid var(--main-color);
    box-shadow: 0 -4px 10px var(--first-color);
}

.footer-content p {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 500;
}

.footer-content a {
    color: var(--second-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--third-color);
    text-shadow: 0 -0 5px var(--first-color);
}