:root {
    /* Color */
    --color-primary: rgba(64, 224, 208, 1);
    --color-font-linear-primary: linear-gradient(171deg, rgba(170,235,235,1) 0%, rgba(64,224,208,1) 50%, rgb(18, 68, 61, 1)100%);
    --color-font-linear-secondary: linear-gradient(90deg, rgba(119,119,119,1) 0%, rgba(199,199,199,1) 50%, rgba(119,119,119,1) 100%);
    --color-font-linear-tertiary: linear-gradient(90deg, rgb(148, 148, 148) 0%, rgba(255,255,255,1) 50%, rgb(148, 148, 148) 100%);
    --color-button-linear: linear-gradient(175deg, rgba(109,109,109,1) 0%, rgba(10,27,25,1) 41%, rgba(10,27,25,1) 61%, rgba(64,224,208,1) 100%);
    --color-background-linear: linear-gradient(90deg, rgba(35, 122, 113, .15) 0%, rgba(0, 94, 78, 1) 50%, rgba(35, 122, 113, .15) 100%);
    --color-dark: #060C0B;
    --color-light: #ffffff;
    --color-font-accent: #c0c0c0;
    --color-font-subtle: #545a5a;
    --color-card: #0E0E0E;
    --button-linear: linear-gradient(
        to bottom right,
        #0c4741,
        #192020,
        #192020,
        #3f3f3f
    );
    
    /* Font families */
    --font-family-primary: 'work sans', sans-serif;
    --font-family-secondary: 'ms madi', sans-serif;

    /* Font sizes */
    --font-size-body: 1rem;
    --font-size-small: .875rem;
    --font-size-body-large: 1.5rem;
    --font-size-very-small: .75rem;
    --font-size-paragraph: 1.25rem;

    /* font weights */
    --font-weight-regular: 400;
    --font-weight-bold: 700;
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

/* Scrollbar For Webkit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px; /* Set the width of the scrollbar */
    height: 8px; /* Set the height for horizontal scrollbar */
}

::-webkit-scrollbar-thumb {
    background-color: #262e2e; /* Color of the scrollbar thumb */
    border-radius: 10px; /* Round the corners */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #374141; /* Color of the thumb when hovered */
}

::-webkit-scrollbar-track {
    background-color: transparent; /* Color of the track (the area the thumb moves along) */
}

/* Typography */

html {
    box-sizing: border-box;
    font-size: 100%;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-body);
    line-height: 150%;
    font-weight: var(--font-weight-regular);
    color: var(--color-font-accent);
    background-color: var(--color-dark);
}

h1, h2, h3 {
    color: var(--color-light);
    line-height: 100%;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: 3.75rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.25rem;
}

@media screen and (min-width: 768px) {
    h2 {
        font-size: 3.5rem;
    }
}

/* wrapper */

.wrapper {
    display: flex;
    flex-direction: column;
    gap: 14rem;
    padding: 0 24px;
    max-width: 1140px;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .wrapper {
        padding: 0 60px;
    }
}

@media screen and (min-width: 1024px) {
    .wrapper {
        padding: 0 80px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* eclipse layer blur */
.eclipse {
    z-index: -1;
    position: fixed;
    right: 0;
    transform: scaleX(-1);
    pointer-events: none;
    opacity: 1;
}

@media screen and (min-width: 768px) {
    .eclipse {
        transform: scale(1.7) scaleX(-1);
    }
}

@media screen and (min-width: 1024px) {
    .eclipse {
        transform: scale(3) scaleX(-1);
    }
}

/* navbar */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin-top: 2rem;
    margin: 2rem auto 0;
    padding: 0 .75rem;
    border-radius: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(33, 33, 33, .6); /* Semi-transparent background */
    backdrop-filter: blur(4px); /* Apply blur effect */
    -webkit-backdrop-filter: blur(4px); /* For Safari support */
}

.nav__links {
    display: flex;
    padding-left: 0;
    gap: 1rem;
    margin: 0;
}

.nav__links li {
    padding: .75rem .75rem;
    border-radius: 8px;
    list-style: none;
}

.nav__links .nav__link {
    text-decoration: none;
    color: var(--color-font-accent);
    transition: all .3s ease;
}

.nav__links .nav__link:not(.active):hover {
    color: var(--color-light);
}

.nav__links .active {
    color: var(--color-primary);
}

/* wrapper-top */
.wrapper-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7rem;
}

/* heading */
.header {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    align-items: center;
    margin: 9.5rem 0 0;
}

@media screen and (min-width:768px) {
    .header {
        margin: 11rem 0 0;
    }
}

.header__headline {
    margin: 0;
    background: var(--color-font-linear-primary);
    background-clip: text; /* Clip the gradient to the text */
    -webkit-text-fill-color: transparent; /* Make the text transparent to show the gradient */
    text-align: center;
    font-size: 3rem;
    padding: 3px;
}

.header__headline--white {
    color: var(--color-light); /* Make the word "The" white */
    background: none; /* Remove any gradient from the "The" */
    -webkit-text-fill-color: white; /* Ensure it's white */
}

@media screen and (min-width: 768px) {
    .header__headline {
        font-size: 4rem;
    }
}

.header__subheadline {
    margin: 0;
    background: var(--color-font-linear-tertiary);
    background-clip: text; /* Clip the gradient to the text */
    -webkit-text-fill-color: transparent; /* Make the text transparent to show the gradient */
    font-size: var(--font-size-body);
    text-align: center;
}

/* Profile */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
}

@media screen and (min-width:768px) {
    .profile {
        display: grid;
        grid-template-columns: 1fr 50%;
        gap: 4rem;
    }
}

@media screen and (min-width:900px) {
    .profile {
        display: grid;
        grid-template-columns: 1fr 60%;
    }
}

