/* Base styles */
:root {
    --primary-color: #0cffe1; /* Futuristic cyan */
    --secondary-color: #8a2be2; /* Purple */
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --glow-shadow: 0 0 10px rgba(12, 255, 225, 0.5);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

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

section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(12,255,225,0), rgba(12,255,225,1), rgba(12,255,225,0));
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(10, 10, 10, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

/* Class untuk hide navbar saat scroll down */
#navbar.hide {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--glow-shadow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Responsive Design for Navigation */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger .line {
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px;
        border-radius: 3px;
        transition: 0.3s;
    }
    
    /* Hamburger Animation */
    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        background-color: rgba(10, 10, 10, 0.95);
        transition: 0.5s;
        padding-top: 50px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: var(--glow-shadow);
}

.typewriter {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.cursor {
    animation: blink 1s infinite;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    margin: 0 10px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
    border: 2px solid;
}

.primary {
    background-color: var(--primary-color);
    color: var(--darker-bg);
    border-color: var(--primary-color);
    box-shadow: var(--glow-shadow);
}

.secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(12, 255, 225, 0.4);
}

.secondary:hover {
    background-color: rgba(12, 255, 225, 0.1);
    transform: translateY(-5px);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.profile-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(12, 255, 225, 0.3);
}

.profile-image img {
    width: 100%;
    display: block;
    transition: 0.5s;
}

.profile-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.skill-card {
    background-color: rgba(20, 20, 20, 0.7);
    padding: 30px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(12, 255, 225, 0.1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(12, 255, 225, 0.2);
    border-color: var(--primary-color);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-card p {
    margin: 10px 0 20px;
    color: var(--text-secondary);
}

.skill-level {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s ease-in-out;
}

/* Additional Skills CSS */
.sub-section-title {
    font-size: 1.8rem;
    text-align: center;
    margin: 60px 0 30px;
    color: var(--primary-color);
}

/* Programming Languages */
.lang-container {
    max-width: 700px;
    margin: 0 auto;
}

.lang-item {
    margin-bottom: 20px;
}

.lang-name {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.lang-bar {
    height: 10px;
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(12, 255, 225, 0.1);
}

.lang-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    position: relative;
    width: 0%;
    transition: width 1.5s ease-in-out;
}

.lang-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Languages */
.languages-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.language-item {
    width: 300px;
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(12, 255, 225, 0.1);
    transition: 0.3s;
}

.language-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(12, 255, 225, 0.2);
}

.language-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.language-item p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Soft Skills */
.soft-skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.soft-skill {
    width: 180px;
    height: 180px;
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: 0.3s;
    border: 1px solid rgba(12, 255, 225, 0.1);
}

.soft-skill:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(12, 255, 225, 0.2);
    background-color: rgba(12, 255, 225, 0.1);
}

.soft-skill i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.soft-skill h4 {
    font-size: 1rem;
    font-weight: 500;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(12, 255, 225, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(12, 255, 225, 0.2);
    border-color: var(--primary-color);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.project-links a {
    font-size: 1.2rem;
}

.project-links a:hover {
    color: var(--primary-color);
}

/* Social Media Section */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(20, 20, 20, 0.7);
    font-size: 1.5rem;
    transition: 0.3s;
    border: 1px solid rgba(12, 255, 225, 0.3);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--darker-bg);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(12, 255, 225, 0.4);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(12, 255, 225, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Staggered fade in for elements */
section:not(#hero) {
    opacity: 1; /* Changed from 0 to ensure visibility */
    transform: translateY(0); /* Changed to ensure visibility */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse glow effect for neon elements */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(12, 255, 225, 0.5); }
    50% { box-shadow: 0 0 20px rgba(12, 255, 225, 0.8); }
    100% { box-shadow: 0 0 5px rgba(12, 255, 225, 0.5); }
}

.btn.primary {
    animation: pulseGlow 3s infinite;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger .line {
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px;
        border-radius: 3px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: rgba(10, 10, 10, 0.95);
        transition: 0.5s;
        gap: 30px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .languages-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .language-item {
        width: 100%;
    }
    
    .soft-skill {
        width: 140px;
        height: 140px;
    }
    
    .soft-skill i {
        font-size: 2rem;
    }
    
    .soft-skill h4 {
        font-size: 0.9rem;
    }
}