:root {
    --light-black: #0303036e;
    --dark-grey: #5f6b74;
    --light-grey: #3d3d3d;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --white: #e6f1ff;
    --green: #64ffda;
    --font-sans: "Inter", -apple-system, system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-grey);
    color: var(--white);
    font-family: var(--font-sans);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 1;
}

.left-column {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 0;
}

.right-column {
    padding: 80px 0;
}

.content-section {
    margin-bottom: 120px;
    scroll-margin-top: 100px;
}

.main-name {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.job-title {
    margin-top: 8px;
    font-size: 24px;
    color: var(--white);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.tagline {
    margin-top: 16px;
    font-size: 16.5px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: 15px;
}

.main-nav a {
    display: flex;
    align-items: center;
    color: var(--light-slate);
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
    transition: color 0.3s ease;
}

.main-nav a::before {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    margin-right: 15px;
    background-color: var(--slate);
    transition: all 0.3s ease-in-out;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--white);
}

.main-nav a.active::before,
.main-nav a:hover::before {
    width: 60px;
    height: 2px;
    background-color: var(--white);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.social-links a {
    color: var(--light-slate);
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.social-links a[aria-label="LinkedIn"]:hover {
    color: #0a66c2;
}

.social-links a[aria-label="Instagram"]:hover {
    color: #e1306c;
}

.social-links a[aria-label="GitHub"]:hover {
    color: var(--white);
}

.social-links a[aria-label="Email"]:hover {
    color: #ea4335;
}

#about p {
    margin-bottom: 15px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.job {
    margin-bottom: 40px;
}

.job-dates {
    font-size: 14px;
    color: var(--light-slate);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.job-heading {
    margin-top: 5px;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.job-heading a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.job-heading a:hover {
    color: var(--green);
}

.project-item {
    margin-bottom: 20px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.project-link-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px; 
}

.project-item:hover .project-link-wrapper {
    background-color: var(--light-black);
}

.project-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.project-details {
    flex-grow: 1;
}

.project-description {
    margin: 10px 0;
}

.project-stat {
    margin-right: 15px;
    font-size: 14px;
    color: var(--light-slate);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-top: 15px;
}

.tech-list li {
    padding: 5px 10px;
    background-color: var(--light-grey);
    color: #dcdddd;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}

/* === AKHIR BAGIAN PROJECT === */

.rain-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rain-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.38);
    z-index: 0;
}

#background-image {
    display: none;
}

#rain-canvas {
    width: 100%;
    height: 100%;
}

.right-column p,
#about p,
.job-description,
.project-description {
    font-weight: 450;
    font-size: 17px;
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
    .container {
        display: block;
        padding: 0 25px;
    }

    .left-column {
        position: static;
        height: auto;
        padding: 60px 0 40px;
    }

    .right-column {
        padding: 0;
    }

    .content-section {
        margin-bottom: 80px;
    }

    .main-name {
        font-size: 36px;
    }

    .job-title {
        font-size: 20px;
    }
}