@media screen and (min-width:975px) {
    .profile {
        grid-template-columns: 1fr 65%;
    }
}

@media screen and (min-width:1080px) {
    .profile {
        grid-template-columns: 1fr 65%;
        padding: 0 3rem;
    }
}

.profile__img {
    width:250px;
}

@media screen and (min-width:768px) {
    .profile__img {
        width: 100%;
        padding: 0;
    }
}

.profile__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.profile__content-header-h2 {
    font-family: var(--font-family-secondary);
    background: var(--color-font-linear-tertiary);
    background-clip: text; /* Clip the gradient to the text */
    -webkit-text-fill-color: transparent; /* Make the text transparent to show the gradient */
    letter-spacing: 0;
    margin: 0;
    font-weight: var(--font-weight-regular);
    margin-bottom: -0.55rem;
    margin-left: -0.6rem;
    padding: 0 0 4px 3.5px;
}

.label__text {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--font-accent);
}

.label__text-shopee {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .4rem;
    color: var(--color-font-accent);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .3);
    transition: all .2s ease;
}

.label__text-shopee:hover {
    text-decoration-color: var(--color-light);
}
  
.label__logo {
    width: 17px;
    height: 17px;
    object-fit: cover;
}

.profile__content-paragraph {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.profile__content-paragraph .highlight {
    color: var(--color-light);
}

/* My Certification */
.certifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: transparent !important;
}

.certifications__p {
    font-size: var(--font-size-small);
    color: var(--font-accent);
}

.certifications_ccna-image {
    height: 55px;
}


/* Experiences */
.experiences {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.experiences__h2 {
    margin-bottom: 1rem;
}

@media screen and (min-width: 768px) {
    .experiences__h2 {
        margin-bottom: 2.3rem;
    }
}

.experience__job {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.experience__job-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

.job-header__h3 {
    font-size: 1.25rem;
    margin: 0;
}

.job-header__status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
}

.job-header__status p {
    font-size: var(--font-size-very-small);
    line-height: 120%;
}

.experience__job-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.job-content__lists {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    margin: 0;
    padding-left: 20px;
}

.levelup-inside {
    color: var(--color-font-accent);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .5);
    transition: all .2s ease;
}

.levelup-inside:hover {
    text-decoration-color: var(--color-light);
}

@media screen and (min-width: 600px) {
    .job-content__lists {
        padding-left: 40px;
    }
}

@media screen and (min-width: 900px) {
    .experience__job {
        display: grid;
        grid-template-columns: 350px 1fr;
        row-gap: 0;
    }
}

@media screen and (min-width: 1024px) {
    .experience__job {
        display: grid;
        grid-template-columns: 400px 1fr;
        row-gap: 1rem;
    }
}

/* My Skillset */
.skillset {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skillset__h2 {
    margin: 0 0 2.3rem 0;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    justify-content: center;
    width: 100%;
    gap: .8rem;
}

.skill__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1rem 2rem !important;
    justify-content: center;
}

.card-image {
    height: 33px;
}

.card-title {
    text-align: center;
    font-size: var(--font-size-small);
    line-height: 130%;
}

/* blog */
.blog {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

@media screen and (min-width: 768px) {
    .blog {
        gap: 5rem;
    }
}

@media screen and (min-width: 1024px) {
    .blog {
        display: grid;
        grid-template-columns: 40% 1fr;
        column-gap: 6.2rem;
    }
}

.blog__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.blog__header h2,.blog__subheader {
    margin: 0;
    text-align: center;
}

@media screen and (min-width:1024px) {
    .blog__header h2,.blog__subheader {
        text-align: left;
    }
}

.card {
    border-radius: 20px;
    position: relative;
    background-color: var(--color-card);
    overflow: hidden; /* Ensures content stays within the border radius */
    padding: 1.5rem 1.5rem; /* Adjust padding based on your design */
    z-index: 1;
    width: 100%;
    color: var(--color-light);
    text-decoration: none;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1; /* Ensures the gradient is behind the card */
    border-radius: inherit;
    padding: 1px; /* Adjust for border thickness */
    background: var(--button-linear);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.card:not(.certifications):not(.skill__card):hover {
    box-shadow: 0 0 8px rgba(19, 78, 72, 0.2), 0 0 20px rgba(19, 78, 72, .2), 0 0 40px rgba(19, 78, 72, .1);
}

.blog__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.blog__card {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    align-items: center;
}

.blog__article {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: flex-start;
}

.blog__card h3 {
    transition: all .3s ease;
    background: transparent;
}

.blog__card:hover h3 {
    background: var(--color-background-linear);
}

.blog__article h3,p {
    margin: 0;
    text-align: left;
}

.blog__article p {
    color: var(--color-font-accent);
}

.blog__card img {
    width: 54px;
    height: 54px;
    opacity: 0;
    transform: scale(1) rotate(0deg) translate(0, 0); 
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.blog__card:hover img {
    transform: rotate(5deg) translate(0px, 0px) scale(1.3, 1.3);
    opacity: 1;
}

.blog__card:nth-child(even):hover img {
    transform: rotate(-7deg) translate(0px, 0px) scale(1.4, 1.4);
}

/* footer */
.footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin: 7rem 0 2.5rem;
}

.footer__line {
    height: 1px; /* Line thickness */
    background-image: linear-gradient(90deg, rgba(10,27,25,1) 0%, rgba(79,79,79,1) 50%, rgba(10,27,25,1) 100%);; /* Gradient colors */
    width: 100%;  /* Full width */
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer__icon {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.footer__icon img {
    width: 20px;
    height: 20px;
}

.footer__content p {
    margin: 0;
    text-align: center;
}