* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: sans-serif;
    background-color: #000;
    color: #f0f0f0;
}

#bg { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    outline: none; 
}

.content {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    position: relative; 
    z-index: 2;
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 120px;
    min-height: 80vh;
}

.hero-left {
    flex: 1.5;
    max-width: 600px;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.intro-text { font-size: 1.2em; color: #c0c0c0; margin-bottom: 10px; }
.main-title {
    font-size: clamp(2.8em, 6vw, 4em);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.cursor {
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background-color: #f0f0f0;
    margin-left: 8px;
    animation: blinking 0.7s infinite;
}

@keyframes blinking {
    0% { opacity: 1; }
    49% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}
.description { font-size: 1.1em; color: #d0d0d0; line-height: 1.7; margin-bottom: 30px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.tags span { background-color: rgba(204, 204, 204, 0.062); color: #ff9a26; padding: 8px 15px;backdrop-filter: blur(5px); border-radius: 20px; font-family: 'Courier New', Courier, monospace; font-size: 0.9em; border: 1px solid rgba(255, 158, 31, 0.192); }

.buttons { display: flex; gap: 15px; }
.btn { padding: 12px 25px; border-radius: 8px; text-decoration: none; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.btn-primary { background-color: #f0f0f0; color: #1a1a1a; }
.btn-primary:hover { background-color: #ffffff; transform: translateY(-2px); }
.btn-secondary { background-color: rgba(204, 204, 204, 0.062); backdrop-filter: blur(5px); color: #f0f0f0; border: 1px solid #f0f0f0; }
.btn-secondary:hover { background-color: #f0f0f0; color: #1a1a1a; transform: translateY(-2px); }

.code-snippet { background-color: rgba(204, 204, 204, 0.062); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 20px; width: 100%; max-width: 500px; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); }
.code-snippet pre { margin: 0; font-family: 'Fira Code', 'Courier New', monospace; font-size: 0.9em; line-height: 1.6; }
.code-snippet .comment { color: #6a9955; }
.code-snippet .keyword { color: #569cd6; }
.code-snippet .variable { color: #9cdcfe; }
.code-snippet .operator { color: #d4d4d4; }
.code-snippet .property { color: #4fc1ff; }
.code-snippet .string { color: #ce9178; }
.code-snippet .number { color: #b5cea8; }

.code-snippet-container {
    width: 100%;
    max-width: 500px;
}

.code-snippet {
    background-color: rgba(46, 46, 46, 0.178);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-bottom: 15px;
}

.code-snippet pre {
    margin: 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    color: #d4d4d4;
}

.code-snippet .comment { color: #6a9955; }
.code-snippet .keyword { color: #c586c0; }
.code-snippet .variable { color: #9cdcfe; }
.code-snippet .operator { color: #d4d4d4; }
.code-snippet .property { color: #4fc1ff; }
.code-snippet .string { color: #ce9178; }
.code-snippet .number { color: #b5cea8; }
.status-box {
    display: flex;
    align-items: flex-start;
    background-color: rgba(204, 204, 204, 0.062);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 20px;
    width: 300px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    border-radius: 50%;
    margin-right: 15px;
    margin-top: 5px;
    animation: breathing 2s ease-in-out infinite;
}

.status-text .label {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8em;
    color: #ffffff; 
}

.status-text p {
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #c0c0c0;
    margin-top: 5px;
}

@keyframes breathing {
    0% {
        box-shadow: 0 0 3px 0 #2ecc71;
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(46, 204, 113, 0.5);
        opacity: 0.7;
    }
    100% {
        box-shadow: 0 0 3px 0 #2ecc71;
        opacity: 1;
    }
}
.portfolio-section { padding-top: 40px; }
.section-title { text-align: center; font-size: 3em; font-weight: 800; margin-bottom: 50px; color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.project-card { background-color: rgba(204, 204, 204, 0.062); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 25px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }

.project-header { display: flex; align-items: center; margin-bottom: 10px; }
.project-icon { font-size: 1.5em; color: #ee9039; padding: 10px; border-radius: 20%; margin-right: 15px; border: 1px solid rgba(255, 158, 31, 0.192); background-color: rgba(255, 158, 31, 0.048); backdrop-filter: blur(10px);}
.project-header h3 { font-size: 1.3em; }
.project-timeline { font-size: 0.85em; color: #aaa; margin-bottom: 15px; font-style: italic; }
.project-description { font-size: 0.95em; line-height: 1.7; margin-bottom: 20px; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span { background-color: rgba(142, 68, 173, 0.3); color: #f0f0f0; padding: 5px 10px; border-radius: 5px; font-size: 0.8em; font-weight: 500; }


.skills-section {
    padding: 80px 0;
    margin-bottom: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.section-subtitle {
    text-align: center;
    color: #c0c0c0;
    margin-top: -40px;
    margin-bottom: 60px;
    font-size: 1.1em;
}

.interactive-skills-container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    max-width: 800px;
    margin: auto;
    background-color: rgba(204, 204, 204, 0.075);
    padding: 40px;
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tools-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tool-icon {
    width: 65px;
    height: 65px;
    background-color: rgba(73, 73, 73, 0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.tool-icon:hover, .tool-icon.active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}
.tool-icon img {
    width: 35px;
    height: 35px;
}

.skill-bars-container {
    flex: 1;
    min-height: 250px;
}

.skill-placeholder {
    font-style: italic;
    color: #888;
}

.skill-bar-item {
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.skill-bar-item:nth-child(2) { animation-delay: 0.1s; }
.skill-bar-item:nth-child(3) { animation-delay: 0.2s; }
.skill-bar-item:nth-child(4) { animation-delay: 0.3s; }

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}
.skill-bar-bg {
    width: 100%;
    height: 8px;
    background-color: rgba(71, 71, 71, 0.3);
    border-radius: 4px;
}
.skill-bar-level {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Animasi bar */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .interactive-skills-container { flex-direction: column; align-items: center; }
    .tools-icon-grid { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); width: 100%; }
    .skill-bars-container { width: 100%; margin-top: 30px; }
}
@media (max-width: 1100px) {
    .main-title {
        font-size: 3.8em;
        letter-spacing: -1.5px;
    }
    .hero-section {
        gap: 30px; 
    }
    .hero-left {
        flex: 1.5;
    }
    .hero-right {
        flex: 1;
    }
}

@media (max-width: 900px) {
    .code-snippet-container {
        text-align: left;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        margin-bottom: 80px;
    }
    .hero-right {
        margin-top: 40px;
        width: 100%;
    }
    .main-title {
        font-size: 3.2em;
        letter-spacing: -1px;
    }
    .tags, .buttons {
        justify-content: center;
    }
}