@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/*VARIABLE WARNA*/
:root {
    --bg-color: #f8f8f8;
    --main-color: #A52A2A;
    --second-color: #f7284a;
    --text-color: #333;
    --white-color: #fff;
    --dark-color: #1f1f1f;
}

/*BASE STYLE*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: .8s ease;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

/*HEADER & NAVBAR*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%;
    background: var(--dark-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 .1rem .5rem rgba(0, 0, 0, .2);
}

.logo {
    font-size: 2.5rem;
    color: var(--white-color);
    font-weight: 600;
}

.logo span {
    color: var(--second-color);
}

.navbar a {
    font-size: 1.7rem;
    color: var(--white-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
    position: relative;
}

/* Hover underline */
.navbar a::after {
    content: "";
    width: 0%;
    height: 2px;
    background: var(--second-color);
    position: absolute;
    bottom: -4px;
    left: 0;
    transition: .3s;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 50%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

/*Mobile Menu Icon*/
#menu-icon {
    font-size: 3.6rem;
    color: var(--white-color);
    cursor: pointer;
    display: none;
}

/*HOME SECTION*/
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10rem 7% 0;
    gap: 4rem;
}

.home-content {
    max-width: 60rem;
}

.home-content h1 {
    font-size: 5rem;
    font-weight: 700;
    color: var(--main-color);
}

.home-content h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--second-color);
}

.home-content p {
    font-size: 1.6rem;
    margin: 1.5rem 0;
    line-height: 1.6;
}

/*Foto*/
.home-img {
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    overflow: hidden;
    border: .5rem solid var(--main-color);
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.2);
    transition: .4s ease;
}

.home-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(165, 42, 42, 0.45);
}

.home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*Button*/
.btn-group {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: .6rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .2);
    font-size: 1.6rem;
    color: var(--white-color);
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    background: var(--second-color);
    box-shadow: none;
}

.btn i {
    font-size: 2rem;
    color: var(--white-color);
}

/*EDUCATION*/
.heading {
    font-size: 4.5rem;
    margin-bottom: 5rem;
    text-align: center;
    color: var(--main-color);
}

.education {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-items {
    max-width: 100rem;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: var(--main-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    width: 100%;
    position: relative;
}

.timeline-item:nth-child(odd) {
    padding-right: 15rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 15rem;
}

.timeline-dot {
    height: 2.1rem;
    width: 2.1rem;
    background-color: var(--main-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    top: .6rem;
}

.timeline-date {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.timeline-content {
    padding: 2rem 3rem;
    background: var(--white-color);
    border-radius: .6rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    border-left: .5rem solid var(--main-color);
}

.timeline-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--main-color);
}

.timeline-content p {
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--second-color);
}

/* CONTACT FORM */
.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact form .input-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input {
    width: 49%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--white-color);
    border-radius: .8rem;
    margin: .7rem 0;
    box-shadow: 0 .1rem .3rem rgba(0, 0, 0, .1);
}

.contact form .submit-box {
    margin-top: 2rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        flex-direction: column-reverse;
        padding-top: 15rem;
        gap: 2rem;
        text-align: center;
    }

    .home-img {
        width: 30rem;
        height: 30rem;
    }

    .timeline-items::before {
        left: 2rem;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 8rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 2rem;
    }
}

@media (max-width: 768px) {

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 4%;
        background: var(--dark-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        text-align: center;
        color: var(--main-color);
    }

    .contact form .input-box input {
        width: 100%;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 55%;
    }

    .home-img {
        width: 25rem;
        height: 25rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }
}