/* ===== PENGATURAN DASAR & DESAIN SISTEM ===== */
:root {
    --primary-color: #9333ea; /* Purple 500 */
    --secondary-color: #3b82f6; /* Blue 500 */
    --background-color: #0a0a0a;
    --surface-color: #171717;
    --text-color: #e5e5e5;
    --text-color-muted: #a3a3a3;
    --font-family: 'Poppins', sans-serif;
    --glow-color-primary: rgba(147, 51, 234, 0.5);
    --glow-color-secondary: rgba(59, 130, 246, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 17px;
    cursor: none;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== CURSOR INTERAKTIF ===== */
#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease-out, width 0.3s, height 0.3s, border-width 0.3s, background-color 0.3s, opacity 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
#cursor-text {
    font-size: 0.8rem;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.3s;
}
#cursor-ring.grow {
    width: 90px;
    height: 90px;
    background-color: var(--primary-color);
    border-width: 3px;
    border-color: transparent;
}
#cursor-ring.grow #cursor-text {
    opacity: 1;
    transform: scale(1);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.preloader-text {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ===== HEADER (GLASSMORPHISM) ===== */
header {
    position: fixed; width: 100%; top: 0; left: 0; z-index: 100;
    padding: 1.5rem 0;
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
header nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.5rem; color: white; text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav ul li a { color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.3s; font-size: 1rem; }
nav ul li a:hover { color: var(--primary-color); }
.magnetic-item { display: inline-block; transition: transform 0.3s; }

/* ===== BAGIAN HERO ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 4rem; width: 100%; }
.hero-text { flex: 1; }
.hero-text h1 {
    font-size: 5rem; line-height: 1.1; margin-bottom: 1.5rem;
    font-weight: 700;
}
.hero-text h1 span, .hero-text p span { display: block; }
.hero-text p { font-size: 1.3rem; color: var(--text-color-muted); margin-bottom: 2.5rem; }
.hero-photo-container {
    position: relative;
    width: 380px;
    height: 380px;
}
.hero-photo-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white; padding: 1rem 2.5rem; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 1.1rem;
    transition: box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 0 20px var(--glow-color-primary);
}
.cta-button:hover { transform: scale(1.05); box-shadow: 0 0 30px var(--glow-color-secondary); }

/* ===== GAYA UMUM SECTION ===== */
section { padding: 9rem 0; }
.section-title { font-size: 3.5rem; text-align: center; margin-bottom: 5rem; }

/* ===== BAGIAN ABOUT ===== */
.about-content { display: flex; align-items: center; gap: 5rem; }
.about-photo { min-width: 300px; height: 300px; object-fit: cover; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.about-content p { font-size: 1.15rem; color: var(--text-color-muted); }

/* ===== BAGIAN SKILLS BARU (SKILL CLOUD) ===== */
#skills { background: var(--surface-color); }
.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
}
.skill-tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ===== BAGIAN RESUME (TIMELINE) ===== */
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.resume-column h3 { font-size: 1.8rem; margin-bottom: 2.5rem; }
.timeline-item { position: relative; padding-left: 35px; border-left: 2px solid #444; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; border-left: 2px solid transparent; }
.timeline-item::before { content: ''; position: absolute; left: -11px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-color); border: 3px solid var(--background-color); box-shadow: 0 0 15px var(--glow-color-primary); }
.timeline-year { font-size: 0.9rem; padding: 4px 10px; background: var(--surface-color); display: inline-block; border-radius: 20px; margin-bottom: 1rem; }
.timeline-item h4 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.timeline-item h5 { color: var(--text-color-muted); font-weight: 400; margin-bottom: 0.75rem; }

/* ===== BAGIAN PORTOFOLIO ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.portfolio-item { text-decoration: none; color: var(--text-color); display: block; overflow: hidden; border-radius: 15px; }
.portfolio-image-container { overflow: hidden; border-radius: 15px; }
.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-caption { padding: 1.5rem 0.5rem; }
.portfolio-caption h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.portfolio-caption p { color: var(--text-color-muted); }

/* ===== BAGIAN KONTAK & FOOTER ===== */
#contact { text-align: center; }
#contact p { max-width: 600px; margin: 0 auto 2.5rem auto; font-size: 1.15rem; }
footer { padding: 4rem 0; margin-top: 5rem; background-color: var(--surface-color); text-align: center; color: var(--text-color-muted); font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* ===== MODAL (GLASSMORPHISM) ===== */
.modal { display: none; /* ... (sisa properti sama) */ }
.modal-content {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* ... (sisa properti sama) */
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    body { font-size: 16px; }
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-photo-container { width: 300px; height: 300px; margin-bottom: 2rem; }
    .hero-text h1 { font-size: 3.5rem; }
    .section-title { font-size: 2.8rem; }
    .resume-grid, .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    nav ul { display: none; }
    .about-content { flex-direction: column; text-align: center; }
}