@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
    --main-color-hover: #008cc9;
}

html {
    font-size: 62.5%;
    /* 1rem = 10px */
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
}

.shape-1 {
    top: -5%;
    left: -10%;
    background: var(--main-color);
    animation: drift 15s infinite alternate ease-in-out;
}

.shape-2 {
    bottom: -10%;
    right: -5%;
    background: #7a00f0;
    animation: drift2 20s infinite alternate ease-in-out;
}

@keyframes drift {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(50px) scale(1.2);
    }
}

@keyframes drift2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, -50px) scale(0.8);
    }
}

/* Base Headings */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
}

.heading span {
    color: var(--main-color);
}

/* Header Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s;
}

.header.sticky {
    background: rgba(8, 27, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 171, 240, 0.2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
}

.logo span {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: 0.3s;
    font-weight: 500;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

/* Hero Section */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-content {
    max-width: 60rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0;
    opacity: 0.8;
    line-height: 1.6;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: 0.5s ease;
}

.btn:hover {
    box-shadow: none;
    background: var(--main-color-hover);
}

.home-img {
    position: relative;
}

.img-box {
    position: relative;
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: conic-gradient(from 0deg, transparent 70%, var(--main-color) 100%);
    animation: rotateBox 6s linear infinite;
}

@keyframes rotateBox {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: rotateBoxReverse 6s linear infinite;
}

@keyframes rotateBoxReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--second-bg-color);
}

.about-content {
    text-align: center;
    max-width: 80rem;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Skills Section */
.skills {
    background: var(--bg-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
}

.skills-box {
    padding: 3rem 2rem;
    background: var(--second-bg-color);
    border-radius: 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: 0.5s ease;
    cursor: default;
}

.skills-box:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
}

.skills-box i {
    font-size: 6rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.skills-box h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.skills-box p {
    font-size: 1.4rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    background: var(--second-bg-color);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.portfolio-box {
    background: var(--bg-color);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
}

.portfolio-box:hover {
    transform: scale(1.03);
    border-color: var(--main-color);
}

.portfolio-content {
    h4 {
        font-size: 2.4rem;
        margin-bottom: 2rem;
        color: var(--main-color);
    }

    ul {
        list-style: none;
    }

    ul li {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        opacity: 0.9;
    }

    ul li i {
        color: var(--main-color);
        font-size: 2rem;
    }
}

/* Experience Timeline */
.experience {
    background: var(--bg-color);
    padding-bottom: 8rem;
}

.timeline {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--main-color);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
    left: 11px;
    top: 0;
    border: 4px solid var(--bg-color);
    z-index: 10;
}

.timeline-date {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.timeline-content {
    background: var(--second-bg-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    transition: 0.3s;
}

.timeline-content:hover {
    border-color: var(--main-color);
}

.timeline-content h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #a1a1a1;
}

.timeline-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
}

/* Responsive Desain */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        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;
    }

    .home {
        flex-direction: column-reverse;
        gap: 3rem;
        text-align: center;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-img {
        margin-top: 5rem;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
    }

    .home-img .img-box {
        width: 60vw;
        height: 60vw;
        max-width: 300px;
        max-height: 300px;
    }

    .timeline::after {
        left: 15px;
    }

    .timeline-dot {
        left: 6px;
    }

    .timeline-item {
        padding-left: 4rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .home-img .img-box {
        width: 75vw;
        height: 75vw;
    }

    .home-content h1 {
        font-size: 4.2rem;
    }

    .home-content p {
        font-size: 1.5rem;
        text-align: center;
    }

    .heading {
        font-size: 3.5rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column-reverse;
        gap: 1.5rem;
        text-align: center;
        justify-content: center;
    }
}